summaryrefslogtreecommitdiff
path: root/gnu/packages/linphone.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/linphone.scm')
-rw-r--r--gnu/packages/linphone.scm781
1 files changed, 406 insertions, 375 deletions
diff --git a/gnu/packages/linphone.scm b/gnu/packages/linphone.scm
index 9b84a5b3a9..cd4a1ac3ae 100644
--- a/gnu/packages/linphone.scm
+++ b/gnu/packages/linphone.scm
@@ -1,7 +1,6 @@
;;; GNU Guix --- Functional package management for GNU
-;;;
;;; Copyright © 2020, 2021 Raghav Gururajan <raghavgururajan@disroot.org>
-;;; Copyright © 2020, 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
+;;; Copyright © 2020, 2021, 2024-2025 Maxim Cournoyer <maxim@guixotic.coop>
;;; Copyright © 2020 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2023 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2023 Andreas Enge <andreas@enge.fr>
@@ -25,6 +24,7 @@
#:use-module (gnu packages)
#:use-module (gnu packages admin)
#:use-module (gnu packages aidc)
+ #:use-module (gnu packages aspell)
#:use-module (gnu packages audio)
#:use-module (gnu packages avahi)
#:use-module (gnu packages cpp)
@@ -46,6 +46,7 @@
#:use-module (gnu packages python)
#:use-module (gnu packages python-xyz)
#:use-module (gnu packages qt)
+ #:use-module (gnu packages serialization)
#:use-module (gnu packages sqlite)
#:use-module (gnu packages telephony)
#:use-module (gnu packages tls)
@@ -62,75 +63,69 @@
#:use-module (guix build-system qt))
(define-public bcunit
- (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
- (list ncurses))
- (synopsis "Belledonne Communications Unit Testing Framework")
- (description "BCUnit is a fork of the defunct project CUnit, with
+ (package
+ (name "bcunit")
+ (version "5.3.57")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://gitlab.linphone.org/BC/public/bcunit.git")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "02aqc8052vidc8ylkwiv2rqddl58fccrjz561j8zfqlwm2irnsg3"))))
+ (build-system cmake-build-system)
+ (arguments
+ (list
+ #:configure-flags #~(list "-DBUILD_SHARED_LIBS=ON"
+ "-DENABLE_BCUNIT_CURSES=ON"
+ "-DENABLE_BCUNIT_DOC=ON"
+ "-DENABLE_BCUNIT_EXAMPLES=ON"
+ "-DENABLE_BCUNIT_TEST=ON"
+ "-DENABLE_BCUNIT_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"
+ "\ttarget_link_libraries(bcunit_test bcunit)")))))
+ (add-after 'install 'patch-BCUnitConfig.cmake
+ (lambda _
+ (substitute* (string-append
+ #$output "/share/BCUnit/cmake/BCUnitConfig.cmake")
+ ;; This is only added for convenience when doing static builds.
+ ;; Since this is not a common case, avoid the find_dependency on
+ ;; ncurses, which would require propagating it.
+ (("find_dependency\\(Curses)")
+ ""))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (with-directory-excursion "BCUnit/Sources/Test"
+ (invoke "./test_bcunit"))))))))
+ (inputs (list ncurses))
+ (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+))))
+ (home-page "https://gitlab.linphone.org/BC/public/bcunit")
+ (license license:lgpl2.0+)))
(define-public bctoolbox
(package
(name "bctoolbox")
- (version "5.2.49")
+ (version "5.3.57")
(source
(origin
(method git-fetch)
@@ -139,52 +134,51 @@ writing, administering, and running unit tests in C.")
(commit version)))
(file-name (git-file-name name version))
(sha256
- (base32 "0b51308jy5z32gp594r78jvbyrha16sanxdnbcmxgrwnb4myqx5j"))))
+ (base32 "178axy7gmmi6fzjbz7aaawcx0qg50i4hnn7ab6w642b02vxfr386"))))
(build-system cmake-build-system)
(outputs '("out" "debug"))
(arguments
- `(#:configure-flags (list "-DENABLE_STATIC=OFF"
- ;; Do not use -Werror, because due to skipping
- ;; a test there are unused procedures.
- "-DENABLE_STRICT=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 "libdecaf")))
- (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* (#:key tests? #:allow-other-keys)
- (when tests?
- (with-directory-excursion "tester"
- (invoke "./bctoolbox_tester"))))))))
- (inputs
- (list bcunit libdecaf mbedtls-lts))
+ (list
+ #:configure-flags #~(list "-DBUILD_SHARED_LIBS=ON"
+ ;; Do not use -Werror, because due to skipping
+ ;; a test there are unused procedures.
+ "-DENABLE_STRICT=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).
+ (substitute* (find-files "." "CMakeLists.txt")
+ (("find_package\\(Decaf CONFIG\\)")
+ "set(DECAF_FOUND 1)")
+ (("\\$\\{DECAF_INCLUDE_DIRS\\}")
+ (search-input-directory inputs "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* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (with-directory-excursion "tester"
+ (invoke "./bctoolbox-tester"))))))))
+ (inputs (list bcunit libdecaf mbedtls-lts))
(synopsis "Belledonne Communications Tool Box")
(description "BcToolBox is an utilities library used by Belledonne
Communications software like belle-sip, mediastreamer2 and linphone.")
@@ -194,7 +188,7 @@ Communications software like belle-sip, mediastreamer2 and linphone.")
(define-public belr
(package
(name "belr")
- (version "5.2.49")
+ (version "5.3.57")
(source
(origin
(method git-fetch)
@@ -203,33 +197,33 @@ Communications software like belle-sip, mediastreamer2 and linphone.")
(commit version)))
(file-name (git-file-name name version))
(sha256
- (base32 "1bj8qd4ahbff476z0ccwsxy7qznqi6n5l1pdd7zbvk0h53zyj74c"))))
+ (base32 "1jqv2rfclzwsglwgvx7ypy0yhwbjxrsbik6xipf48770qmdz3bj9"))))
(build-system cmake-build-system)
(outputs '("out" "debug" "tester"))
(arguments
(list
- #:configure-flags '(list "-DENABLE_STATIC=OFF")
+ #:configure-flags '(list "-DBUILD_SHARED_LIBS=ON")
#:phases
#~(modify-phases %standard-phases
(delete 'check) ;moved after the install phase
(add-after 'install 'check
(lambda* (#:key tests? outputs #:allow-other-keys)
(when tests?
- (invoke (string-append #$output:tester "/bin/belr_tester")))))
+ (invoke (string-append #$output:tester "/bin/belr-tester")))))
(add-after 'install 'move-tester
(lambda _
(for-each mkdir-p
(list (string-append #$output:tester "/bin")
(string-append #$output:tester "/share")))
(rename-file
- (string-append #$output "/bin/belr_tester")
- (string-append #$output:tester "/bin/belr_tester"))
+ (string-append #$output "/bin/belr-tester")
+ (string-append #$output:tester "/bin/belr-tester"))
(rename-file
(string-append #$output "/share/belr-tester/res")
;; 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 #$output:tester "/share/belr_tester")))))))
+ (string-append #$output:tester "/share/belr-tester")))))))
(inputs
(list bctoolbox))
(synopsis "Belledonne Communications Language Recognition Library")
@@ -243,7 +237,7 @@ IETF.")
(define-public belcard
(package
(name "belcard")
- (version "5.2.49")
+ (version "5.3.57")
(source
(origin
(method git-fetch)
@@ -252,12 +246,12 @@ IETF.")
(commit version)))
(file-name (git-file-name name version))
(sha256
- (base32 "1rl1x7rnlnncb45sjp8r2xbcwr9l8qv5bhfybhr0mmvsv3a4k4a3"))))
+ (base32 "1d69s7v3yd276nasfxnsjp3q820pcchdpdpw4y7ak7sf6gr6mrrh"))))
(build-system cmake-build-system)
(outputs '("out" "debug" "tester"))
(arguments
(list
- #:configure-flags '(list "-DENABLE_STATIC=OFF")
+ #:configure-flags '(list "-DBUILD_SHARED_LIBS=ON")
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'patch-vcard-grammar-location
@@ -270,7 +264,7 @@ IETF.")
(format #f "define VCARD_GRAMMAR ~s" vcard-grammar))))))
(add-after 'install 'install-tester
(lambda _
- (let ((test-name (string-append #$name "_tester")))
+ (let ((test-name (string-append #$name "-tester")))
(for-each mkdir-p
(list (string-append #$output:tester "/bin")
(string-append #$output:tester "/share")))
@@ -283,9 +277,10 @@ IETF.")
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke (string-append #$output:tester
- "/bin/belcard_tester"))))))))
- (inputs
- (list bctoolbox belr))
+ "/bin/belcard-tester"))))))))
+ (inputs (list bctoolbox))
+ ;; Belr is required by BelCardConfig.cmake, so must be propagated.
+ (propagated-inputs (list belr))
(synopsis "Belledonne Communications VCard Library")
(description "Belcard is a C++ library to manipulate VCard standard
format.")
@@ -295,7 +290,7 @@ format.")
(define-public bcmatroska2
(package
(name "bcmatroska2")
- (version "5.2.1")
+ (version "5.3.57")
(source
(origin
(method git-fetch)
@@ -304,21 +299,12 @@ format.")
(commit version)))
(file-name (git-file-name name version))
(sha256
- (base32 "14c79znw37q3yc7llbv2wmxmm4a3ws6iq3cvgkbmcnf7hmhm7zdi"))))
+ (base32 "1fdlvsca34armxasj2g4vxjzm9iiqfl7832qqlggh04yw21cfa5c"))))
(build-system cmake-build-system)
(arguments
(list
#:tests? #f ;No test target
- #:phases
- '(modify-phases %standard-phases
- ;; See
- ;; https://gitlab.linphone.org/BC/public/bcmatroska2/-/merge_requests/18
- (add-after 'unpack 'fix-build-system
- (lambda _
- (substitute* "corec/corec/CMakeLists.txt"
- (("helpers/file/file_libc.c") "")))))
- #:configure-flags
- '(list "-DENABLE_STATIC=NO"))) ;Not required
+ #:configure-flags '(list "-DBUILD_SHARED_LIBS=ON")))
(inputs (list bctoolbox))
(synopsis "Belledonne Communications Media Container")
(description "BcMatroska is a free and open standard multi-media container
@@ -331,80 +317,85 @@ Matroska multimedia container format.")
license:lgpl2.1+)))) ;for LibMatroska2
(define-public bcg729
- (package
- (name "bcg729")
- (version "1.1.1")
- (source
- (origin
- (method git-fetch)
- (uri (git-reference
- (url "git://git.linphone.org/bcg729")
- (commit version)))
- (file-name (git-file-name name version))
- (sha256
- (base32 "1hal6b3w6f8y5r1wa0xzj8sj2jjndypaxyw62q50p63garp2h739"))))
- (build-system cmake-build-system)
- (arguments
- `(#: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)))
- (synopsis "Belledonne Communications G729 Codec")
- (description "BcG729 is an implementation of both encoder and decoder of
+ ;; mediastreamer2 needs a more recent commit than the latest release to
+ ;; detect the BCG729 package.
+ (let ((commit "8bec1e5fc072f3669e435edd137eb3da6da2eef7")
+ (revision "1"))
+ (package
+ (name "bcg729")
+ (version (git-version "1.1.1" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://gitlab.linphone.org/BC/public/bcg729.git")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1s0bnxqv7xrh65ypdyvahjslx8rj0q1zm0bpvwcakf5hs7h45g7x"))))
+ (build-system cmake-build-system)
+ (arguments
+ `(#:configure-flags (list "-DBUILD_SHARED_LIBS=YES"
+ "-DENABLE_UNIT_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* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (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)))
+ (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.")
- (home-page "https://linphone.org/technical-corner/bcg729")
- (license license:gpl3+)))
+ (home-page "https://linphone.org/technical-corner/bcg729")
+ (license license:gpl3+))))
(define-public ortp
(package
(name "ortp")
- (version "5.2.49")
+ (version "5.3.57")
(source
(origin
(method git-fetch)
@@ -413,14 +404,14 @@ such as conferencing.")
(commit version)))
(file-name (git-file-name name version))
(sha256
- (base32 "1hzbrj1ny3lr9sql0lrxggc48sqv5j2yvbpnrdnph88pwzrdnbn5"))))
+ (base32 "1bl3ig1xbxprcdid9i8bnl433x4crxqnj30x5lxiy9ka79b8s8r6"))))
(build-system cmake-build-system)
(outputs '("out" "tester"
"doc")) ;1.5 MiB of HTML doc
(arguments
(list
#:tests? #f ;requires networking
- #:configure-flags '(list "-DENABLE_STATIC=NO"
+ #:configure-flags '(list "-DBUILD_SHARED_LIBS=ON"
"-DENABLE_DOC=NO" ;XXX: missing link for b64
"-DENABLE_TESTS=YES"
;; fix build error with GCC 14.
@@ -459,7 +450,7 @@ implements the RFC 3550 standard.")
(define-public bzrtp
(package
(name "bzrtp")
- (version "5.2.49")
+ (version "5.3.57")
(source
(origin
(method git-fetch)
@@ -468,15 +459,17 @@ implements the RFC 3550 standard.")
(commit version)))
(file-name (git-file-name name version))
(sha256
- (base32 "0dvn1w0g9c07llz9n82l6qdzz8lzz74jcdm1yyfks0jy7i63cr8w"))))
+ (base32 "1q8w5blf2cjmzyv4bdd7zg4lv3pfjq6w6cfm6d75az4xqzg023kp"))))
(build-system cmake-build-system)
(arguments
- `(#:configure-flags
- (list
- "-DENABLE_STATIC=NO"
- "-DENABLE_TESTS=YES")))
- (inputs
- (list bctoolbox libxml2 sqlite))
+ (list
+ #:configure-flags #~(list "-DBUILD_SHARED_LIBS=YES"
+ "-DENABLE_DOC=YES")
+ #:tests? #f)) ;tests require external resources
+ (inputs (list bctoolbox libxml2))
+ ;; sqlite is listed in the interface link libraries of bzrtp, and must be
+ ;; available at build time when using the bzrtp library.
+ (propagated-inputs (list sqlite))
(synopsis "Belledonne Communications ZRTP Library")
(description "BZRTP is an implementation of ZRTP keys exchange protocol,
written in C. It is fully portable and can be executed on many platforms
@@ -487,7 +480,7 @@ including both ARM and x86.")
(define-public belle-sip
(package
(name "belle-sip")
- (version "5.2.49")
+ (version "5.3.57")
(source
(origin
(method git-fetch)
@@ -496,12 +489,12 @@ including both ARM and x86.")
(commit version)))
(file-name (git-file-name name version))
(sha256
- (base32 "0yx1qvzp11ysh24hxrvz7dm69j8zswa0xcx9m42vcv95z72166cq"))))
+ (base32 "1jmvf1s54ppc0qfi2wl6whk7s3lghpzzp6597nblncjsr2i6ha6c"))))
(build-system cmake-build-system)
(outputs '("out" "tester"))
(arguments
(list
- #:configure-flags '(list "-DENABLE_STATIC=NO"
+ #:configure-flags '(list "-DBUILD_SHARED_LIBS=ON"
"-DENABLE_MDNS=ON"
;; We skip a test and thus have an unused
;; procedure, so we need to disable -Werror.
@@ -536,7 +529,7 @@ including both ARM and x86.")
(delete 'check) ;move after install
(add-after 'install 'separate-outputs
(lambda _
- (let ((tester-name "belle_sip_tester"))
+ (let ((tester-name "belle-sip-tester"))
(for-each mkdir-p (list (string-append #$output:tester "/bin")
(string-append #$output:tester "/share")))
(rename-file (string-append #$output "/bin")
@@ -547,7 +540,7 @@ including both ARM and x86.")
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(let ((tester (string-append #$output:tester
- "/bin/belle_sip_tester")))
+ "/bin/belle-sip-tester")))
(for-each (lambda (suite-name)
(invoke tester "--suite" suite-name))
(list "Object inheritance"
@@ -566,8 +559,7 @@ including both ARM and x86.")
"Refresher"
;;"HTTP stack"
"Object")))))))))
- (inputs
- (list avahi bctoolbox belr zlib))
+ (inputs (list avahi bctoolbox belr zlib))
(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
@@ -578,7 +570,7 @@ API. It also comprises a simple HTTP/HTTPS client implementation.")
(define-public mediastreamer2
(package
(name "mediastreamer2")
- (version "5.2.49")
+ (version "5.3.57")
(source
(origin
(method git-fetch)
@@ -587,12 +579,12 @@ API. It also comprises a simple HTTP/HTTPS client implementation.")
(commit version)))
(file-name (git-file-name name version))
(sha256
- (base32 "0mj0q2xaac22p2wf5gvgaiga03fbydilxfxzwyc6nwp5fyjnzawd"))))
+ (base32 "1zv13icfdpaq7fa325mnqf340vbvif9791hb9h22qpc0f2wcwvjb"))))
(outputs '("out" "doc" "tester"))
(build-system cmake-build-system)
(arguments
(list
- #:configure-flags '(list "-DENABLE_STATIC=NO"
+ #:configure-flags '(list "-DBUILD_SHARED_LIBS=ON"
"-DENABLE_PCAP=YES"
;; Do not fail on compile warnings.
"-DENABLE_STRICT=NO"
@@ -619,7 +611,7 @@ API. It also comprises a simple HTTP/HTTPS client implementation.")
(delete 'check) ;move after install
(add-after 'install 'separate-outputs
(lambda _
- (let ((tester-name (string-append #$name "_tester"))
+ (let ((tester-name (string-append #$name "-tester"))
(doc-name (string-append #$name "-" #$version)))
(for-each mkdir-p
(list (string-append #$output:tester "/bin")
@@ -637,7 +629,7 @@ API. It also comprises a simple HTTP/HTTPS client implementation.")
(add-after 'separate-outputs 'check
(lambda _
(let ((tester (string-append #$output:tester
- "/bin/mediastreamer2_tester")))
+ "/bin/mediastreamer2-tester")))
(for-each (lambda (suite-name)
(invoke tester "--suite" suite-name))
;; Some tests fail, due to requiring access to the
@@ -658,28 +650,29 @@ API. It also comprises a simple HTTP/HTTPS client implementation.")
bcg729
bcmatroska2
bctoolbox
+ bzrtp
+ dav1d
ffmpeg-4
glew
glu
- mesa-utils
gsm
+ libjpeg-turbo
+ libpcap
+ libsrtp
+ libtheora
+ libvpx
+ libx11
+ libxv
mesa
+ mesa-utils
opus
ortp
- libpcap
portaudio
pulseaudio
spandsp
speex
speexdsp
- libsrtp
- libtheora
- libjpeg-turbo
- v4l-utils
- libvpx
- libx11
- libxv
- bzrtp))
+ v4l-utils))
(synopsis "Belledonne Communications Streaming Engine")
(description "Mediastreamer2 is a powerful and lightweight streaming engine
for telephony applications. This media processing and streaming toolkit is
@@ -691,7 +684,7 @@ including media capture, encoding and decoding, and rendering.")
(define-public lime
(package
(name "lime")
- (version "5.2.49")
+ (version "5.3.57")
(source
(origin
(method git-fetch)
@@ -700,39 +693,36 @@ including media capture, encoding and decoding, and rendering.")
(commit version)))
(file-name (git-file-name name version))
(sha256
- (base32 "1mglnypxl3glwvwf2h5q4ikbm6wbcd9pb7kdws8zajjhk9q803jr"))))
+ (base32 "1jd549f4cky5rcvq3d2zn8d383jahdi71nhkzblnr6mqqbn6b7sa"))))
(build-system cmake-build-system)
(outputs '("out" "doc"))
(arguments
- `(#:configure-flags (list "-DENABLE_STATIC=NO"
- "-DENABLE_C_INTERFACE=YES"
- "-DENABLE_DOC=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_test\\(?.*\"Multidomains\"\\)") "")
- (("add_test\\(?.*\"Lime server\"\\)") ""))))
- (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
- (list bctoolbox belle-sip soci))
+ (list #:configure-flags #~(list "-DBUILD_SHARED_LIBS=ON"
+ "-DENABLE_C_INTERFACE=YES"
+ "-DENABLE_DOC=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_test\\(?.*\"Multidomains\"\\)") "")
+ (("add_test\\(?.*\"Lime server\"\\)") ""))))
+ (add-after 'build 'build-doc
+ (lambda _
+ (invoke "make" "doc")))
+ (add-after 'install 'install-doc
+ (lambda _
+ (let* ((doc #$output:doc)
+ (dir (string-append doc "/share/doc"))
+ (dest (string-append dir "/" #$name "-" #$version)))
+ (mkdir-p dest)
+ (copy-recursively "doc" dest)))))))
+ (native-inputs (list graphviz doxygen))
+ (inputs (list bctoolbox belle-sip belr soci))
(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
@@ -744,7 +734,7 @@ device.")
(define-public liblinphone
(package
(name "liblinphone")
- (version "5.2.50")
+ (version "5.3.57")
(source
(origin
(method git-fetch)
@@ -753,37 +743,41 @@ device.")
(commit version)))
(file-name (git-file-name name version))
(sha256
- (base32 "1lvbva234rmck57cxgswgqqvnq8r58i0ls4qgpymrxdfj74rinxj"))))
+ (base32 "1f3hcbdkd8nqvjm5avylz226a8in360yiafcsxpa69wvh1a03i4h"))
+ (patches (search-patches "liblinphone-jsoncpp.patch"))))
(outputs '("out" "tester"))
(build-system cmake-build-system)
(arguments
(list
#:tests? #f ; Tests require networking
#:configure-flags
- '(list "-DENABLE_FLEXIAPI=NO" ;requires jsoncpp, but it cannot be found
- "-DENABLE_STATIC=NO"
- "-DENABLE_DOC=NO" ;requires unpackaged javasphinx
- "-DENABLE_LDAP=YES"
- "-DENABLE_STRICT=NO")
+ #~(list "-DBUILD_SHARED_LIBS=ON"
+ "-DENABLE_DOC=NO" ;requires unpackaged javasphinx
+ "-DENABLE_LDAP=YES"
+ "-DENABLE_STRICT=NO")
#:phases
#~(modify-phases %standard-phases
(add-after 'install 'separate-outputs
(lambda* (#:key outputs #:allow-other-keys)
- (let ((tester-name (string-append #$name "_tester")))
+ (let ((tester-name (string-append #$name "-tester")))
(for-each mkdir-p
(list (string-append #$output:tester "/bin")
(string-append #$output:tester "/share")))
- (rename-file (string-append #$output "/bin/" tester-name)
- (string-append #$output:tester "/bin/" tester-name))
- (rename-file (string-append #$output "/bin/groupchat_benchmark")
- (string-append #$output:tester "/bin/groupchat_benchmark"))
- (rename-file (string-append #$output "/share/" tester-name)
- (string-append #$output:tester "/share/" tester-name))))))))
+ (rename-file
+ (string-append #$output "/bin/" tester-name)
+ (string-append #$output:tester "/bin/" tester-name))
+ (rename-file
+ (string-append #$output "/bin/liblinphone-groupchat-benchmark")
+ (string-append #$output:tester "/bin/liblinphone-groupchat-benchmark"))
+ (rename-file
+ (string-append #$output "/share/" tester-name)
+ (string-append #$output:tester "/share/" tester-name))))))))
(native-inputs
(list graphviz
doxygen
gettext-minimal
perl
+ pkg-config
python-wrapper
python-pystache
python-six
@@ -791,20 +785,24 @@ device.")
(inputs
(list bctoolbox
belcard
- belle-sip
belr
bzrtp
- lime
libnotify
- libxml2
- mediastreamer2
openldap-for-linphone
- ortp
soci
- sqlite
xsd
zlib
- zxing-cpp-1.2a))
+ zxing-cpp))
+ (propagated-inputs
+ ;; The following libraries are "required" by the LibLinphoneConfig.cmake
+ ;; CMake module.
+ (list belle-sip
+ jsoncpp
+ mediastreamer2
+ libxml2
+ lime
+ ortp
+ sqlite))
(synopsis "Belledonne Communications Softphone Library")
(description "Liblinphone is a high-level SIP library integrating
all calling and instant messaging features into an unified
@@ -817,7 +815,7 @@ and video calls or instant messaging capabilities to an application.")
(define-public linphone-desktop
(package
(name "linphone-desktop")
- (version "5.0.14")
+ (version "5.2.6")
(source
(origin
(method git-fetch)
@@ -826,29 +824,30 @@ and video calls or instant messaging capabilities to an application.")
(commit version)))
(file-name (git-file-name name version))
(sha256
- (base32 "0glrfsp087ni5hn6x6p4f6y63r4nyp061yyy0rfgddbxkzdqi2j1"))
- (patches (search-patches "linphone-desktop-without-sdk.patch"))))
+ (base32 "06qfmgnsyaw1mdhd04pibsyfchy1bj15zvy36wz82g5dx3c5yj17"))
+ (patches
+ (search-patches "linphone-desktop-cmake-belcard.patch"
+ "linphone-desktop-cmake-find-modules.patch"
+ "linphone-desktop-ispell.patch"
+ "linphone-desktop-qtkeychain.patch"))))
(build-system qt-build-system)
(outputs '("out" "debug"))
(arguments
(list
#:tests? #f ; No test target
#:configure-flags
- #~(list (string-append "-DFULL_VERSION=" #$version)
- (string-append "-DCMAKE_INSTALL_PREFIX=" #$output)
+ #~(list (string-append "-DLINPHONEAPP_VERSION=" #$version)
(string-append "-DCMAKE_INSTALL_BINDIR=" #$output "/bin")
(string-append "-DCMAKE_INSTALL_DATAROOTDIR=" #$output "/share")
+ (string-append "-DCMAKE_INSTALL_INCLUDEDIR=" #$output "/include")
(string-append "-DCMAKE_INSTALL_LIBDIR=" #$output "/lib")
"-DENABLE_UPDATE_CHECK=NO"
"-DENABLE_DAEMON=YES"
- "-DENABLE_CONSOLE_UI=YES")
+ "-DENABLE_CONSOLE_UI=YES"
+ "-DLinphoneCxx_TARGET=liblinphone++"
+ "-DLINPHONE_QT_ONLY=YES") ;avoid building linphone SDK
#:phases
#~(modify-phases %standard-phases
- (add-after 'unpack 'pre-configure
- (lambda _
- (make-file-writable "linphone-app/linphoneqt_version.cmake")
- (substitute* "linphone-app/linphoneqt_version.cmake"
- (("\\$\\{GUIX-SET-VERSION\\}") #$version))))
(add-before 'install 'pre-install
(lambda _
(mkdir-p (string-append #$output "/share/linphone"))
@@ -875,18 +874,19 @@ and video calls or instant messaging capabilities to an application.")
(mkdir-p (dirname grammar-dest))
(symlink (string-append liblinphone "/share/belr/grammars")
grammar-dest)))))))
- (native-inputs
- (list pkg-config qttools-5))
+ (native-inputs (list pkg-config qttools-5))
(inputs
(list bctoolbox
belcard
- belr
+ ispell-for-linphone
liblinphone
mediastreamer2
ortp
qtbase-5
qtdeclarative-5
qtgraphicaleffects
+ qtkeychain
+ qtmultimedia-5
qtquickcontrols-5
qtquickcontrols2-5
qtsvg-5
@@ -913,11 +913,12 @@ and video calls or instant messaging capabilities to an application.")
(license license:gpl3+)))
(define-public msopenh264
- (let ((commit "88697cc95140017760d6da408cb0efdc5e86e40a")
+ ;; Unreleased commits are needed for the build to succeed.
+ (let ((commit "041b07a81f88f1dde2ebb7a1ea0b0e2ec281ab20")
(revision "0"))
(package
(name "msopenh264")
- (version (git-version "1.2.1" revision commit))
+ (version (git-version "5.2.0" revision commit))
(source
(origin
(method git-fetch)
@@ -926,14 +927,20 @@ and video calls or instant messaging capabilities to an application.")
(commit commit)))
(file-name (git-file-name name version))
(sha256
- (base32 "10y3b6s934f2wbsf60b3p0g6hffizjqrj5in8l4sida2fjdxlwwy"))))
+ (base32 "0hwf8x5dc3iksdv61k4raswngyk3cyx8700v2rzrm296aw74f5r1"))))
(build-system cmake-build-system)
(arguments
- `(#:tests? #f ; No test target
- #:configure-flags
- (list "-DENABLE_STATIC=NO"))) ; Not required
- (inputs
- (list bctoolbox mediastreamer2 openh264 ortp))
+ (list
+ #:tests? #f ; No test target
+ #:configure-flags #~(list "-DBUILD_SHARED_LIBS=ON")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-Mediastreamer2_PLUGINS_DIR
+ (lambda _
+ (substitute* "src/CMakeLists.txt"
+ (("\\$\\{Mediastreamer2_PLUGINS_DIR}")
+ (string-append #$output "/lib/mediastreamer/plugins"))))))))
+ (inputs (list bctoolbox mediastreamer2 openh264 ortp))
(synopsis "Media Streamer H.264 Codec")
(description "MsOpenH264 is an H.264 encoder/decoder plugin for
mediastreamer2 based on the openh264 library.")
@@ -941,11 +948,12 @@ and video calls or instant messaging capabilities to an application.")
(license license:gpl2+))))
(define-public mssilk
- (let ((commit "dd0f31ee795faa7ea89e601b072dae4cd1df7e3f")
+ ;; The latest release doesn't build; use the latest commit.
+ (let ((commit "0c6893fb74ecca34cb2707f7fffd0d7487b24925")
(revision "0"))
(package
(name "mssilk")
- (version (git-version "1.1.1" revision commit))
+ (version (git-version "1.2.0" revision commit))
(source
(origin
(method git-fetch)
@@ -954,14 +962,20 @@ and video calls or instant messaging capabilities to an application.")
(commit commit)))
(file-name (git-file-name name version))
(sha256
- (base32 "1dann5fnzqp6wjlwc6bl2k9b6rvn6bznqb3qsi1kgv9dnq44cbr0"))))
+ (base32 "1hpsh0iyby44hdanmkjnad7p9flhq2wcim8nl5bkyv1gw50sanli"))))
(build-system cmake-build-system)
(arguments
- `(#:tests? #f ; No test target
- #:configure-flags
- (list "-DENABLE_STATIC=NO"))) ; Not required
- (inputs
- (list bctoolbox mediastreamer2 ortp))
+ (list
+ #:tests? #f ; No test target
+ #:configure-flags #~(list "-DBUILD_SHARED_LIBS=ON")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-Mediastreamer2_PLUGINS_DIR
+ (lambda _
+ (substitute* "CMakeLists.txt"
+ (("\\$\\{Mediastreamer2_PLUGINS_DIR}")
+ (string-append #$output "/lib/mediastreamer/plugins"))))))))
+ (inputs (list bctoolbox mediastreamer2 ortp))
(synopsis "Media Streamer SILK Codec")
(description "MSSILK is a plugin of MediaStreamer, adding support for AMR
codec. It is based on the Skype's SILK implementation.")
@@ -969,62 +983,68 @@ codec. It is based on the Skype's SILK implementation.")
(license license:gpl2+))))
(define-public mswebrtc
- (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
- (list bctoolbox mediastreamer2 ortp))
- (synopsis "Media Streamer WebRTC Codec")
- (description "MSWebRTC is a plugin of MediaStreamer, adding support for
+ ;; A newer, unreleased commit is needed to detect a recent oRTP; use the
+ ;; latest one available.
+ (package
+ (name "mswebrtc")
+ (version "1.1.2")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://gitlab.linphone.org/BC/public/mswebrtc")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "10j124vd9zm03s1vzb74n3zjrf6x1nfvji7vryih4dq2xlgrqxx6"))
+ (patches (search-patches "mswebrtc-b64-refactor.patch"
+ "mswebrtc-cmake.patch"))))
+ (build-system cmake-build-system)
+ (arguments
+ (list
+ #:tests? #f ; No test target
+ #:configure-flags #~(list "-DBUILD_SHARED_LIBS=ON")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-Mediastreamer2_PLUGINS_DIR
+ (lambda _
+ (substitute* "CMakeLists.txt"
+ (("\\$\\{Mediastreamer2_PLUGINS_DIR}")
+ (string-append #$output "/lib/mediastreamer/plugins")))))
+ (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)))))))
+ (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 (list bctoolbox mediastreamer2 ortp))
+ (synopsis "Media Streamer WebRTC Codec")
+ (description "MSWebRTC is a plugin of MediaStreamer, adding support for
WebRTC codec. It includes features from WebRTC, such as, iSAC and AECM.")
- (home-page "https://gitlab.linphone.org/BC/public/mswebrtc")
- (license license:gpl2+))))
+ (home-page "https://gitlab.linphone.org/BC/public/mswebrtc")
+ (license license:gpl2+)))
(define-public msamr
- (let ((commit "5ab5c098299107048dfcbfc741f7392faef167bd")
- (revision "0"))
+ ;; The latest 1.1.4 release is 2 years old, doesn't build with a recent
+ ;; bctoolbox; use the latest commit available.
+ (let ((commit "129fc98c04a5cd412d5393427d43b0b445263ead")
+ (revision "1"))
(package
(name "msamr")
- (version (git-version "1.1.3" revision commit))
+ (version (git-version "1.1.4" revision commit))
(source
(origin
(method git-fetch)
@@ -1033,19 +1053,30 @@ WebRTC codec. It includes features from WebRTC, such as, iSAC and AECM.")
(commit commit)))
(file-name (git-file-name name version))
(sha256
- (base32 "1g79lw1qi1mlw3v1b0cixmqiwjql81gz9naakb15n8pvaag9aaqm"))))
+ (base32 "0zp5vmhgp18812j2pbys7g3v0slkc70q9qp7k26bk7iddg1yy9x2"))))
(build-system cmake-build-system)
(arguments
- `(#:tests? #f ; No test target
- #:configure-flags
- (list "-DENABLE_STATIC=NO" ; Not required
- "-DENABLE_WIDEBAND=YES")))
+ (list
+ #:tests? #f ; No test target
+ #:configure-flags
+ #~(list "-DBUILD_SHARED_LIBS=YES"
+ "-DENABLE_WIDEBAND=YES")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-Mediastreamer2_PLUGINS_DIR
+ (lambda _
+ ;; msamr tries to install its plugins to
+ ;; Mediastreamer2_PLUGINS_DIR, which is provided by
+ ;; mediastreamer2 and points to its installation prefix.
+ (substitute* "src/CMakeLists.txt"
+ (("\\$\\{Mediastreamer2_PLUGINS_DIR}")
+ (string-append #$output "/lib/mediastreamer/plugins"))))))))
(inputs
- `(("bctoolbox" ,bctoolbox)
- ("mediastreamer2" ,mediastreamer2)
- ("opencoreamr" ,opencore-amr)
- ("ortp" ,ortp)
- ("voamrwbenc" ,vo-amrwbenc)))
+ (list bctoolbox
+ mediastreamer2
+ opencore-amr
+ ortp
+ vo-amrwbenc))
(synopsis "Media Streamer AMR Codec")
(description "MSAMR is a plugin of MediaStreamer, adding support for AMR
codec. It is based on the opencore-amr implementation.")