@@ -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"
@@ -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