gnu: belle-sip: Enable mDNS support.
* gnu/packages/linphone.scm (belle-sip)[configure-flags]: Enable mDNS support. [phases]{patch}: Force the detection of avahi. [inputs]: Add avahi.
This commit is contained in:
parent
c2a8674614
commit
3c7ff0be83
1 changed files with 15 additions and 4 deletions
|
@ -23,6 +23,7 @@
|
||||||
#:use-module (gnu packages)
|
#:use-module (gnu packages)
|
||||||
#:use-module (gnu packages admin)
|
#:use-module (gnu packages admin)
|
||||||
#:use-module (gnu packages audio)
|
#:use-module (gnu packages audio)
|
||||||
|
#:use-module (gnu packages avahi)
|
||||||
#:use-module (gnu packages base)
|
#:use-module (gnu packages base)
|
||||||
#:use-module (gnu packages compression)
|
#:use-module (gnu packages compression)
|
||||||
#:use-module (gnu packages crypto)
|
#:use-module (gnu packages crypto)
|
||||||
|
@ -493,12 +494,21 @@ including both ARM and x86.")
|
||||||
(build-system cmake-build-system)
|
(build-system cmake-build-system)
|
||||||
(outputs '("out" "tester"))
|
(outputs '("out" "tester"))
|
||||||
(arguments
|
(arguments
|
||||||
`(#:configure-flags
|
`(#:configure-flags (list "-DENABLE_STATIC=NO"
|
||||||
(list "-DENABLE_STATIC=NO") ; Not required
|
"-DENABLE_MDNS=ON")
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'patch
|
(add-after 'unpack 'patch
|
||||||
(lambda _
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
|
;; Fix mDNS dependency.
|
||||||
|
(let* ((avahi (assoc-ref inputs "avahi")))
|
||||||
|
(substitute* (find-files "." "CMakeLists.txt")
|
||||||
|
(("find_package\\(DNSSD REQUIRED\\)")
|
||||||
|
"set(DNSSD_FOUND 1)")
|
||||||
|
(("\\$\\{DNSSD_INCLUDE_DIRS\\}")
|
||||||
|
(string-append avahi "/include/avahi-compat-libdns_sd"))
|
||||||
|
(("\\$\\{DNSSD_LIBRARIES\\}")
|
||||||
|
"dns_sd")))
|
||||||
(substitute* "src/CMakeLists.txt"
|
(substitute* "src/CMakeLists.txt"
|
||||||
;; ANTLR would use multithreaded DFA generation otherwise,
|
;; ANTLR would use multithreaded DFA generation otherwise,
|
||||||
;; which would not be reproducible.
|
;; which would not be reproducible.
|
||||||
|
@ -538,7 +548,8 @@ including both ARM and x86.")
|
||||||
;;"HTTP stack"
|
;;"HTTP stack"
|
||||||
"Object"))))))))
|
"Object"))))))))
|
||||||
(inputs
|
(inputs
|
||||||
`(("bctoolbox" ,bctoolbox)
|
`(("avahi" ,avahi)
|
||||||
|
("bctoolbox" ,bctoolbox)
|
||||||
("zlib" ,zlib)))
|
("zlib" ,zlib)))
|
||||||
(synopsis "Belledonne Communications SIP Library")
|
(synopsis "Belledonne Communications SIP Library")
|
||||||
(description "Belle-sip is a modern library implementing SIP transport,
|
(description "Belle-sip is a modern library implementing SIP transport,
|
||||||
|
|
Reference in a new issue