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.diff -r1.42 -r1.43 pkgsrc/comms/asterisk18/Makefile
(jnemeth)
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile,v 1.42 2012/08/03 08:22:53 jnemeth Exp $ | 1 | # $NetBSD: Makefile,v 1.43 2012/08/19 18:41:10 jnemeth Exp $ | |
2 | # | 2 | # | |
3 | # NOTE: when updating this package, there are two places that sound | 3 | # NOTE: when updating this package, there are two places that sound | |
4 | # tarballs need to be checked | 4 | # tarballs need to be checked | |
5 | 5 | |||
6 | DISTNAME= asterisk-1.8.15.0 | 6 | DISTNAME= asterisk-1.8.15.0 | |
7 | DIST_SUBDIR= ${PKGNAME_NOREV} | 7 | DIST_SUBDIR= ${PKGNAME_NOREV} | |
8 | DISTFILES= ${DEFAULT_DISTFILES} | 8 | DISTFILES= ${DEFAULT_DISTFILES} | |
9 | EXTRACT_ONLY= ${DISTNAME}.tar.gz | 9 | EXTRACT_ONLY= ${DISTNAME}.tar.gz | |
10 | CATEGORIES= comms net audio | 10 | CATEGORIES= comms net audio | |
11 | MASTER_SITES= http://downloads.asterisk.org/pub/telephony/asterisk/ \ | 11 | MASTER_SITES= http://downloads.asterisk.org/pub/telephony/asterisk/ \ | |
12 | http://downloads.asterisk.org/pub/telephony/asterisk/old-releases/ \ | 12 | http://downloads.asterisk.org/pub/telephony/asterisk/old-releases/ \ | |
13 | http://downloads.asterisk.org/pub/telephony/sounds/releases/ | 13 | http://downloads.asterisk.org/pub/telephony/sounds/releases/ | |
14 | 14 | |||
@@ -91,26 +91,34 @@ MAKE_FLAGS+= LDOPTS=${LDFLAGS:M*:Q} | @@ -91,26 +91,34 @@ MAKE_FLAGS+= LDOPTS=${LDFLAGS:M*:Q} | |||
91 | MAKE_FLAGS+= HTTP_DOCSDIR=${PREFIX}/share/httpd/htdocs | 91 | MAKE_FLAGS+= HTTP_DOCSDIR=${PREFIX}/share/httpd/htdocs | |
92 | MAKE_FLAGS+= HTTP_CGIDIR=${PREFIX}/libexec/cgi-bin | 92 | MAKE_FLAGS+= HTTP_CGIDIR=${PREFIX}/libexec/cgi-bin | |
93 | MAKE_FLAGS+= OPTIMIZE=-O3 | 93 | MAKE_FLAGS+= OPTIMIZE=-O3 | |
94 | 94 | |||
95 | .if !empty(MACHINE_PLATFORM:MSunOS-*-i386) | 95 | .if !empty(MACHINE_PLATFORM:MSunOS-*-i386) | |
96 | BUILDLINK_TRANSFORM+= rm:-march=i386 | 96 | BUILDLINK_TRANSFORM+= rm:-march=i386 | |
97 | .endif | 97 | .endif | |
98 | 98 | |||
99 | PLIST_VARS+= kqueue | 99 | PLIST_VARS+= kqueue | |
100 | .if exists(/usr/include/sys/event.h) | 100 | .if exists(/usr/include/sys/event.h) | |
101 | PLIST.kqueue= yes | 101 | PLIST.kqueue= yes | |
102 | .endif | 102 | .endif | |
103 | 103 | |||
104 | PLIST_VARS+= mgcp | |||
105 | # NOSIGPIPE is a temp variable, since PLIST.mgcp MUST remain undefined | |||
106 | # if the grep fails | |||
107 | NOSIGPIPE!= ${GREP} SO_NOSIGPIPE /usr/include/sys/socket.h || echo "" | |||
108 | .if ${NOSIGPIPE} != "" | |||
109 | PLIST.mgcp= yes | |||
110 | .endif | |||
111 | ||||
104 | .include "options.mk" | 112 | .include "options.mk" | |
105 | 113 | |||
106 | # check sounds/Makefile for current version when upgrading package | 114 | # check sounds/Makefile for current version when upgrading package | |
107 | DISTFILES+= asterisk-extra-sounds-en-gsm-1.4.11.tar.gz | 115 | DISTFILES+= asterisk-extra-sounds-en-gsm-1.4.11.tar.gz | |
108 | 116 | |||
109 | # Override default paths in config files | 117 | # Override default paths in config files | |
110 | SUBST_CLASSES+= configs | 118 | SUBST_CLASSES+= configs | |
111 | SUBST_STAGE.configs= pre-configure | 119 | SUBST_STAGE.configs= pre-configure | |
112 | SUBST_FILES.configs= configs/festival.conf.sample | 120 | SUBST_FILES.configs= configs/festival.conf.sample | |
113 | SUBST_FILES.configs+= configs/http.conf.sample | 121 | SUBST_FILES.configs+= configs/http.conf.sample | |
114 | SUBST_FILES.configs+= configs/musiconhold.conf.sample | 122 | SUBST_FILES.configs+= configs/musiconhold.conf.sample | |
115 | SUBST_FILES.configs+= configs/osp.conf.sample | 123 | SUBST_FILES.configs+= configs/osp.conf.sample | |
116 | SUBST_FILES.configs+= configs/phoneprov.conf.sample | 124 | SUBST_FILES.configs+= configs/phoneprov.conf.sample |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.18 2012/07/17 00:29:33 jnemeth Exp $ | 1 | @comment $NetBSD: PLIST,v 1.19 2012/08/19 18:41:10 jnemeth Exp $ | |
2 | include/asterisk.h | 2 | include/asterisk.h | |
3 | include/asterisk/_private.h | 3 | include/asterisk/_private.h | |
4 | include/asterisk/abstract_jb.h | 4 | include/asterisk/abstract_jb.h | |
5 | include/asterisk/acl.h | 5 | include/asterisk/acl.h | |
6 | include/asterisk/adsi.h | 6 | include/asterisk/adsi.h | |
7 | include/asterisk/ael_structs.h | 7 | include/asterisk/ael_structs.h | |
8 | include/asterisk/agi.h | 8 | include/asterisk/agi.h | |
9 | include/asterisk/alaw.h | 9 | include/asterisk/alaw.h | |
10 | include/asterisk/aoc.h | 10 | include/asterisk/aoc.h | |
11 | include/asterisk/app.h | 11 | include/asterisk/app.h | |
12 | include/asterisk/ast_expr.h | 12 | include/asterisk/ast_expr.h | |
13 | include/asterisk/ast_version.h | 13 | include/asterisk/ast_version.h | |
14 | include/asterisk/astdb.h | 14 | include/asterisk/astdb.h | |
@@ -213,26 +213,27 @@ lib/asterisk/modules/cdr_manager.so | @@ -213,26 +213,27 @@ lib/asterisk/modules/cdr_manager.so | |||
213 | ${PLIST.unixodbc}lib/asterisk/modules/cdr_odbc.so | 213 | ${PLIST.unixodbc}lib/asterisk/modules/cdr_odbc.so | |
214 | lib/asterisk/modules/cdr_sqlite3_custom.so | 214 | lib/asterisk/modules/cdr_sqlite3_custom.so | |
215 | lib/asterisk/modules/cdr_syslog.so | 215 | lib/asterisk/modules/cdr_syslog.so | |
216 | lib/asterisk/modules/cel_custom.so | 216 | lib/asterisk/modules/cel_custom.so | |
217 | lib/asterisk/modules/cel_manager.so | 217 | lib/asterisk/modules/cel_manager.so | |
218 | ${PLIST.unixodbc}lib/asterisk/modules/cel_odbc.so | 218 | ${PLIST.unixodbc}lib/asterisk/modules/cel_odbc.so | |
219 | lib/asterisk/modules/cel_sqlite3_custom.so | 219 | lib/asterisk/modules/cel_sqlite3_custom.so | |
220 | lib/asterisk/modules/chan_agent.so | 220 | lib/asterisk/modules/chan_agent.so | |
221 | lib/asterisk/modules/chan_bridge.so | 221 | lib/asterisk/modules/chan_bridge.so | |
222 | ${PLIST.jabber}lib/asterisk/modules/chan_gtalk.so | 222 | ${PLIST.jabber}lib/asterisk/modules/chan_gtalk.so | |
223 | lib/asterisk/modules/chan_iax2.so | 223 | lib/asterisk/modules/chan_iax2.so | |
224 | ${PLIST.jabber}lib/asterisk/modules/chan_jingle.so | 224 | ${PLIST.jabber}lib/asterisk/modules/chan_jingle.so | |
225 | lib/asterisk/modules/chan_local.so | 225 | lib/asterisk/modules/chan_local.so | |
226 | ${PLIST.mgcp}lib/asterisk/modules/chan_mgcp.so | |||
226 | lib/asterisk/modules/chan_multicast_rtp.so | 227 | lib/asterisk/modules/chan_multicast_rtp.so | |
227 | lib/asterisk/modules/chan_oss.so | 228 | lib/asterisk/modules/chan_oss.so | |
228 | lib/asterisk/modules/chan_sip.so | 229 | lib/asterisk/modules/chan_sip.so | |
229 | lib/asterisk/modules/chan_skinny.so | 230 | lib/asterisk/modules/chan_skinny.so | |
230 | lib/asterisk/modules/chan_unistim.so | 231 | lib/asterisk/modules/chan_unistim.so | |
231 | lib/asterisk/modules/codec_a_mu.so | 232 | lib/asterisk/modules/codec_a_mu.so | |
232 | lib/asterisk/modules/codec_adpcm.so | 233 | lib/asterisk/modules/codec_adpcm.so | |
233 | lib/asterisk/modules/codec_alaw.so | 234 | lib/asterisk/modules/codec_alaw.so | |
234 | lib/asterisk/modules/codec_g722.so | 235 | lib/asterisk/modules/codec_g722.so | |
235 | lib/asterisk/modules/codec_g726.so | 236 | lib/asterisk/modules/codec_g726.so | |
236 | lib/asterisk/modules/codec_gsm.so | 237 | lib/asterisk/modules/codec_gsm.so | |
237 | lib/asterisk/modules/codec_ilbc.so | 238 | lib/asterisk/modules/codec_ilbc.so | |
238 | lib/asterisk/modules/codec_lpc10.so | 239 | lib/asterisk/modules/codec_lpc10.so |