summaryrefslogtreecommitdiff
path: root/comms
diff options
context:
space:
mode:
authorjnemeth <jnemeth>2012-08-19 18:41:10 +0000
committerjnemeth <jnemeth>2012-08-19 18:41:10 +0000
commitdfd47e8f6f0eeb28ed1c8e8de5d34a0a98379bdc (patch)
treebbbde0b585cb817e2b088c47d49e1cc401f1bc8c /comms
parent146a2c366fb149ed02d5c9892c7a31d10251d264 (diff)
downloadpkgsrc-dfd47e8f6f0eeb28ed1c8e8de5d34a0a98379bdc.tar.gz
Fix the build issue where some people were seeing chan_mgcp.so
being built and others weren't by detecting the situation when it would be built and adjusting the PLIST accordingly.
Diffstat (limited to 'comms')
-rw-r--r--comms/asterisk18/Makefile10
-rw-r--r--comms/asterisk18/PLIST3
2 files changed, 11 insertions, 2 deletions
diff --git a/comms/asterisk18/Makefile b/comms/asterisk18/Makefile
index bc522210f18..230bfb93fe3 100644
--- a/comms/asterisk18/Makefile
+++ b/comms/asterisk18/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.42 2012/08/03 08:22:53 jnemeth Exp $
+# $NetBSD: Makefile,v 1.43 2012/08/19 18:41:10 jnemeth Exp $
#
# NOTE: when updating this package, there are two places that sound
# tarballs need to be checked
@@ -101,6 +101,14 @@ PLIST_VARS+= kqueue
PLIST.kqueue= yes
.endif
+PLIST_VARS+= mgcp
+# NOSIGPIPE is a temp variable, since PLIST.mgcp MUST remain undefined
+# if the grep fails
+NOSIGPIPE!= ${GREP} SO_NOSIGPIPE /usr/include/sys/socket.h || echo ""
+.if ${NOSIGPIPE} != ""
+PLIST.mgcp= yes
+.endif
+
.include "options.mk"
# check sounds/Makefile for current version when upgrading package
diff --git a/comms/asterisk18/PLIST b/comms/asterisk18/PLIST
index 01c63bf0653..252c81a142b 100644
--- a/comms/asterisk18/PLIST
+++ b/comms/asterisk18/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.18 2012/07/17 00:29:33 jnemeth Exp $
+@comment $NetBSD: PLIST,v 1.19 2012/08/19 18:41:10 jnemeth Exp $
include/asterisk.h
include/asterisk/_private.h
include/asterisk/abstract_jb.h
@@ -223,6 +223,7 @@ ${PLIST.jabber}lib/asterisk/modules/chan_gtalk.so
lib/asterisk/modules/chan_iax2.so
${PLIST.jabber}lib/asterisk/modules/chan_jingle.so
lib/asterisk/modules/chan_local.so
+${PLIST.mgcp}lib/asterisk/modules/chan_mgcp.so
lib/asterisk/modules/chan_multicast_rtp.so
lib/asterisk/modules/chan_oss.so
lib/asterisk/modules/chan_sip.so