me
/
guix
Archived
1
0
Fork 0

gnu: pjproject: Include sensible configure flags from pjproject-jami.

This is done so the regular pjproject has more in common with
pjproject-jami, which allows simplifying its definition.

* gnu/packages/telephony.scm (pjproject)[configure-flags]: Add
'--enable-epoll' when the system is Linux.  Define CFLAGS with
the '-DNDEBUG' options.
master
Maxim Cournoyer 2020-08-01 00:06:52 -04:00
parent 839bb42f0c
commit 3557d7d8bc
No known key found for this signature in database
GPG Key ID: 1260E46482E63562
1 changed files with 21 additions and 11 deletions

View File

@ -749,17 +749,27 @@ your calls and messages.")
(arguments (arguments
`(#:tests? #t `(#:tests? #t
#:test-target "selftest" #:test-target "selftest"
configure-flags '("--with-external-speex" #:configure-flags
"--with-external-gsm" (list "--with-external-speex"
"--with-external-srtp" "--with-external-gsm"
"--with-external-pa" "--with-external-srtp"
"--with-gnutls" ;disable OpenSSL checks "--with-external-pa"
"--disable-libyuv" ;TODO: add missing package ;; The following flag is Linux specific.
"--disable-silk" ;TODO: add missing package ,@(if (string-contains (or (%current-system)
"--disable-libwebrtc" ;TODO: add missing package (%current-target-system)) "linux")
"--disable-ilbc-codec" ;cannot be unbundled '("--enable-epoll")
"--disable-g7221-codec" ;TODO: add missing package '())
"--enable-libsamplerate") "--with-gnutls" ;disable OpenSSL checks
"--disable-libyuv" ;TODO: add missing package
"--disable-silk" ;TODO: add missing package
"--disable-libwebrtc" ;TODO: add missing package
"--disable-ilbc-codec" ;cannot be unbundled
"--disable-g7221-codec" ;TODO: add missing package
"--enable-libsamplerate"
;; -DNDEBUG is set to prevent pjproject from raising
;; assertions that aren't critical, crashing
;; applications as the result.
"CFLAGS=-DNDEBUG")
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'unpack 'make-source-files-writable (add-after 'unpack 'make-source-files-writable