aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorRaghav Gururajan <rg@raghavgururajan.name>2021-03-16 18:43:55 -0400
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2021-03-29 01:17:13 -0400
commitabc1418786df47816a00c68e90c770d9692a2bb7 (patch)
tree50a5872b5a72aa599cb1974fb2408c2bab7a7c8a /gnu
parent0c6f7d8396349dc5afb5c24b72f940f097737e78 (diff)
downloadguix-abc1418786df47816a00c68e90c770d9692a2bb7.tar.gz
guix-abc1418786df47816a00c68e90c770d9692a2bb7.zip
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>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/linphone.scm11
1 files changed, 10 insertions, 1 deletions
diff --git a/gnu/packages/linphone.scm b/gnu/packages/linphone.scm
index f06b2be452..0da9e02b4c 100644
--- a/gnu/packages/linphone.scm
+++ b/gnu/packages/linphone.scm
@@ -532,7 +532,12 @@ API. It also comprises a simple HTTP/HTTPS client implementation.")
(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 @@ API. It also comprises a simple HTTP/HTTPS client implementation.")
(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.