mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-26 12:39:36 -05:00
gnu: mediastreamer2: Enable PCAP, port-audio and G729B support.
* gnu/packages/linphone.scm (mediastreamer2) [configure-flags]: Add the ENABLE_PCAP, ENABLE_PORTAUDIO and ENABLE_G729B_CNG flags. [phases]{patch-source}: New phase. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
This commit is contained in:
parent
0c6f7d8396
commit
abc1418786
1 changed files with 10 additions and 1 deletions
|
@ -532,7 +532,12 @@ (define-public mediastreamer2
|
|||
(outputs '("out" "doc" "tester"))
|
||||
(build-system cmake-build-system)
|
||||
(arguments
|
||||
`(#:configure-flags (list "-DENABLE_STATIC=NO")
|
||||
`(#: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")
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'unpack 'fix-version
|
||||
|
@ -540,6 +545,10 @@ (define-public mediastreamer2
|
|||
(substitute* "CMakeLists.txt"
|
||||
(("VERSION [0-9]+\\.[0-9]+\\.[0-9]+")
|
||||
(string-append "VERSION " ,version)))))
|
||||
(add-after 'unpack 'patch-source
|
||||
(lambda _
|
||||
(substitute* "src/otherfilters/mspcapfileplayer.c"
|
||||
(("O_BINARY") "L_INCR"))))
|
||||
(add-before 'check 'pre-check
|
||||
(lambda _
|
||||
;; Tests require a running X server.
|
||||
|
|
Loading…
Reference in a new issue