mirror of
https://codeberg.org/guix/guix.git
synced 2026-01-25 12:05:19 -06:00
gnu: bcg729: Update to 1.1.1-1.8bec1e5.
* gnu/packages/linphone.scm (bcg729): Update to 1.1.1-1.8bec1e5. [#:phases] <check> Honor #:tests?. Change-Id: I30e5732ce1d24a37f6a4a8ee1b55fb5db861b932
This commit is contained in:
parent
f9e772d692
commit
d475fc671d
1 changed files with 70 additions and 65 deletions
|
|
@ -316,75 +316,80 @@ 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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue