Sun Aug 19 18:41:10 2012 UTC ()
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.


(jnemeth)
diff -r1.42 -r1.43 pkgsrc/comms/asterisk18/Makefile
diff -r1.18 -r1.19 pkgsrc/comms/asterisk18/PLIST

cvs diff -r1.42 -r1.43 pkgsrc/comms/asterisk18/Makefile (expand / switch to context diff)
--- pkgsrc/comms/asterisk18/Makefile 2012/08/03 08:22:53 1.42
+++ pkgsrc/comms/asterisk18/Makefile 2012/08/19 18:41:10 1.43
@@ -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
@@ -99,6 +99,14 @@
 PLIST_VARS+=	kqueue
 .if exists(/usr/include/sys/event.h)
 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"

cvs diff -r1.18 -r1.19 pkgsrc/comms/asterisk18/PLIST (expand / switch to context diff)
--- pkgsrc/comms/asterisk18/PLIST 2012/07/17 00:29:33 1.18
+++ pkgsrc/comms/asterisk18/PLIST 2012/08/19 18:41:10 1.19
@@ -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 @@
 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