mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: bctoolbox: Update to 5.3.57.
* gnu/packages/linphone.scm (bctoolbox): Update to 5.3.57. [arguments] <configure-flags>: Replace -DENABLE_STATIC=OFF with -DBUILD_SHARED_LIBS=ON. <phases>: Use gexps. Use search-input-directory in patch-cmake phase. Adjust tester file name in check phase override. Change-Id: I4571c238268220c0ac11f42f3caec3e41c879331
This commit is contained in:
parent
1997b0d3b5
commit
fb76d9ddda
1 changed files with 43 additions and 44 deletions
|
@ -124,7 +124,7 @@ writing, administering, and running unit tests in C.")
|
||||||
(define-public bctoolbox
|
(define-public bctoolbox
|
||||||
(package
|
(package
|
||||||
(name "bctoolbox")
|
(name "bctoolbox")
|
||||||
(version "5.2.49")
|
(version "5.3.57")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
|
@ -133,28 +133,28 @@ writing, administering, and running unit tests in C.")
|
||||||
(commit version)))
|
(commit version)))
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "0b51308jy5z32gp594r78jvbyrha16sanxdnbcmxgrwnb4myqx5j"))))
|
(base32 "178axy7gmmi6fzjbz7aaawcx0qg50i4hnn7ab6w642b02vxfr386"))))
|
||||||
(build-system cmake-build-system)
|
(build-system cmake-build-system)
|
||||||
(outputs '("out" "debug"))
|
(outputs '("out" "debug"))
|
||||||
(arguments
|
(arguments
|
||||||
`(#:configure-flags (list "-DENABLE_STATIC=OFF"
|
(list
|
||||||
|
#:configure-flags #~(list "-DBUILD_SHARED_LIBS=ON"
|
||||||
;; Do not use -Werror, because due to skipping
|
;; Do not use -Werror, because due to skipping
|
||||||
;; a test there are unused procedures.
|
;; a test there are unused procedures.
|
||||||
"-DENABLE_STRICT=OFF")
|
"-DENABLE_STRICT=OFF")
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'patch-cmake
|
(add-after 'unpack 'patch-cmake
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
;; Fix decaf dependency (see:
|
;; Fix decaf dependency (see:
|
||||||
;; https://gitlab.linphone.org/BC/public/bctoolbox/-/issues/3).
|
;; https://gitlab.linphone.org/BC/public/bctoolbox/-/issues/3).
|
||||||
(let* ((decaf (assoc-ref inputs "libdecaf")))
|
|
||||||
(substitute* (find-files "." "CMakeLists.txt")
|
(substitute* (find-files "." "CMakeLists.txt")
|
||||||
(("find_package\\(Decaf CONFIG\\)")
|
(("find_package\\(Decaf CONFIG\\)")
|
||||||
"set(DECAF_FOUND 1)")
|
"set(DECAF_FOUND 1)")
|
||||||
(("\\$\\{DECAF_INCLUDE_DIRS\\}")
|
(("\\$\\{DECAF_INCLUDE_DIRS\\}")
|
||||||
(string-append decaf "/include/decaf"))
|
(search-input-directory inputs "include/decaf"))
|
||||||
(("\\$\\{DECAF_TARGETNAME\\}")
|
(("\\$\\{DECAF_TARGETNAME\\}")
|
||||||
"decaf")))))
|
"decaf"))))
|
||||||
(add-after 'unpack 'skip-problematic-tests
|
(add-after 'unpack 'skip-problematic-tests
|
||||||
(lambda _
|
(lambda _
|
||||||
;; The following test relies on networking; disable it.
|
;; The following test relies on networking; disable it.
|
||||||
|
@ -176,9 +176,8 @@ writing, administering, and running unit tests in C.")
|
||||||
(lambda* (#:key tests? #:allow-other-keys)
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
(when tests?
|
(when tests?
|
||||||
(with-directory-excursion "tester"
|
(with-directory-excursion "tester"
|
||||||
(invoke "./bctoolbox_tester"))))))))
|
(invoke "./bctoolbox-tester"))))))))
|
||||||
(inputs
|
(inputs (list bcunit libdecaf mbedtls-lts))
|
||||||
(list bcunit libdecaf mbedtls-lts))
|
|
||||||
(synopsis "Belledonne Communications Tool Box")
|
(synopsis "Belledonne Communications Tool Box")
|
||||||
(description "BcToolBox is an utilities library used by Belledonne
|
(description "BcToolBox is an utilities library used by Belledonne
|
||||||
Communications software like belle-sip, mediastreamer2 and linphone.")
|
Communications software like belle-sip, mediastreamer2 and linphone.")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue