[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
11/19: gnu: belle-sip: Enable mDNS support.
From: |
guix-commits |
Subject: |
11/19: gnu: belle-sip: Enable mDNS support. |
Date: |
Mon, 29 Mar 2021 01:44:05 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit 3c7ff0be83973ea37a186e1e9d277e8d02e4f785
Author: Raghav Gururajan <rg@raghavgururajan.name>
AuthorDate: Tue Mar 16 14:28:56 2021 -0400
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.
---
gnu/packages/linphone.scm | 19 +++++++++++++++----
1 file changed, 15 insertions(+), 4 deletions(-)
diff --git a/gnu/packages/linphone.scm b/gnu/packages/linphone.scm
index ec35ad4..2ca05ac 100644
--- a/gnu/packages/linphone.scm
+++ b/gnu/packages/linphone.scm
@@ -23,6 +23,7 @@
#:use-module (gnu packages)
#:use-module (gnu packages admin)
#:use-module (gnu packages audio)
+ #:use-module (gnu packages avahi)
#:use-module (gnu packages base)
#:use-module (gnu packages compression)
#:use-module (gnu packages crypto)
@@ -493,12 +494,21 @@ including both ARM and x86.")
(build-system cmake-build-system)
(outputs '("out" "tester"))
(arguments
- `(#:configure-flags
- (list "-DENABLE_STATIC=NO") ; Not required
+ `(#:configure-flags (list "-DENABLE_STATIC=NO"
+ "-DENABLE_MDNS=ON")
#:phases
(modify-phases %standard-phases
(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"
;; ANTLR would use multithreaded DFA generation otherwise,
;; which would not be reproducible.
@@ -538,7 +548,8 @@ including both ARM and x86.")
;;"HTTP stack"
"Object"))))))))
(inputs
- `(("bctoolbox" ,bctoolbox)
+ `(("avahi" ,avahi)
+ ("bctoolbox" ,bctoolbox)
("zlib" ,zlib)))
(synopsis "Belledonne Communications SIP Library")
(description "Belle-sip is a modern library implementing SIP transport,
- branch master updated (414fc58 -> a999325), guix-commits, 2021/03/29
- 19/19: gnu: msamr: Update to 1.1.3-11., guix-commits, 2021/03/29
- 06/19: gnu: mediastreamer2: Update to 4.4.34., guix-commits, 2021/03/29
- 01/19: gnu: bctoolbox: Update to 4.4.34 and enable libdecaf, tests., guix-commits, 2021/03/29
- 11/19: gnu: belle-sip: Enable mDNS support.,
guix-commits <=
- 16/19: gnu: msopenh264: Update to 1.2.1-21., guix-commits, 2021/03/29
- 04/19: gnu: bzrtp: Update to 4.4.34 and enable tests., guix-commits, 2021/03/29
- 07/19: gnu: mediastreamer2: Enable tests., guix-commits, 2021/03/29
- 18/19: gnu: mswebrtc: Update to 1.1.1-23., guix-commits, 2021/03/29
- 13/19: gnu: liblinphone: Update to 4.4.34., guix-commits, 2021/03/29
- 03/19: gnu: belcard: Update to 4.4.34 and enable tests., guix-commits, 2021/03/29
- 12/19: gnu: Add lime., guix-commits, 2021/03/29
- 02/19: gnu: belr: Update to 4.4.34 and enable tests., guix-commits, 2021/03/29
- 14/19: gnu: liblinphone: Enable LDAP support., guix-commits, 2021/03/29
- 10/19: gnu: belle-sip: Enable tests., guix-commits, 2021/03/29