summaryrefslogtreecommitdiff
path: root/comms
diff options
context:
space:
mode:
authorjnemeth <jnemeth@pkgsrc.org>2012-08-15 06:05:33 +0000
committerjnemeth <jnemeth@pkgsrc.org>2012-08-15 06:05:33 +0000
commitdb90eaf63c45a4ddef68209852809acb894db9db (patch)
treeef4040fc2524751506d9892b2047e84727744b8c /comms
parentfdada8530fcfeb81a4fc72c729f14a07f08ccc73 (diff)
downloadpkgsrc-db90eaf63c45a4ddef68209852809acb894db9db.tar.gz
Implement a build fix for the situation where some people were seeing
chan_mgcp.so being built and installed causing PLIST issues.
Diffstat (limited to 'comms')
-rw-r--r--comms/asterisk10/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/comms/asterisk10/Makefile b/comms/asterisk10/Makefile
index 299c886ff51..9404952eddd 100644
--- a/comms/asterisk10/Makefile
+++ b/comms/asterisk10/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.24 2012/08/03 08:52:31 jnemeth Exp $
+# $NetBSD: Makefile,v 1.25 2012/08/15 06:05:33 jnemeth Exp $
#
# NOTE: when updating this package, there are two places that sound
# tarballs need to be checked
@@ -100,6 +100,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