2020-04-01 15:50:15 -04:00
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
|
|
|
;;;
|
2021-03-13 14:00:48 -05:00
|
|
|
;;; Copyright © 2020, 2021 Raghav Gururajan <raghavgururajan@disroot.org>
|
|
|
|
;;; Copyright © 2020, 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
2020-11-26 16:46:58 -05:00
|
|
|
;;; Copyright © 2020 Tobias Geerinckx-Rice <me@tobias.gr>
|
2020-04-01 15:50:15 -04:00
|
|
|
;;;
|
|
|
|
;;; This file is part of GNU Guix.
|
|
|
|
;;;
|
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
|
|
|
;;; under the terms of the GNU General Public License as published by
|
|
|
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
;;; your option) any later version.
|
|
|
|
;;;
|
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
|
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
;;; GNU General Public License for more details.
|
|
|
|
;;;
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
(define-module (gnu packages linphone)
|
|
|
|
#:use-module (gnu packages)
|
2020-04-05 03:25:10 -04:00
|
|
|
#:use-module (gnu packages admin)
|
|
|
|
#:use-module (gnu packages audio)
|
2021-03-16 14:28:56 -04:00
|
|
|
#:use-module (gnu packages avahi)
|
2020-04-01 15:50:15 -04:00
|
|
|
#:use-module (gnu packages base)
|
2021-03-17 23:36:02 -04:00
|
|
|
#:use-module (gnu packages cpp)
|
2020-04-01 20:42:33 -04:00
|
|
|
#:use-module (gnu packages compression)
|
2021-03-13 14:00:48 -05:00
|
|
|
#:use-module (gnu packages crypto)
|
2021-03-16 23:08:41 -04:00
|
|
|
#:use-module (gnu packages databases)
|
2020-04-01 18:54:53 -04:00
|
|
|
#:use-module (gnu packages documentation)
|
2020-04-01 21:18:04 -04:00
|
|
|
#:use-module (gnu packages gettext)
|
2020-04-05 03:25:10 -04:00
|
|
|
#:use-module (gnu packages gl)
|
2020-04-05 16:03:25 -04:00
|
|
|
#:use-module (gnu packages glib)
|
2020-04-05 03:25:10 -04:00
|
|
|
#:use-module (gnu packages gnome)
|
2020-04-05 16:03:25 -04:00
|
|
|
#:use-module (gnu packages gnome-xyz)
|
2020-04-01 18:54:53 -04:00
|
|
|
#:use-module (gnu packages graphviz)
|
2020-04-05 16:03:25 -04:00
|
|
|
#:use-module (gnu packages gtk)
|
2020-04-05 03:25:10 -04:00
|
|
|
#:use-module (gnu packages image)
|
|
|
|
#:use-module (gnu packages linux)
|
2021-03-13 12:04:37 -05:00
|
|
|
#:use-module (gnu packages ncurses)
|
2021-03-20 04:08:06 -04:00
|
|
|
#:use-module (gnu packages openldap)
|
2021-03-13 12:04:37 -05:00
|
|
|
#:use-module (gnu packages perl)
|
2021-03-19 20:58:20 -04:00
|
|
|
#:use-module (gnu packages pkg-config)
|
2020-04-05 03:25:10 -04:00
|
|
|
#:use-module (gnu packages pulseaudio)
|
|
|
|
#:use-module (gnu packages python)
|
2020-04-01 21:18:04 -04:00
|
|
|
#:use-module (gnu packages python-xyz)
|
2020-04-10 19:21:03 -04:00
|
|
|
#:use-module (gnu packages qt)
|
2020-04-01 20:42:33 -04:00
|
|
|
#:use-module (gnu packages java)
|
2020-04-01 19:03:00 -04:00
|
|
|
#:use-module (gnu packages sqlite)
|
2020-04-05 03:25:10 -04:00
|
|
|
#:use-module (gnu packages telephony)
|
2020-04-01 18:10:42 -04:00
|
|
|
#:use-module (gnu packages tls)
|
2020-04-05 03:25:10 -04:00
|
|
|
#:use-module (gnu packages video)
|
|
|
|
#:use-module (gnu packages xiph)
|
2020-04-01 19:03:00 -04:00
|
|
|
#:use-module (gnu packages xml)
|
2020-04-05 03:25:10 -04:00
|
|
|
#:use-module (gnu packages xorg)
|
2020-04-01 15:50:15 -04:00
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
|
|
|
#:use-module (guix packages)
|
|
|
|
#:use-module (guix download)
|
2020-11-26 16:46:58 -05:00
|
|
|
#:use-module (guix git-download)
|
2020-04-01 15:50:15 -04:00
|
|
|
#:use-module (guix build-system cmake)
|
2020-04-10 19:21:03 -04:00
|
|
|
#:use-module (guix build-system qt)
|
2020-04-20 01:47:50 -04:00
|
|
|
#:use-module (guix build-system glib-or-gtk)
|
2020-04-01 15:50:15 -04:00
|
|
|
#:use-module (guix build-system gnu))
|
|
|
|
|
|
|
|
(define-public bcunit
|
2021-03-13 12:04:37 -05:00
|
|
|
(let ((commit "74021cc7cb20a4e177748dd2948173e1f9c270ae")
|
|
|
|
(revision "0"))
|
|
|
|
(package
|
|
|
|
(name "bcunit")
|
|
|
|
(version (git-version "3.0.2" revision commit))
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "git://git.linphone.org/bcunit")
|
|
|
|
(commit commit)))
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
(sha256
|
|
|
|
(base32 "0npdwvanjkfg9vrqs5yi8vh6wliv50ycdli8pzavir84nb31nq1b"))))
|
|
|
|
(build-system cmake-build-system)
|
|
|
|
(outputs '("out" "doc"))
|
|
|
|
(arguments
|
|
|
|
`(#:configure-flags (list "-DENABLE_STATIC=NO"
|
|
|
|
"-DENABLE_CURSES=ON"
|
|
|
|
"-DENABLE_DOC=ON"
|
|
|
|
"-DENABLE_EXAMPLES=ON"
|
|
|
|
"-DENABLE_TEST=ON"
|
|
|
|
"-DENABLE_MEMTRACE=ON")
|
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-after 'unpack 'patch-source
|
|
|
|
(lambda _
|
|
|
|
;; Include BCunit headers for examples.
|
|
|
|
(substitute* "Examples/CMakeLists.txt"
|
|
|
|
(("\\$\\{CMAKE_CURRENT_SOURCE_DIR\\}")
|
|
|
|
(string-append "${CMAKE_CURRENT_SOURCE_DIR} "
|
|
|
|
"${PROJECT_SOURCE_DIR}/BCUnit/Headers "
|
|
|
|
"${CMAKE_BINARY_DIR}/BCUnit/Headers")))
|
|
|
|
;; Link bcunit and bcunit_tests libraries.
|
|
|
|
(substitute* "BCUnit/Sources/CMakeLists.txt"
|
|
|
|
(("target_include_directories\\(bcunit_test PUBLIC Test\\)")
|
|
|
|
(string-append
|
|
|
|
"target_include_directories(bcunit_test PUBLIC Test)\n"
|
|
|
|
"target_link_libraries(bcunit_test bcunit)")))))
|
|
|
|
(replace 'check
|
|
|
|
(lambda _
|
|
|
|
(with-directory-excursion "BCUnit/Sources/Test"
|
|
|
|
(invoke "./test_bcunit"))))
|
|
|
|
(add-after 'install 'move-doc
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let ((out (assoc-ref outputs "out"))
|
|
|
|
(doc (assoc-ref outputs "doc")))
|
|
|
|
(for-each mkdir-p
|
|
|
|
`(,(string-append doc "/share/doc")
|
|
|
|
,(string-append doc "/share/BCUnit")))
|
|
|
|
(rename-file
|
|
|
|
(string-append out "/share/doc/BCUnit")
|
|
|
|
(string-append doc "/share/doc/BCUnit"))
|
|
|
|
(rename-file
|
|
|
|
(string-append out "/share/BCUnit/Examples")
|
|
|
|
(string-append doc "/share/BCUnit/Examples"))))))))
|
|
|
|
(inputs
|
2021-12-13 11:18:24 -05:00
|
|
|
(list ncurses))
|
2021-03-13 12:04:37 -05:00
|
|
|
(synopsis "Belledonne Communications Unit Testing Framework")
|
|
|
|
(description "BCUnit is a fork of the defunct project CUnit, with
|
|
|
|
several fixes and patches applied. It is a unit testing framework for
|
|
|
|
writing, administering, and running unit tests in C.")
|
|
|
|
(home-page "https://gitlab.linphone.org/BC/public/bcunit")
|
|
|
|
(license license:lgpl2.0+))))
|
2020-04-01 18:10:42 -04:00
|
|
|
|
|
|
|
(define-public bctoolbox
|
|
|
|
(package
|
|
|
|
(name "bctoolbox")
|
2021-03-13 14:00:48 -05:00
|
|
|
(version "4.4.34")
|
2020-04-01 18:10:42 -04:00
|
|
|
(source
|
|
|
|
(origin
|
2021-03-13 14:00:48 -05:00
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://gitlab.linphone.org/BC/public/bctoolbox.git")
|
|
|
|
(commit version)))
|
|
|
|
(file-name (git-file-name name version))
|
2020-04-01 18:10:42 -04:00
|
|
|
(sha256
|
2021-03-13 14:00:48 -05:00
|
|
|
(base32 "0bfswwvvdshaahg4jd2j10f0sci8809s4khajd0m6b059zwc7y25"))))
|
2020-04-01 18:10:42 -04:00
|
|
|
(build-system cmake-build-system)
|
2021-03-13 14:00:48 -05:00
|
|
|
(outputs '("out" "debug"))
|
2020-04-01 18:10:42 -04:00
|
|
|
(arguments
|
2021-03-13 14:00:48 -05:00
|
|
|
`(#:configure-flags '("-DENABLE_STATIC=OFF")
|
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-after 'unpack 'patch-cmake
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
;; Fix decaf dependency (see:
|
|
|
|
;; https://gitlab.linphone.org/BC/public/bctoolbox/-/issues/3).
|
|
|
|
(let* ((decaf (assoc-ref inputs "decaf")))
|
|
|
|
(substitute* (find-files "." "CMakeLists.txt")
|
|
|
|
(("find_package\\(Decaf CONFIG\\)")
|
|
|
|
"set(DECAF_FOUND 1)")
|
|
|
|
(("\\$\\{DECAF_INCLUDE_DIRS\\}")
|
|
|
|
(string-append decaf "/include/decaf"))
|
|
|
|
(("\\$\\{DECAF_TARGETNAME\\}")
|
|
|
|
"decaf")))))
|
|
|
|
(add-after 'unpack 'skip-problematic-tests
|
|
|
|
(lambda _
|
|
|
|
;; The following test relies on networking; disable it.
|
|
|
|
(substitute* "tester/port.c"
|
|
|
|
(("[ \t]*TEST_NO_TAG.*bctbx_addrinfo_sort_test\\)")
|
|
|
|
""))))
|
|
|
|
(add-after 'unpack 'fix-installed-resource-directory-detection
|
|
|
|
(lambda _
|
|
|
|
;; There's some broken logic in tester.c that checks if CWD, or
|
|
|
|
;; if its parent exist, and if so, sets the prefix where the test
|
|
|
|
;; resources are looked up to; disable it (see:
|
|
|
|
;; https://gitlab.linphone.org/BC/public/bctoolbox/-/issues/4).
|
|
|
|
(substitute* "src/tester.c"
|
|
|
|
(("if \\(file_exists\\(\".\"\\)\\)")
|
|
|
|
"if (NULL)")
|
|
|
|
(("if \\(file_exists\\(\"..\"\\)\\)")
|
|
|
|
"if (NULL)"))))
|
|
|
|
(replace 'check
|
|
|
|
(lambda _
|
|
|
|
(with-directory-excursion "tester"
|
|
|
|
(invoke "./bctoolbox_tester")))))))
|
2020-04-01 18:10:42 -04:00
|
|
|
(inputs
|
|
|
|
`(("bcunit" ,bcunit)
|
2021-03-13 14:00:48 -05:00
|
|
|
("decaf" ,libdecaf)
|
2020-04-01 18:10:42 -04:00
|
|
|
("mbedtls" ,mbedtls-apache)))
|
|
|
|
(synopsis "Belledonne Communications Tool Box")
|
|
|
|
(description "BcToolBox is an utilities library used by Belledonne
|
2020-04-12 14:54:23 -04:00
|
|
|
Communications software like belle-sip, mediastreamer2 and linphone.")
|
2020-04-01 18:10:42 -04:00
|
|
|
(home-page "https://gitlab.linphone.org/BC/public/bctoolbox")
|
2021-03-13 14:00:48 -05:00
|
|
|
(license license:gpl3+)))
|
2020-04-01 18:18:14 -04:00
|
|
|
|
|
|
|
(define-public belr
|
|
|
|
(package
|
|
|
|
(name "belr")
|
2021-03-14 23:40:02 -04:00
|
|
|
(version "4.4.34")
|
2020-04-01 18:18:14 -04:00
|
|
|
(source
|
|
|
|
(origin
|
2021-03-14 23:40:02 -04:00
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://gitlab.linphone.org/BC/public/belr.git")
|
|
|
|
(commit version)))
|
|
|
|
(file-name (git-file-name name version))
|
2020-04-01 18:18:14 -04:00
|
|
|
(sha256
|
2021-03-14 23:40:02 -04:00
|
|
|
(base32 "0w2canwwm0qb99whnangvaybvjzq8xg6vksqxykgr8fbx7clw03h"))))
|
2020-04-01 18:18:14 -04:00
|
|
|
(build-system cmake-build-system)
|
2021-03-14 23:40:02 -04:00
|
|
|
(outputs '("out" "debug" "tester"))
|
2020-04-01 18:18:14 -04:00
|
|
|
(arguments
|
2021-03-14 23:40:02 -04:00
|
|
|
`(#:configure-flags '("-DENABLE_STATIC=OFF")
|
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(delete 'check) ;moved after the install phase
|
|
|
|
(add-after 'install 'check
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let* ((tester (assoc-ref outputs "tester"))
|
|
|
|
(belr_tester (string-append tester "/bin/belr_tester"))
|
|
|
|
(tester-share (string-append tester "/share/belr_tester")))
|
|
|
|
(invoke belr_tester))))
|
|
|
|
(add-after 'install 'move-tester
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
(tester (assoc-ref outputs "tester")))
|
|
|
|
(for-each mkdir-p
|
|
|
|
(list (string-append tester "/bin")
|
|
|
|
(string-append tester "/share")))
|
|
|
|
(rename-file
|
|
|
|
(string-append out "/bin/belr_tester")
|
|
|
|
(string-append tester "/bin/belr_tester"))
|
|
|
|
(rename-file
|
|
|
|
(string-append out "/share/belr-tester")
|
|
|
|
;; The detect_res_prefix procedure in bctoolbox's tester.c
|
|
|
|
;; resolves the resource path based on the executable path and
|
|
|
|
;; name, so have it match.
|
|
|
|
(string-append tester "/share/belr_tester"))))))))
|
2020-04-01 18:18:14 -04:00
|
|
|
(inputs
|
2021-12-13 11:18:24 -05:00
|
|
|
(list bctoolbox))
|
2020-04-01 18:18:14 -04:00
|
|
|
(synopsis "Belledonne Communications Language Recognition Library")
|
2020-04-15 23:57:02 -04:00
|
|
|
(description "Belr is Belledonne Communications' language recognition
|
|
|
|
library, written in C++11. It parses text inputs formatted according to a
|
|
|
|
language defined by an ABNF grammar, such as the protocols standardized at
|
|
|
|
IETF.")
|
2020-04-01 18:18:14 -04:00
|
|
|
(home-page "https://gitlab.linphone.org/BC/public/belr")
|
|
|
|
(license license:gpl3+)))
|
2020-04-01 18:30:24 -04:00
|
|
|
|
|
|
|
(define-public belcard
|
|
|
|
(package
|
|
|
|
(name "belcard")
|
2021-03-15 16:24:20 -04:00
|
|
|
(version "4.4.34")
|
2020-04-01 18:30:24 -04:00
|
|
|
(source
|
|
|
|
(origin
|
2021-03-15 16:24:20 -04:00
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://gitlab.linphone.org/BC/public/belcard.git")
|
|
|
|
(commit version)))
|
|
|
|
(file-name (git-file-name name version))
|
2020-04-01 18:30:24 -04:00
|
|
|
(sha256
|
2021-03-15 16:24:20 -04:00
|
|
|
(base32 "16x2xp8d0a115132zhy1kpxkyj86ia7vrsnpjdg78fnbvmvysc8m"))))
|
2020-04-01 18:30:24 -04:00
|
|
|
(build-system cmake-build-system)
|
2021-03-15 16:24:20 -04:00
|
|
|
(outputs '("out" "debug" "tester"))
|
2020-04-01 18:30:24 -04:00
|
|
|
(arguments
|
2021-03-15 16:24:20 -04:00
|
|
|
`(#:tests? #t
|
|
|
|
#:configure-flags '("-DENABLE_STATIC=OFF")
|
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-after 'unpack 'patch-vcard-grammar-location
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
(vcard-grammar
|
|
|
|
(string-append out "/share/belr/grammars/vcard_grammar")))
|
|
|
|
(substitute* "include/belcard/vcard_grammar.hpp"
|
|
|
|
(("define VCARD_GRAMMAR \"vcard_grammar\"")
|
|
|
|
(format #f "define VCARD_GRAMMAR ~s" vcard-grammar))))))
|
|
|
|
(add-after 'install 'install-tester
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
(let ((out (assoc-ref outputs "out"))
|
|
|
|
(tester (assoc-ref outputs "tester"))
|
|
|
|
(test-name (string-append ,name "_tester")))
|
|
|
|
(for-each mkdir-p
|
|
|
|
(list (string-append tester "/bin")
|
|
|
|
(string-append tester "/share")))
|
|
|
|
(rename-file (string-append out "/bin/" test-name)
|
|
|
|
(string-append tester "/bin/" test-name))
|
|
|
|
(rename-file (string-append out "/share/" test-name)
|
|
|
|
(string-append tester "/share/" test-name)))))
|
|
|
|
(delete 'check)
|
|
|
|
(add-after 'install-tester 'check
|
|
|
|
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
|
|
|
|
(when tests?
|
|
|
|
(let* ((tester (assoc-ref outputs "tester"))
|
|
|
|
(belcard_tester (string-append tester
|
|
|
|
"/bin/belcard_tester")))
|
|
|
|
(invoke belcard_tester))))))))
|
2020-04-01 18:30:24 -04:00
|
|
|
(inputs
|
2021-12-13 11:18:24 -05:00
|
|
|
(list bctoolbox belr))
|
2020-04-01 18:30:24 -04:00
|
|
|
(synopsis "Belledonne Communications VCard Library")
|
2020-04-15 23:57:02 -04:00
|
|
|
(description "Belcard is a C++ library to manipulate VCard standard
|
|
|
|
format.")
|
2020-04-01 18:30:24 -04:00
|
|
|
(home-page "https://gitlab.linphone.org/BC/public/belcard")
|
|
|
|
(license license:gpl3+)))
|
2020-04-01 18:38:01 -04:00
|
|
|
|
|
|
|
(define-public bcmatroska2
|
|
|
|
(package
|
|
|
|
(name "bcmatroska2")
|
|
|
|
(version "0.23")
|
|
|
|
(source
|
|
|
|
(origin
|
2021-03-15 20:30:21 -04:00
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://gitlab.linphone.org/BC/public/bcmatroska2.git")
|
|
|
|
(commit version)))
|
|
|
|
(file-name (git-file-name name version))
|
2020-04-01 18:38:01 -04:00
|
|
|
(sha256
|
2021-03-15 20:30:21 -04:00
|
|
|
(base32 "1avl9w18kh4dxm3g8j0bkw39bksd7bz3nfxvyibqqnz63ds8vfi2"))))
|
2020-04-01 18:38:01 -04:00
|
|
|
(build-system cmake-build-system)
|
|
|
|
(arguments
|
2021-03-15 20:30:21 -04:00
|
|
|
`(#:tests? #f ; No test target
|
|
|
|
#:configure-flags (list "-DENABLE_STATIC=NO"))) ; Not required
|
2020-04-01 18:38:01 -04:00
|
|
|
(synopsis "Belledonne Communications Media Container")
|
2020-04-15 23:57:02 -04:00
|
|
|
(description "BcMatroska is a free and open standard multi-media container
|
|
|
|
format. It can hold an unlimited number of video, audio, picture, or subtitle
|
2021-03-15 20:30:21 -04:00
|
|
|
tracks in one file. This project provides a convenient distribution of the
|
|
|
|
Matroska multimedia container format.")
|
2020-04-01 18:38:01 -04:00
|
|
|
(home-page "https://gitlab.linphone.org/BC/public/bcmatroska2")
|
2021-03-15 20:30:21 -04:00
|
|
|
(license (list license:gpl2+ ;for this package (build system files)
|
|
|
|
license:bsd-4 ;for Core C and LibEBML2
|
|
|
|
license:lgpl2.1+)))) ;for LibMatroska2
|
2020-04-01 18:44:35 -04:00
|
|
|
|
|
|
|
(define-public bcg729
|
|
|
|
(package
|
|
|
|
(name "bcg729")
|
2020-11-26 17:25:00 -05:00
|
|
|
(version "1.1.1")
|
2020-04-01 18:44:35 -04:00
|
|
|
(source
|
|
|
|
(origin
|
2020-11-26 16:46:58 -05:00
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
2021-03-15 22:11:02 -04:00
|
|
|
(url "git://git.linphone.org/bcg729")
|
2020-11-26 16:46:58 -05:00
|
|
|
(commit version)))
|
|
|
|
(file-name (git-file-name name version))
|
2020-04-01 18:44:35 -04:00
|
|
|
(sha256
|
2020-11-26 17:25:00 -05:00
|
|
|
(base32 "1hal6b3w6f8y5r1wa0xzj8sj2jjndypaxyw62q50p63garp2h739"))))
|
2020-04-01 18:44:35 -04:00
|
|
|
(build-system cmake-build-system)
|
|
|
|
(arguments
|
2021-03-15 22:11:02 -04:00
|
|
|
`(#:configure-flags (list "-DENABLE_STATIC=NO"
|
|
|
|
"-DENABLE_TESTS=YES")
|
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-before 'check 'copy-inputs
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
(let ((test-patterns (assoc-ref inputs "test-patterns"))
|
|
|
|
(dest (string-append "test/bcg729-patterns.zip")))
|
|
|
|
(copy-recursively test-patterns dest))))
|
|
|
|
(replace 'check
|
|
|
|
(lambda _
|
|
|
|
(with-directory-excursion "test"
|
|
|
|
(invoke "unzip" "bcg729-patterns.zip")
|
|
|
|
(for-each
|
|
|
|
(lambda (test-name)
|
|
|
|
(invoke "./testCampaign" "-s" test-name))
|
|
|
|
(list "fixedCodebookSearch"
|
|
|
|
"postProcessing"
|
|
|
|
"adaptativeCodebookSearch"
|
|
|
|
"computeLP"
|
|
|
|
"computeAdaptativeCodebookGain"
|
|
|
|
"postFilter"
|
|
|
|
"decoder"
|
|
|
|
"LPSynthesisFilter"
|
|
|
|
"decodeLSP"
|
|
|
|
;; "encoder"
|
|
|
|
;; "LSPQuantization"
|
|
|
|
"preProcessing"
|
|
|
|
"decodeFixedCodeVector"
|
|
|
|
"CNGdecoder"
|
|
|
|
;; "LP2LSPConversion"
|
|
|
|
"gainQuantization"
|
|
|
|
"findOpenLoopPitchDelay"
|
|
|
|
"decodeGains"
|
|
|
|
"computeWeightedSpeech"
|
|
|
|
"interpolateqLSPAndConvert2LP"
|
|
|
|
"decodeAdaptativeCodeVector"))))))))
|
|
|
|
(native-inputs
|
|
|
|
`(("perl" ,perl)
|
|
|
|
("test-patterns"
|
|
|
|
,(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "http://www.belledonne-communications.com/"
|
|
|
|
"bc-downloads/bcg729-patterns.zip"))
|
|
|
|
(sha256
|
|
|
|
(base32 "1kivarhh3izrl9sg0szs6x6pbq2ap0y6xsraw0gbgspi4gnfihrh"))))
|
|
|
|
("unzip" ,unzip)))
|
2020-04-01 18:44:35 -04:00
|
|
|
(synopsis "Belledonne Communications G729 Codec")
|
|
|
|
(description "BcG729 is an implementation of both encoder and decoder of
|
|
|
|
the ITU G729 speech codec. The library written in C 99 is fully portable and
|
|
|
|
can be executed on many platforms including both ARM and x86 processors. It
|
|
|
|
supports concurrent channels encoding and decoding for multi call application
|
|
|
|
such as conferencing.")
|
2021-03-15 22:11:02 -04:00
|
|
|
(home-page "https://linphone.org/technical-corner/bcg729")
|
|
|
|
(license license:gpl3+)))
|
2020-04-01 18:54:53 -04:00
|
|
|
|
|
|
|
(define-public ortp
|
|
|
|
(package
|
|
|
|
(name "ortp")
|
2021-03-15 22:09:07 -04:00
|
|
|
(version "4.4.34")
|
2020-04-01 18:54:53 -04:00
|
|
|
(source
|
|
|
|
(origin
|
2021-03-15 22:09:07 -04:00
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://gitlab.linphone.org/BC/public/ortp.git")
|
|
|
|
(commit version)))
|
|
|
|
(file-name (git-file-name name version))
|
2020-04-01 18:54:53 -04:00
|
|
|
(sha256
|
2021-03-15 22:09:07 -04:00
|
|
|
(base32 "1r1kvjzyfvkf66in4p51wi87balzg3sw3aq6r4xr609mz86spi5m"))))
|
2020-04-01 18:54:53 -04:00
|
|
|
(build-system cmake-build-system)
|
2021-03-15 22:09:07 -04:00
|
|
|
(outputs '("out""tester"
|
|
|
|
"doc")) ;1.5 MiB of HTML doc
|
2020-04-01 18:54:53 -04:00
|
|
|
(arguments
|
2021-03-15 22:09:07 -04:00
|
|
|
`(#:tests? #f ;requires networking
|
|
|
|
#:configure-flags (list "-DENABLE_STATIC=NO"
|
|
|
|
"-DENABLE_TESTS=YES")
|
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-after 'unpack 'fix-version-strings
|
2021-03-16 15:51:11 -04:00
|
|
|
;; See: https://gitlab.linphone.org/BC/public/ortp/-/issues/5.
|
2021-03-15 22:09:07 -04:00
|
|
|
(lambda _
|
|
|
|
(substitute* "CMakeLists.txt"
|
2021-03-16 15:51:11 -04:00
|
|
|
(("VERSION [0-9]+\\.[0-9]+\\.[0-9]+")
|
2021-03-15 22:09:07 -04:00
|
|
|
(string-append "VERSION " ,version))
|
|
|
|
(("\\$\\{ORTP_DOC_VERSION\\}")
|
|
|
|
,version))))
|
|
|
|
(add-after 'install 'separate-outputs
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
(doc (assoc-ref outputs "doc"))
|
|
|
|
(doc-src (string-append out "/share/doc/ortp-" ,version))
|
|
|
|
(doc-dest (string-append doc "/share/doc/ortp-" ,version))
|
|
|
|
(tester (assoc-ref outputs "tester")))
|
|
|
|
(for-each mkdir-p (list (string-append doc "/share/doc")
|
|
|
|
(string-append tester "/bin")))
|
|
|
|
(rename-file doc-src doc-dest)
|
|
|
|
(rename-file (string-append out "/bin")
|
|
|
|
(string-append tester "/bin"))))))))
|
2020-04-01 18:54:53 -04:00
|
|
|
(native-inputs
|
|
|
|
`(("dot" ,graphviz)
|
|
|
|
("doxygen" ,doxygen)))
|
|
|
|
(inputs
|
2021-12-13 11:18:24 -05:00
|
|
|
(list bctoolbox))
|
2020-04-01 18:54:53 -04:00
|
|
|
(synopsis "Belledonne Communications RTP Library")
|
|
|
|
(description "oRTP is a C library implementing the RTP protocol. It
|
|
|
|
implements the RFC 3550 standard.")
|
2021-03-15 22:09:07 -04:00
|
|
|
(home-page "https://linphone.org/technical-corner/ortp")
|
|
|
|
(license license:gpl3+)))
|
2020-04-01 19:03:00 -04:00
|
|
|
|
|
|
|
(define-public bzrtp
|
|
|
|
(package
|
|
|
|
(name "bzrtp")
|
2021-03-16 12:22:31 -04:00
|
|
|
(version "4.4.34")
|
2020-04-01 19:03:00 -04:00
|
|
|
(source
|
|
|
|
(origin
|
2021-03-16 12:22:31 -04:00
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://gitlab.linphone.org/BC/public/bzrtp")
|
|
|
|
(commit version)))
|
|
|
|
(file-name (git-file-name name version))
|
2020-04-01 19:03:00 -04:00
|
|
|
(sha256
|
2021-03-16 12:22:31 -04:00
|
|
|
(base32 "1yjmsbqmymzl4r7sba6w4a2yld8m6hzafr6jf7sj0syhwpnc3zv6"))))
|
2020-04-01 19:03:00 -04:00
|
|
|
(build-system cmake-build-system)
|
|
|
|
(arguments
|
2021-03-16 12:22:31 -04:00
|
|
|
`(#:configure-flags
|
|
|
|
(list
|
|
|
|
"-DENABLE_STATIC=NO"
|
|
|
|
"-DENABLE_TESTS=YES")))
|
2020-04-01 19:03:00 -04:00
|
|
|
(inputs
|
|
|
|
`(("bctoolbox" ,bctoolbox)
|
|
|
|
("sqlite3" ,sqlite)
|
|
|
|
("xml2" ,libxml2)))
|
|
|
|
(synopsis "Belledonne Communications ZRTP Library")
|
2020-04-15 23:57:02 -04:00
|
|
|
(description "BZRTP is an implementation of ZRTP keys exchange protocol,
|
|
|
|
written in C. It is fully portable and can be executed on many platforms
|
|
|
|
including both ARM and x86.")
|
2020-04-01 19:03:00 -04:00
|
|
|
(home-page "https://gitlab.linphone.org/BC/public/bzrtp")
|
2021-03-16 12:22:31 -04:00
|
|
|
(license license:gpl3+)))
|
2020-04-01 20:42:33 -04:00
|
|
|
|
|
|
|
(define-public belle-sip
|
|
|
|
(package
|
|
|
|
(name "belle-sip")
|
2021-03-16 12:40:05 -04:00
|
|
|
(version "4.4.34")
|
2020-04-01 20:42:33 -04:00
|
|
|
(source
|
|
|
|
(origin
|
2021-03-16 12:40:05 -04:00
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
2021-03-16 13:25:14 -04:00
|
|
|
(url "https://gitlab.linphone.org/BC/public/belle-sip.git")
|
2021-03-16 12:40:05 -04:00
|
|
|
(commit version)))
|
|
|
|
(file-name (git-file-name name version))
|
2020-04-01 20:42:33 -04:00
|
|
|
(sha256
|
2021-03-16 12:40:05 -04:00
|
|
|
(base32 "1kknnlczq7dpqaj1dwxvy092dzrqjy11ndkv90rqwmdryigkjk6z"))))
|
2020-04-01 20:42:33 -04:00
|
|
|
(build-system cmake-build-system)
|
2021-03-16 13:25:14 -04:00
|
|
|
(outputs '("out" "tester"))
|
2020-04-01 20:42:33 -04:00
|
|
|
(arguments
|
2021-03-16 14:28:56 -04:00
|
|
|
`(#:configure-flags (list "-DENABLE_STATIC=NO"
|
|
|
|
"-DENABLE_MDNS=ON")
|
2020-04-01 20:42:33 -04:00
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-after 'unpack 'patch
|
2021-03-16 14:28:56 -04:00
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
;; Fix mDNS dependency.
|
|
|
|
(let* ((avahi (assoc-ref inputs "avahi")))
|
|
|
|
(substitute* (find-files "." "CMakeLists.txt")
|
|
|
|
(("find_package\\(DNSSD REQUIRED\\)")
|
|
|
|
"set(DNSSD_FOUND 1)")
|
|
|
|
(("\\$\\{DNSSD_INCLUDE_DIRS\\}")
|
|
|
|
(string-append avahi "/include/avahi-compat-libdns_sd"))
|
|
|
|
(("\\$\\{DNSSD_LIBRARIES\\}")
|
|
|
|
"dns_sd")))
|
2020-04-01 20:42:33 -04:00
|
|
|
(substitute* "src/CMakeLists.txt"
|
2020-04-15 23:57:02 -04:00
|
|
|
;; ANTLR would use multithreaded DFA generation otherwise,
|
|
|
|
;; which would not be reproducible.
|
2021-03-16 13:25:14 -04:00
|
|
|
(("-Xmultithreaded ") ""))))
|
|
|
|
(delete 'check) ;move after install
|
|
|
|
(add-after 'install 'separate-outputs
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
(tester (assoc-ref outputs "tester"))
|
|
|
|
(tester-name "belle_sip_tester"))
|
|
|
|
(for-each mkdir-p (list (string-append tester "/bin")
|
|
|
|
(string-append tester "/share")))
|
|
|
|
(rename-file (string-append out "/bin")
|
|
|
|
(string-append tester "/bin"))
|
|
|
|
(rename-file (string-append out "/share/" tester-name)
|
|
|
|
(string-append tester "/share/" tester-name)))))
|
|
|
|
(add-after 'separate-outputs 'check
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let ((tester (string-append (assoc-ref outputs "tester")
|
|
|
|
"/bin/belle_sip_tester")))
|
|
|
|
(for-each (lambda (suite-name)
|
|
|
|
(invoke tester "--suite" suite-name))
|
|
|
|
(list "Object inheritance"
|
|
|
|
"SIP URI"
|
|
|
|
"FAST SIP URI"
|
|
|
|
"FAST SIP URI 2"
|
|
|
|
"Generic uri"
|
|
|
|
"Headers"
|
|
|
|
"Core"
|
|
|
|
"SDP"
|
|
|
|
;;"Resolver"
|
|
|
|
"Message"
|
|
|
|
"Authentication helper"
|
|
|
|
;;"Register"
|
|
|
|
;;"Dialog"
|
|
|
|
"Refresher"
|
|
|
|
;;"HTTP stack"
|
|
|
|
"Object"))))))))
|
2020-04-01 20:42:33 -04:00
|
|
|
(inputs
|
2021-12-13 11:18:24 -05:00
|
|
|
(list avahi bctoolbox zlib))
|
2020-04-01 20:42:33 -04:00
|
|
|
(synopsis "Belledonne Communications SIP Library")
|
|
|
|
(description "Belle-sip is a modern library implementing SIP transport,
|
|
|
|
transaction and dialog layers. It is written in C, with an object-oriented
|
|
|
|
API. It also comprises a simple HTTP/HTTPS client implementation.")
|
2021-03-16 12:40:05 -04:00
|
|
|
(home-page "https://linphone.org/technical-corner/belle-sip")
|
|
|
|
(license license:gpl3+)))
|
2020-04-05 03:25:10 -04:00
|
|
|
|
|
|
|
(define-public mediastreamer2
|
|
|
|
(package
|
|
|
|
(name "mediastreamer2")
|
2021-03-16 15:51:11 -04:00
|
|
|
(version "4.4.34")
|
2020-04-05 03:25:10 -04:00
|
|
|
(source
|
|
|
|
(origin
|
2021-03-16 15:51:11 -04:00
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://gitlab.linphone.org/BC/public/mediastreamer2.git")
|
|
|
|
(commit version)))
|
|
|
|
(file-name (git-file-name name version))
|
2020-04-05 03:25:10 -04:00
|
|
|
(sha256
|
2021-03-16 15:51:11 -04:00
|
|
|
(base32 "0989h3d0h7qrx4kjx8gg09j8c5hvvi3h8qi1iq1dqbppwbaxbz8c"))))
|
2020-04-05 22:24:19 -04:00
|
|
|
(outputs '("out" "doc" "tester"))
|
2020-04-05 03:25:10 -04:00
|
|
|
(build-system cmake-build-system)
|
|
|
|
(arguments
|
2021-03-16 18:43:55 -04:00
|
|
|
`(#:configure-flags (list "-DENABLE_STATIC=NO"
|
|
|
|
"-DENABLE_PCAP=YES"
|
|
|
|
;; Do not fail on compile warnings.
|
|
|
|
"-DENABLE_STRICT=NO"
|
|
|
|
"-DENABLE_PORTAUDIO=YES"
|
|
|
|
"-DENABLE_G729B_CNG=YES")
|
2020-04-05 22:24:19 -04:00
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
2021-03-16 15:51:11 -04:00
|
|
|
(add-after 'unpack 'fix-version
|
|
|
|
(lambda _
|
|
|
|
(substitute* "CMakeLists.txt"
|
|
|
|
(("VERSION [0-9]+\\.[0-9]+\\.[0-9]+")
|
|
|
|
(string-append "VERSION " ,version)))))
|
2021-03-16 18:43:55 -04:00
|
|
|
(add-after 'unpack 'patch-source
|
|
|
|
(lambda _
|
|
|
|
(substitute* "src/otherfilters/mspcapfileplayer.c"
|
|
|
|
(("O_BINARY") "L_INCR"))))
|
2021-03-16 16:56:25 -04:00
|
|
|
(add-before 'check 'pre-check
|
|
|
|
(lambda _
|
|
|
|
;; Tests require a running X server.
|
|
|
|
(system "Xvfb :1 +extension GLX &")
|
|
|
|
(setenv "DISPLAY" ":1")
|
|
|
|
;; Tests write to $HOME.
|
|
|
|
(setenv "HOME" (getenv "TEMP"))))
|
|
|
|
(delete 'check) ;move after install
|
2020-04-05 22:24:19 -04:00
|
|
|
(add-after 'install 'separate-outputs
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
(tester (assoc-ref outputs "tester"))
|
2021-03-16 15:51:11 -04:00
|
|
|
(tester-name (string-append ,name "_tester"))
|
|
|
|
(doc (assoc-ref outputs "doc"))
|
|
|
|
(doc-name (string-append ,name "-" ,version)))
|
|
|
|
(for-each mkdir-p
|
|
|
|
(list (string-append tester "/bin")
|
|
|
|
(string-append tester "/share")
|
|
|
|
(string-append doc "/share/doc")))
|
2021-03-16 16:56:25 -04:00
|
|
|
;; Move the tester executable.
|
2020-04-05 22:24:19 -04:00
|
|
|
(rename-file (string-append out "/bin/" tester-name)
|
|
|
|
(string-append tester "/bin/" tester-name))
|
2021-03-16 16:56:25 -04:00
|
|
|
;; Move the tester data files.
|
2021-03-16 15:51:11 -04:00
|
|
|
(rename-file (string-append out "/share/" tester-name)
|
|
|
|
(string-append tester "/share/" tester-name))
|
2021-03-16 16:56:25 -04:00
|
|
|
;; Move the HTML documentation.
|
2021-03-16 15:51:11 -04:00
|
|
|
(rename-file (string-append out "/share/doc/" doc-name)
|
2021-03-16 16:56:25 -04:00
|
|
|
(string-append doc "/share/doc/" doc-name)))))
|
|
|
|
(add-after 'separate-outputs 'check
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let ((tester (string-append (assoc-ref outputs "tester")
|
|
|
|
"/bin/mediastreamer2_tester")))
|
|
|
|
(for-each (lambda (suite-name)
|
|
|
|
(invoke tester "--suite" suite-name))
|
|
|
|
;; Some tests fail, due to requiring access to the
|
|
|
|
;; sound card or the network.
|
|
|
|
(list "Basic Audio"
|
|
|
|
;; "Sound Card"
|
|
|
|
;; "AdaptiveAlgorithm"
|
|
|
|
;; "AudioStream"
|
|
|
|
;; "VideoStream"
|
|
|
|
"H26x Tools"
|
|
|
|
"Framework"
|
|
|
|
;; "Player"
|
|
|
|
"TextStream"))))))))
|
2020-04-05 03:25:10 -04:00
|
|
|
(native-inputs
|
|
|
|
`(("dot" ,graphviz)
|
|
|
|
("doxygen" ,doxygen)
|
2021-03-16 16:56:25 -04:00
|
|
|
("python" ,python-wrapper)
|
|
|
|
("xorg-server" ,xorg-server-for-tests)))
|
2020-04-05 03:25:10 -04:00
|
|
|
(inputs
|
|
|
|
`(("alsa" ,alsa-lib)
|
|
|
|
("bcg729" ,bcg729)
|
|
|
|
("bcmatroska2" ,bcmatroska2)
|
|
|
|
("bctoolbox" ,bctoolbox)
|
|
|
|
("ffmpeg" ,ffmpeg)
|
|
|
|
("glew" ,glew)
|
|
|
|
("glu" ,glu)
|
|
|
|
("glx" ,mesa-utils)
|
|
|
|
("gsm" ,gsm)
|
|
|
|
("opengl" ,mesa)
|
|
|
|
("opus" ,opus)
|
|
|
|
("ortp" ,ortp)
|
|
|
|
("pcap" ,libpcap)
|
|
|
|
("portaudio" ,portaudio)
|
|
|
|
("pulseaudio" ,pulseaudio)
|
|
|
|
("spandsp" ,spandsp)
|
|
|
|
("speex" ,speex)
|
|
|
|
("speexdsp" ,speexdsp)
|
|
|
|
("srtp" ,libsrtp)
|
|
|
|
("theora" ,libtheora)
|
|
|
|
("turbojpeg" ,libjpeg-turbo)
|
|
|
|
("v4l" ,v4l-utils)
|
|
|
|
("vpx" ,libvpx)
|
|
|
|
("x11" ,libx11)
|
|
|
|
("xv" ,libxv)
|
2020-04-15 23:57:02 -04:00
|
|
|
("zrtp" ,bzrtp)))
|
2020-04-05 03:25:10 -04:00
|
|
|
(synopsis "Belledonne Communications Streaming Engine")
|
2020-04-15 23:57:02 -04:00
|
|
|
(description "Mediastreamer2 is a powerful and lightweight streaming engine
|
|
|
|
for telephony applications. This media processing and streaming toolkit is
|
|
|
|
responsible for receiving and sending all multimedia streams in Linphone,
|
|
|
|
including media capture, encoding and decoding, and rendering.")
|
2021-03-16 15:51:11 -04:00
|
|
|
(home-page "https://linphone.org/technical-corner/mediastreamer2")
|
|
|
|
(license license:gpl3+)))
|
2020-04-01 21:18:04 -04:00
|
|
|
|
2021-03-16 23:08:41 -04:00
|
|
|
(define-public lime
|
|
|
|
(package
|
|
|
|
(name "lime")
|
|
|
|
(version "4.4.34")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://gitlab.linphone.org/BC/public/lime.git")
|
|
|
|
(commit version)))
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
(sha256
|
|
|
|
(base32 "14jg1zisjbzflw3scfqdbwy48wq3cp93l867vigb8l40lkc6n26z"))))
|
|
|
|
(build-system cmake-build-system)
|
|
|
|
(outputs '("out" "doc"))
|
|
|
|
(arguments
|
|
|
|
`(#:configure-flags (list "-DENABLE_STATIC=NO"
|
|
|
|
"-DENABLE_C_INTERFACE=YES")
|
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-after 'unpack 'patch-source
|
|
|
|
(lambda _
|
|
|
|
;; Disable tests that require networking.
|
|
|
|
(substitute* "tester/CMakeLists.txt"
|
|
|
|
(("add_test\\(?.*\"Hello World\"\\)") "")
|
|
|
|
(("add_test\\(?.*\"lime\"\\)") "")
|
|
|
|
(("add_test\\(?.*\"FFI\"\\)") ""))))
|
|
|
|
(add-after 'build 'build-doc
|
|
|
|
(lambda _
|
|
|
|
(invoke "make" "doc")))
|
|
|
|
(add-after 'install 'install-doc
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let* ((doc (assoc-ref outputs "doc"))
|
|
|
|
(dir (string-append doc "/share/doc"))
|
|
|
|
(dest (string-append dir "/" ,name "-" ,version)))
|
|
|
|
(mkdir-p dest)
|
|
|
|
(copy-recursively "doc" dest)))))))
|
|
|
|
(native-inputs
|
|
|
|
`(("dot" ,graphviz)
|
|
|
|
("doxygen" ,doxygen)))
|
|
|
|
(inputs
|
2021-12-13 11:18:24 -05:00
|
|
|
(list bctoolbox belle-sip soci))
|
2021-03-16 23:08:41 -04:00
|
|
|
(synopsis "Belledonne Communications Encryption Library")
|
|
|
|
(description "LIME is an encryption library for one-to-one and group
|
|
|
|
instant messaging, allowing users to exchange messages privately and
|
|
|
|
asynchronously. It supports multiple devices per user and multiple users per
|
|
|
|
device.")
|
|
|
|
(home-page "https://linphone.org/technical-corner/lime")
|
|
|
|
(license license:gpl3+)))
|
|
|
|
|
2020-04-01 21:18:04 -04:00
|
|
|
(define-public liblinphone
|
|
|
|
(package
|
|
|
|
(name "liblinphone")
|
2021-03-17 23:36:02 -04:00
|
|
|
(version "4.4.34")
|
2020-04-01 21:18:04 -04:00
|
|
|
(source
|
|
|
|
(origin
|
2021-03-17 23:36:02 -04:00
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://gitlab.linphone.org/BC/public/liblinphone.git")
|
|
|
|
(commit version)))
|
|
|
|
(file-name (git-file-name name version))
|
2020-04-01 21:18:04 -04:00
|
|
|
(sha256
|
2021-03-17 23:36:02 -04:00
|
|
|
(base32 "1lwabr93jw24y04pdqnw9dgg8jb3lzfplyx19f83jgp9dj8kmfq9"))))
|
|
|
|
(outputs '("out" "tester"))
|
2020-04-01 21:18:04 -04:00
|
|
|
(build-system cmake-build-system)
|
|
|
|
(arguments
|
2021-03-17 23:36:02 -04:00
|
|
|
`(#:tests? #f ; Tests require networking
|
|
|
|
#:configure-flags (list "-DENABLE_STATIC=NO"
|
|
|
|
"-DENABLE_DOC=NO" ;requires unpackaged javasphinx
|
|
|
|
"-DENABLE_LDAP=YES")
|
2020-04-05 16:03:25 -04:00
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
2020-04-27 00:50:48 -04:00
|
|
|
(add-after 'install 'separate-outputs
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
(tester (assoc-ref outputs "tester"))
|
|
|
|
(tester-name (string-append ,name "_tester")))
|
2021-03-17 23:36:02 -04:00
|
|
|
(for-each mkdir-p
|
|
|
|
(list (string-append tester "/bin")
|
|
|
|
(string-append tester "/share")))
|
2020-04-27 00:50:48 -04:00
|
|
|
(rename-file (string-append out "/bin/" tester-name)
|
|
|
|
(string-append tester "/bin/" tester-name))
|
2021-03-17 23:36:02 -04:00
|
|
|
(rename-file (string-append out "/bin/groupchat_benchmark")
|
|
|
|
(string-append tester "/bin/groupchat_benchmark"))
|
2020-04-27 00:50:48 -04:00
|
|
|
(rename-file (string-append out "/share/" tester-name)
|
2021-03-17 23:36:02 -04:00
|
|
|
(string-append tester "/share/" tester-name))))))))
|
2020-04-01 21:18:04 -04:00
|
|
|
(native-inputs
|
2021-03-17 23:36:02 -04:00
|
|
|
`(("dot" ,graphviz)
|
2020-04-01 21:18:04 -04:00
|
|
|
("doxygen" ,doxygen)
|
2021-03-17 23:36:02 -04:00
|
|
|
("gettext" ,gettext-minimal)
|
|
|
|
("perl" ,perl)
|
|
|
|
("python" ,python-wrapper)
|
2020-04-26 23:10:21 -04:00
|
|
|
("pystache" ,python-pystache)
|
2021-03-17 23:36:02 -04:00
|
|
|
("six" ,python-six)
|
|
|
|
("udev" ,eudev)))
|
2020-04-01 21:18:04 -04:00
|
|
|
(inputs
|
|
|
|
`(("bctoolbox" ,bctoolbox)
|
|
|
|
("belcard" ,belcard)
|
|
|
|
("bellesip" ,belle-sip)
|
2021-03-17 23:36:02 -04:00
|
|
|
("belr" ,belr)
|
gnu: Fix package references.
* gnu/packages/algebra.scm (iml)[inputs]: Correctly refer to package
inputs.
* gnu/packages/astronomy.scm (xplanet),
* gnu/packages/audio.scm (redkite, libaudec, lv2lint, lv2toweb),
* gnu/packages/bioconductor.scm (r-cummerbund),
* gnu/packages/chicken.scm (chicken),
* gnu/packages/conky.scm (conky),
* gnu/packages/cran.scm (r-latex2exp),
* gnu/packages/crates-io.scm (rust-rgb),
* gnu/packages/databases.scm (mariadb),
* gnu/packages/diffoscope.scm (reprotest),
* gnu/packages/file-systems.scm (glusterfs),
* gnu/packages/finance.scm (electron-cash),
* gnu/packages/games.scm (rinutils, ksudoku, kdiamond, kigo),
* gnu/packages/geo.scm (grass),
* gnu/packages/gnome.scm (libmediaart, gnome-contacts, geoclue),
* gnu/packages/gnucash.scm (aqbanking),
* gnu/packages/image.scm (mtpaint),
* gnu/packages/kde-internet.scm (kopete, ktorrent),
* gnu/packages/kde-utils.scm (kmousetool, kmouth, kronometer),
* gnu/packages/linphone.scm (liblinphone),
* gnu/packages/maths.scm (ppl),
* gnu/packages/mercury.scm (mercury-minimal),
* gnu/packages/music.scm (bjumblr, bschaffl, lsp-plugins,
spectacle-analyzer, helm, tap-lv2, wolf-shaper, shiru-lv2),
* gnu/packages/networking.scm (restinio),
* gnu/packages/prolog.scm (swi-prolog),
* gnu/packages/python-web.scm (gunicorn),
* gnu/packages/python-xyz.scm (python-docusign-esign),
* gnu/packages/ruby.scm (ruby-cucumber, ruby_version, ruby-addressable),
* gnu/packages/sagemath.scm (python-cypari2),
* gnu/packages/skarnet.scm (s6-linux-init),
* gnu/packages/vpn.scm (sshuttle),
* gnu/packages/web.scm (libcyaml),
* gnu/packages/xdisorg.scm (kbdd),
* gnu/packages/xorg.scm (xpra): Same.
2020-09-30 01:57:27 -04:00
|
|
|
("bzrtp" ,bzrtp)
|
2020-04-26 23:10:21 -04:00
|
|
|
("iconv" ,libiconv)
|
2021-03-20 04:08:06 -04:00
|
|
|
("ldap" ,openldap)
|
2021-03-17 23:36:02 -04:00
|
|
|
("libxsd" ,xsd)
|
|
|
|
("lime" ,lime)
|
2020-04-01 21:18:04 -04:00
|
|
|
("mediastreamer2" ,mediastreamer2)
|
2020-04-05 16:03:25 -04:00
|
|
|
("notify" ,libnotify)
|
2020-04-01 21:18:04 -04:00
|
|
|
("ortp" ,ortp)
|
2021-03-17 23:36:02 -04:00
|
|
|
("soci" ,soci)
|
2020-04-01 21:18:04 -04:00
|
|
|
("sqlite" ,sqlite)
|
2020-04-26 23:10:21 -04:00
|
|
|
("xml2" ,libxml2)
|
|
|
|
("zlib" ,zlib)))
|
2020-04-01 21:18:04 -04:00
|
|
|
(synopsis "Belledonne Communications Softphone Library")
|
|
|
|
(description "Liblinphone is a high-level SIP library integrating
|
|
|
|
all calling and instant messaging features into an unified
|
|
|
|
easy-to-use API. It is the cross-platform VoIP library on which the
|
|
|
|
Linphone application is based on, and that anyone can use to add audio
|
|
|
|
and video calls or instant messaging capabilities to an application.")
|
2021-03-17 23:36:02 -04:00
|
|
|
(home-page "https://linphone.org/technical-corner/liblinphone")
|
|
|
|
(license license:gpl3+)))
|
2020-04-01 22:53:05 -04:00
|
|
|
|
2021-03-19 20:58:20 -04:00
|
|
|
(define-public linphone-desktop
|
2020-04-10 19:21:03 -04:00
|
|
|
(package
|
2021-03-19 20:58:20 -04:00
|
|
|
(name "linphone-desktop")
|
|
|
|
(version "4.2.5")
|
2020-04-10 19:21:03 -04:00
|
|
|
(source
|
|
|
|
(origin
|
2021-03-19 20:58:20 -04:00
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://gitlab.linphone.org/BC/public/linphone-desktop")
|
|
|
|
(commit version)))
|
|
|
|
(file-name (git-file-name name version))
|
2020-04-10 19:21:03 -04:00
|
|
|
(sha256
|
2021-03-19 20:58:20 -04:00
|
|
|
(base32 "1gq4l9p21rbrcksa7fbkzn9fzbbynqmn6ni6lhnvzk359sb1xvbz"))
|
|
|
|
(patches (search-patches "linphone-desktop-without-sdk.patch"))))
|
2020-04-10 19:21:03 -04:00
|
|
|
(build-system qt-build-system)
|
2021-03-19 20:58:20 -04:00
|
|
|
(outputs '("out" "debug"))
|
2020-04-10 19:21:03 -04:00
|
|
|
(arguments
|
|
|
|
`(#:tests? #f ; No test target
|
2021-03-19 20:58:20 -04:00
|
|
|
#:configure-flags (list "-DENABLE_UPDATE_CHECK=NO"
|
|
|
|
"-DENABLE_DAEMON=YES"
|
|
|
|
"-DENABLE_CONSOLE_UI=YES")
|
2020-04-10 19:21:03 -04:00
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
2021-03-19 20:58:20 -04:00
|
|
|
(add-after 'unpack 'pre-configure
|
2020-04-15 02:03:26 -04:00
|
|
|
(lambda _
|
2021-03-19 20:58:20 -04:00
|
|
|
(make-file-writable "linphone-app/linphoneqt_version.cmake")
|
|
|
|
(substitute* "linphone-app/linphoneqt_version.cmake"
|
|
|
|
(("\\$\\{GUIX-SET-VERSION\\}") ,version))))
|
|
|
|
(add-after 'install 'post-install
|
2020-04-19 21:51:33 -04:00
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
2021-03-19 20:58:20 -04:00
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
(liblinphone (assoc-ref inputs "liblinphone"))
|
|
|
|
(grammar-dest (string-append out "/share/belr/grammars")))
|
|
|
|
;; Remove unnecessary Qt configuration file.
|
|
|
|
(delete-file (string-append out "/bin/qt.conf"))
|
|
|
|
;; Not using the FHS exposes an issue where the client
|
2021-03-29 03:19:09 -04:00
|
|
|
;; refers to its own directories, which lacks files
|
2021-03-19 20:58:20 -04:00
|
|
|
;; installed by the dependencies.
|
2021-03-29 03:19:09 -04:00
|
|
|
(symlink (string-append liblinphone "/lib")
|
|
|
|
(string-append out "/lib"))
|
2020-04-19 21:51:33 -04:00
|
|
|
(symlink (string-append liblinphone "/share/sounds")
|
|
|
|
(string-append out "/share/sounds"))
|
2021-03-29 03:19:09 -04:00
|
|
|
(symlink (string-append liblinphone "/share/linphone/rootca.pem")
|
|
|
|
(string-append out "/share/linphone/rootca.pem"))
|
2021-03-19 20:58:20 -04:00
|
|
|
(mkdir-p (dirname grammar-dest))
|
|
|
|
(symlink (string-append liblinphone "/share/belr/grammars")
|
|
|
|
grammar-dest)))))))
|
2020-04-10 19:21:03 -04:00
|
|
|
(native-inputs
|
2021-12-13 11:18:24 -05:00
|
|
|
(list pkg-config qttools))
|
2020-04-10 19:21:03 -04:00
|
|
|
(inputs
|
2021-12-13 11:18:24 -05:00
|
|
|
(list bctoolbox
|
|
|
|
belcard
|
|
|
|
belr
|
|
|
|
liblinphone
|
|
|
|
mediastreamer2
|
|
|
|
ortp
|
|
|
|
qtbase-5
|
|
|
|
qtdeclarative
|
|
|
|
qtgraphicaleffects
|
|
|
|
qtquickcontrols
|
|
|
|
qtquickcontrols2
|
|
|
|
qtsvg))
|
2020-04-15 02:03:26 -04:00
|
|
|
(synopsis "Desktop client for the Linphone SIP softphone")
|
|
|
|
(description "Linphone is a SIP softphone for voice and video over IP calling
|
|
|
|
(VoIP) and instant messaging. Amongst its features are:
|
|
|
|
@itemize
|
|
|
|
@item High Definition (HD) audio and video calls
|
|
|
|
@item Multiple call management (pause and resume)
|
|
|
|
@item Call transfer
|
|
|
|
@item Audio conferencing (merge calls into a conference call)
|
|
|
|
@item Call recording and replay (audio only)
|
|
|
|
@item Instant Messaging with message delivery status (IMDN)
|
|
|
|
@item Picture and file sharing
|
|
|
|
@item Echo cancellation
|
|
|
|
@item Secure user authentication using TLS client certificates
|
|
|
|
@item SRTP, zRTP and SRTP-DTLS voice and video encryption
|
|
|
|
@item Telephone tone (DTMF) support using SIP INFO or RFC 4733
|
|
|
|
@item Audio codecs: opus, speex, g711, g729, gsm, iLBC, g722, SILK, etc.
|
|
|
|
@item Video codecs: VP8, H.264 and H.265 with resolutions up to 1080P, MPEG4
|
|
|
|
@end itemize")
|
2021-03-19 20:58:20 -04:00
|
|
|
(home-page "https://linphone.org/technical-corner/linphone")
|
|
|
|
(license license:gpl3+)))
|
|
|
|
|
|
|
|
(define-public linphoneqt
|
|
|
|
(deprecated-package "linphoneqt" linphone-desktop))
|
2020-04-10 19:21:03 -04:00
|
|
|
|
2020-04-01 22:53:05 -04:00
|
|
|
(define-public msopenh264
|
2021-03-19 22:21:12 -04:00
|
|
|
(let ((commit "88697cc95140017760d6da408cb0efdc5e86e40a")
|
|
|
|
(revision "0"))
|
|
|
|
(package
|
|
|
|
(name "msopenh264")
|
|
|
|
(version (git-version "1.2.1" revision commit))
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://gitlab.linphone.org/BC/public/msopenh264.git")
|
|
|
|
(commit commit)))
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
(sha256
|
|
|
|
(base32 "10y3b6s934f2wbsf60b3p0g6hffizjqrj5in8l4sida2fjdxlwwy"))))
|
|
|
|
(build-system cmake-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:tests? #f ; No test target
|
|
|
|
#:configure-flags
|
|
|
|
(list "-DENABLE_STATIC=NO"))) ; Not required
|
|
|
|
(inputs
|
2021-12-13 11:18:24 -05:00
|
|
|
(list bctoolbox mediastreamer2 openh264 ortp))
|
2021-03-19 22:21:12 -04:00
|
|
|
(synopsis "Media Streamer H.264 Codec")
|
|
|
|
(description "MsOpenH264 is an H.264 encoder/decoder plugin for
|
|
|
|
mediastreamer2 based on the openh264 library.")
|
|
|
|
(home-page "https://gitlab.linphone.org/BC/public/msopenh264")
|
|
|
|
(license license:gpl2+))))
|
2020-04-01 22:58:32 -04:00
|
|
|
|
|
|
|
(define-public mssilk
|
2021-03-19 22:33:38 -04:00
|
|
|
(let ((commit "dd0f31ee795faa7ea89e601b072dae4cd1df7e3f")
|
|
|
|
(revision "0"))
|
|
|
|
(package
|
|
|
|
(name "mssilk")
|
|
|
|
(version (git-version "1.1.1" revision commit))
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://gitlab.linphone.org/BC/public/mssilk.git")
|
|
|
|
(commit commit)))
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
(sha256
|
|
|
|
(base32 "1dann5fnzqp6wjlwc6bl2k9b6rvn6bznqb3qsi1kgv9dnq44cbr0"))))
|
|
|
|
(build-system cmake-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:tests? #f ; No test target
|
|
|
|
#:configure-flags
|
|
|
|
(list "-DENABLE_STATIC=NO"))) ; Not required
|
|
|
|
(inputs
|
2021-12-13 11:18:24 -05:00
|
|
|
(list bctoolbox mediastreamer2 ortp))
|
2021-03-19 22:33:38 -04:00
|
|
|
(synopsis "Media Streamer SILK Codec")
|
|
|
|
(description "MSSILK is a plugin of MediaStreamer, adding support for AMR
|
2020-04-15 23:57:02 -04:00
|
|
|
codec. It is based on the Skype's SILK implementation.")
|
2021-03-19 22:33:38 -04:00
|
|
|
(home-page "https://gitlab.linphone.org/BC/public/mssilk")
|
|
|
|
(license license:gpl2+))))
|
2020-04-01 23:04:34 -04:00
|
|
|
|
|
|
|
(define-public mswebrtc
|
2021-03-19 23:51:32 -04:00
|
|
|
(let ((commit "946ca706733f36a6b4923f04e569531125462d1d")
|
|
|
|
(revision "0"))
|
|
|
|
(package
|
|
|
|
(name "mswebrtc")
|
|
|
|
(version (git-version "1.1.1" revision commit))
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://gitlab.linphone.org/BC/public/mswebrtc")
|
|
|
|
(commit commit)))
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
(sha256
|
|
|
|
(base32 "1pfg9m6bpbv0f53nx72rdxhlyriax9pg4yj0gpwq8ha6lqnpwg1x"))))
|
|
|
|
(build-system cmake-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:tests? #f ; No test target
|
|
|
|
#:configure-flags
|
|
|
|
(list
|
|
|
|
"-DENABLE_STATIC=NO")
|
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-after 'unpack 'copy-inputs
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
(let* ((webrtc-from (assoc-ref inputs "webrtc"))
|
|
|
|
(webrtc-to (string-append (getcwd) "/webrtc")))
|
|
|
|
(copy-recursively webrtc-from webrtc-to))
|
|
|
|
#t)))))
|
|
|
|
(native-inputs
|
|
|
|
`(("webrtc"
|
|
|
|
,(origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri
|
|
|
|
(git-reference
|
|
|
|
(url "https://gitlab.linphone.org/BC/public/external/webrtc")
|
|
|
|
(commit "583acd27665cfadef8ab03eb85a768d308bd29dd")))
|
|
|
|
(file-name
|
|
|
|
(git-file-name "webrtc-for-mswebrtc" version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1maqychrgwy0z4zypa03qp726l2finw64z6cymdzhd58ql3p1lvm"))))
|
|
|
|
("python" ,python-wrapper)))
|
|
|
|
(inputs
|
2021-12-13 11:18:24 -05:00
|
|
|
(list bctoolbox mediastreamer2 ortp))
|
2021-03-19 23:51:32 -04:00
|
|
|
(synopsis "Media Streamer WebRTC Codec")
|
|
|
|
(description "MSWebRTC is a plugin of MediaStreamer, adding support for
|
2020-04-01 23:04:34 -04:00
|
|
|
WebRTC codec. It includes features from WebRTC, such as, iSAC and AECM.")
|
2021-03-19 23:51:32 -04:00
|
|
|
(home-page "https://gitlab.linphone.org/BC/public/mswebrtc")
|
|
|
|
(license license:gpl2+))))
|
2020-04-01 22:04:16 -04:00
|
|
|
|
|
|
|
(define-public msamr
|
2021-03-20 00:01:26 -04:00
|
|
|
(let ((commit "5ab5c098299107048dfcbfc741f7392faef167bd")
|
|
|
|
(revision "0"))
|
|
|
|
(package
|
|
|
|
(name "msamr")
|
|
|
|
(version (git-version "1.1.3" revision commit))
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://gitlab.linphone.org/BC/public/msamr")
|
|
|
|
(commit commit)))
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
(sha256
|
|
|
|
(base32 "1g79lw1qi1mlw3v1b0cixmqiwjql81gz9naakb15n8pvaag9aaqm"))))
|
|
|
|
(build-system cmake-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:tests? #f ; No test target
|
|
|
|
#:configure-flags
|
|
|
|
(list "-DENABLE_STATIC=NO" ; Not required
|
|
|
|
"-DENABLE_WIDEBAND=YES")))
|
|
|
|
(inputs
|
|
|
|
`(("bctoolbox" ,bctoolbox)
|
|
|
|
("mediastreamer2" ,mediastreamer2)
|
|
|
|
("opencoreamr" ,opencore-amr)
|
|
|
|
("ortp" ,ortp)
|
|
|
|
("voamrwbenc" ,vo-amrwbenc)))
|
|
|
|
(synopsis "Media Streamer AMR Codec")
|
|
|
|
(description "MSAMR is a plugin of MediaStreamer, adding support for AMR
|
2020-04-15 23:57:02 -04:00
|
|
|
codec. It is based on the opencore-amr implementation.")
|
2021-03-20 00:01:26 -04:00
|
|
|
(home-page "https://gitlab.linphone.org/BC/public/msamr")
|
|
|
|
(license license:gpl3+))))
|