From db90eaf63c45a4ddef68209852809acb894db9db Mon Sep 17 00:00:00 2001 From: jnemeth Date: Wed, 15 Aug 2012 06:05:33 +0000 Subject: Implement a build fix for the situation where some people were seeing chan_mgcp.so being built and installed causing PLIST issues. --- comms/asterisk10/Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'comms') 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 -- cgit v1.2.3