Sun Jan 3 09:05:26 2021 UTC ()
Disable -march=native default.


(jnemeth)
diff -r1.50 -r1.51 pkgsrc/comms/asterisk14/Makefile
diff -r1.3 -r1.4 pkgsrc/comms/asterisk14/options.mk

cvs diff -r1.50 -r1.51 pkgsrc/comms/asterisk14/Attic/Makefile (switch to unified diff)

--- pkgsrc/comms/asterisk14/Attic/Makefile 2020/11/05 09:07:38 1.50
+++ pkgsrc/comms/asterisk14/Attic/Makefile 2021/01/03 09:05:26 1.51
@@ -1,301 +1,301 @@ @@ -1,301 +1,301 @@
1# $NetBSD: Makefile,v 1.50 2020/11/05 09:07:38 ryoon Exp $ 1# $NetBSD: Makefile,v 1.51 2021/01/03 09:05:26 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; look in ${WRKSRC}/sounds/Makefile 4# tarballs need to be checked; look in ${WRKSRC}/sounds/Makefile
5# to find out the current sound file versions 5# to find out the current sound file versions
6 6
7DISTNAME= asterisk-14.7.8 7DISTNAME= asterisk-14.7.8
8PKGREVISION= 6 8PKGREVISION= 7
9CATEGORIES= comms net audio 9CATEGORIES= comms net audio
10MASTER_SITES= http://downloads.asterisk.org/pub/telephony/asterisk/ 10MASTER_SITES= http://downloads.asterisk.org/pub/telephony/asterisk/
11MASTER_SITES+= http://downloads.asterisk.org/pub/telephony/asterisk/old-releases/ 11MASTER_SITES+= http://downloads.asterisk.org/pub/telephony/asterisk/old-releases/
12MASTER_SITES+= http://downloads.asterisk.org/pub/telephony/sounds/releases/ 12MASTER_SITES+= http://downloads.asterisk.org/pub/telephony/sounds/releases/
13DIST_SUBDIR= ${PKGNAME_NOREV} 13DIST_SUBDIR= ${PKGNAME_NOREV}
14DISTFILES= ${DEFAULT_DISTFILES} 14DISTFILES= ${DEFAULT_DISTFILES}
15 15
16COMMENT= The Asterisk Software PBX 16COMMENT= The Asterisk Software PBX
17LICENSE= gnu-gpl-v2 17LICENSE= gnu-gpl-v2
18 18
19EXTRACT_ONLY= ${DISTNAME}.tar.gz 19EXTRACT_ONLY= ${DISTNAME}.tar.gz
20OWNER= jnemeth@NetBSD.org 20OWNER= jnemeth@NetBSD.org
21HOMEPAGE= https://www.asterisk.org/ 21HOMEPAGE= https://www.asterisk.org/
22 22
23MAKE_JOBS_SAFE= no 23MAKE_JOBS_SAFE= no
24 24
25# known to have issues on i386, block the package until the bug is fixed 25# known to have issues on i386, block the package until the bug is fixed
26BROKEN_ON_PLATFORM= NetBSD-*-i386 26BROKEN_ON_PLATFORM= NetBSD-*-i386
27 27
28CONFLICTS+= asterisk-sounds-extra-[0-9]* 28CONFLICTS+= asterisk-sounds-extra-[0-9]*
29 29
30.include "../../mk/bsd.prefs.mk" 30.include "../../mk/bsd.prefs.mk"
31 31
32USE_TOOLS+= bison gmake perl:run pkg-config tar bash:run 32USE_TOOLS+= bison gmake perl:run pkg-config tar bash:run
33USE_LANGUAGES= c c++ 33USE_LANGUAGES= c c++
34REPLACE_BASH+= contrib/scripts/astversion 34REPLACE_BASH+= contrib/scripts/astversion
35REPLACE_BASH+= contrib/scripts/ast_coredumper 35REPLACE_BASH+= contrib/scripts/ast_coredumper
36REPLACE_BASH+= contrib/scripts/ast_logescalator 36REPLACE_BASH+= contrib/scripts/ast_logescalator
37REPLACE_BASH+= contrib/scripts/ast_loggrabber 37REPLACE_BASH+= contrib/scripts/ast_loggrabber
38REPLACE_PERL+= agi/DialAnMp3.agi agi/agi-test.agi 38REPLACE_PERL+= agi/DialAnMp3.agi agi/agi-test.agi
39REPLACE_PERL+= agi/fastagi-test agi/jukebox.agi agi/numeralize 39REPLACE_PERL+= agi/fastagi-test agi/jukebox.agi agi/numeralize
40REPLACE_PERL+= contrib/scripts/vmail.cgi 40REPLACE_PERL+= contrib/scripts/vmail.cgi
41 41
42CHECK_INTERPRETER_SKIP+= libdata/asterisk/scripts/refcounter.py 42CHECK_INTERPRETER_SKIP+= libdata/asterisk/scripts/refcounter.py
43 43
44GNU_CONFIGURE= yes 44GNU_CONFIGURE= yes
45CONFIGURE_ARGS+= --datarootdir=${PREFIX}/libdata 45CONFIGURE_ARGS+= --datarootdir=${PREFIX}/libdata
46CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} 46CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
47CONFIGURE_ARGS+= --without-gtk2 47CONFIGURE_ARGS+= --without-gtk2
48# XXX remove when lang/lua gets builtin.mk 48# XXX remove when lang/lua gets builtin.mk
49CONFIGURE_ARGS+= --without-lua 49CONFIGURE_ARGS+= --without-lua
50 50
51.if (${OPSYS} == "NetBSD" && \ 51.if (${OPSYS} == "NetBSD" && \
52 (empty(OS_VERSION:M6.99.[4-9]?) && empty(OS_VERSION:M[7-9].*))) 52 (empty(OS_VERSION:M6.99.[4-9]?) && empty(OS_VERSION:M[7-9].*)))
53CONFIGURE_ARGS+= --without-srtp 53CONFIGURE_ARGS+= --without-srtp
54.else 54.else
55CONFIGURE_ARGS+= --with-srtp 55CONFIGURE_ARGS+= --with-srtp
56PLIST.srtp= YES 56PLIST.srtp= YES
57.include "../../comms/srtp/buildlink3.mk" 57.include "../../comms/srtp/buildlink3.mk"
58.endif 58.endif
59 59
60INSTALL_TARGET= install samples 60INSTALL_TARGET= install samples
61INSTALLATION_DIRS+= lib/pkgconfig share/doc/${PKGBASE} 61INSTALLATION_DIRS+= lib/pkgconfig share/doc/${PKGBASE}
62INSTALLATION_DIRS+= share/examples/asterisk share/examples/rc.d 62INSTALLATION_DIRS+= share/examples/asterisk share/examples/rc.d
63INSTALLATION_DIRS+= ${ASTDATADIR}/sounds/en ${ASTDATADIR}/moh 63INSTALLATION_DIRS+= ${ASTDATADIR}/sounds/en ${ASTDATADIR}/moh
64 64
65BUILD_DEFS+= VARBASE 65BUILD_DEFS+= VARBASE
66 66
67ASTERISK_USER?= asterisk 67ASTERISK_USER?= asterisk
68ASTERISK_GROUP?= asterisk 68ASTERISK_GROUP?= asterisk
69PKG_GROUPS= ${ASTERISK_GROUP} 69PKG_GROUPS= ${ASTERISK_GROUP}
70PKG_USERS= ${ASTERISK_USER}:${ASTERISK_GROUP} 70PKG_USERS= ${ASTERISK_USER}:${ASTERISK_GROUP}
71PKG_GECOS.${ASTERISK_USER}= Asterisk PBX 71PKG_GECOS.${ASTERISK_USER}= Asterisk PBX
72PKG_GROUPS_VARS= ASTERISK_GROUP 72PKG_GROUPS_VARS= ASTERISK_GROUP
73PKG_USERS_VARS= ASTERISK_USER 73PKG_USERS_VARS= ASTERISK_USER
74FILES_SUBST+= ASTERISK_USER=${ASTERISK_USER} 74FILES_SUBST+= ASTERISK_USER=${ASTERISK_USER}
75FILES_SUBST+= ASTERISK_GROUP=${ASTERISK_GROUP} 75FILES_SUBST+= ASTERISK_GROUP=${ASTERISK_GROUP}
76MESSAGE_SUBST+= ASTERISK_USER=${ASTERISK_USER} 76MESSAGE_SUBST+= ASTERISK_USER=${ASTERISK_USER}
77MESSAGE_SUBST+= ASTERISK_GROUP=${ASTERISK_GROUP} 77MESSAGE_SUBST+= ASTERISK_GROUP=${ASTERISK_GROUP}
78 78
79# Various path settings for Asterisk 79# Various path settings for Asterisk
80PKG_SYSCONFSUBDIR= asterisk 80PKG_SYSCONFSUBDIR= asterisk
81PKG_SYSCONFDIR_PERMS= ${ASTERISK_USER} ${ASTERISK_GROUP} 0755 81PKG_SYSCONFDIR_PERMS= ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
82ASTETCDIR= ${PKG_SYSCONFDIR} 82ASTETCDIR= ${PKG_SYSCONFDIR}
83ASTEXAMPLEDIR= ${PREFIX}/share/examples/asterisk 83ASTEXAMPLEDIR= ${PREFIX}/share/examples/asterisk
84ASTDBDIR= ${VARBASE}/db/asterisk 84ASTDBDIR= ${VARBASE}/db/asterisk
85ASTSPOOLDIR= ${VARBASE}/spool/asterisk 85ASTSPOOLDIR= ${VARBASE}/spool/asterisk
86ASTLOGDIR= ${VARBASE}/log/asterisk 86ASTLOGDIR= ${VARBASE}/log/asterisk
87MESSAGE_SUBST+= ASTDBDIR=${ASTDBDIR} 87MESSAGE_SUBST+= ASTDBDIR=${ASTDBDIR}
88MESSAGE_SUBST+= ASTSPOOLDIR=${ASTSPOOLDIR} 88MESSAGE_SUBST+= ASTSPOOLDIR=${ASTSPOOLDIR}
89MESSAGE_SUBST+= ASTLOGDIR=${ASTLOGDIR} 89MESSAGE_SUBST+= ASTLOGDIR=${ASTLOGDIR}
90ASTVARRUNDIR= ${VARBASE}/run/asterisk 90ASTVARRUNDIR= ${VARBASE}/run/asterisk
91FILES_SUBST+= ASTVARRUNDIR=${ASTVARRUNDIR} 91FILES_SUBST+= ASTVARRUNDIR=${ASTVARRUNDIR}
92ASTDATADIR= ${PREFIX}/libdata/asterisk 92ASTDATADIR= ${PREFIX}/libdata/asterisk
93MAKE_FLAGS+= ASTLIBDIR=${PREFIX}/lib/asterisk 93MAKE_FLAGS+= ASTLIBDIR=${PREFIX}/lib/asterisk
94MAKE_FLAGS+= ASTVARLIBDIR=${ASTDATADIR} 94MAKE_FLAGS+= ASTVARLIBDIR=${ASTDATADIR}
95MAKE_FLAGS+= ASTKEYDIR=${ASTDATADIR} 95MAKE_FLAGS+= ASTKEYDIR=${ASTDATADIR}
96MAKE_FLAGS+= ASTDATADIR=${ASTDATADIR} 96MAKE_FLAGS+= ASTDATADIR=${ASTDATADIR}
97MAKE_FLAGS+= ASTSPOOLDIR=${ASTSPOOLDIR} 97MAKE_FLAGS+= ASTSPOOLDIR=${ASTSPOOLDIR}
98MAKE_FLAGS+= ASTLOGDIR=${ASTLOGDIR} 98MAKE_FLAGS+= ASTLOGDIR=${ASTLOGDIR}
99MAKE_FLAGS+= ASTHEADERDIR=${PREFIX}/include/asterisk 99MAKE_FLAGS+= ASTHEADERDIR=${PREFIX}/include/asterisk
100MAKE_FLAGS+= ASTCONFPATH=${ASTETCDIR}/asterisk.conf 100MAKE_FLAGS+= ASTCONFPATH=${ASTETCDIR}/asterisk.conf
101MAKE_FLAGS+= ASTBINDIR=${PREFIX}/bin 101MAKE_FLAGS+= ASTBINDIR=${PREFIX}/bin
102MAKE_FLAGS+= ASTSBINDIR=${PREFIX}/sbin 102MAKE_FLAGS+= ASTSBINDIR=${PREFIX}/sbin
103MAKE_FLAGS+= ASTVARRUNDIR=${ASTVARRUNDIR} 103MAKE_FLAGS+= ASTVARRUNDIR=${ASTVARRUNDIR}
104MAKE_FLAGS+= ASTMANDIR=${PREFIX}/${PKGMANDIR} 104MAKE_FLAGS+= ASTMANDIR=${PREFIX}/${PKGMANDIR}
105MAKE_FLAGS+= ASTETCDIR=${ASTETCDIR} 105MAKE_FLAGS+= ASTETCDIR=${ASTETCDIR}
106MAKE_FLAGS+= ASTDBDIR=${ASTDBDIR} 106MAKE_FLAGS+= ASTDBDIR=${ASTDBDIR}
107MAKE_FLAGS+= AGI_DIR=${PREFIX}/libexec/agi-bin 107MAKE_FLAGS+= AGI_DIR=${PREFIX}/libexec/agi-bin
108MAKE_FLAGS+= ASTEXAMPLEDIR=${ASTEXAMPLEDIR} 108MAKE_FLAGS+= ASTEXAMPLEDIR=${ASTEXAMPLEDIR}
109MAKE_FLAGS+= WRKSRC=${WRKSRC} 109MAKE_FLAGS+= WRKSRC=${WRKSRC}
110MAKE_FLAGS+= LDOPTS=${LDFLAGS:M*:Q} 110MAKE_FLAGS+= LDOPTS=${LDFLAGS:M*:Q}
111MAKE_FLAGS+= HTTP_DOCSDIR=${PREFIX}/share/httpd/htdocs 111MAKE_FLAGS+= HTTP_DOCSDIR=${PREFIX}/share/httpd/htdocs
112MAKE_FLAGS+= HTTP_CGIDIR=${PREFIX}/libexec/cgi-bin 112MAKE_FLAGS+= HTTP_CGIDIR=${PREFIX}/libexec/cgi-bin
113MAKE_FLAGS+= OPTIMIZE=-O3 113MAKE_FLAGS+= OPTIMIZE=-O3
114 114
115.if !empty(MACHINE_PLATFORM:MSunOS-*-i386) 115.if !empty(MACHINE_PLATFORM:MSunOS-*-i386)
116BUILDLINK_TRANSFORM+= rm:-march=i386 116BUILDLINK_TRANSFORM+= rm:-march=i386
117.endif 117.endif
118 118
119PLIST_VARS+= kqueue 119PLIST_VARS+= kqueue
120.if exists(/usr/include/sys/event.h) 120.if exists(/usr/include/sys/event.h)
121PLIST.kqueue= yes 121PLIST.kqueue= yes
122.endif 122.endif
123 123
124PLIST_VARS+= mgcp 124PLIST_VARS+= mgcp
125# NOSIGPIPE is a temp variable, since PLIST.mgcp MUST remain undefined 125# NOSIGPIPE is a temp variable, since PLIST.mgcp MUST remain undefined
126# if the grep fails 126# if the grep fails
127.for dir in ${COMPILER_INCLUDE_DIRS} 127.for dir in ${COMPILER_INCLUDE_DIRS}
128. if (exists(${dir}/sys/socket.h)) 128. if (exists(${dir}/sys/socket.h))
129NOSIGPIPE!= ${GREP} SO_NOSIGPIPE ${dir}/sys/socket.h || echo "" 129NOSIGPIPE!= ${GREP} SO_NOSIGPIPE ${dir}/sys/socket.h || echo ""
130. if ${NOSIGPIPE} != "" 130. if ${NOSIGPIPE} != ""
131PLIST.mgcp= yes 131PLIST.mgcp= yes
132. endif 132. endif
133. endif 133. endif
134.endfor 134.endfor
135 135
136.if ${OPSYS} == "SunOS" 136.if ${OPSYS} == "SunOS"
137PLIST.mgcp= yes 137PLIST.mgcp= yes
138.endif 138.endif
139 139
140PLIST_VARS+= unbound 140PLIST_VARS+= unbound
141.if exists(/usr/include/unbound.h) 141.if exists(/usr/include/unbound.h)
142PLIST.unbound= yes 142PLIST.unbound= yes
143.endif 143.endif
144 144
145.include "options.mk" 145.include "options.mk"
146 146
147# check sounds/Makefile for current version when upgrading package 147# check sounds/Makefile for current version when upgrading package
148DISTFILES+= asterisk-extra-sounds-en-gsm-1.5.1.tar.gz 148DISTFILES+= asterisk-extra-sounds-en-gsm-1.5.1.tar.gz
149 149
150# Override default paths in config files 150# Override default paths in config files
151SUBST_CLASSES+= configs 151SUBST_CLASSES+= configs
152SUBST_STAGE.configs= pre-configure 152SUBST_STAGE.configs= pre-configure
153SUBST_FILES.configs= configs/samples/cli_aliases.conf.sample 153SUBST_FILES.configs= configs/samples/cli_aliases.conf.sample
154SUBST_FILES.configs+= configs/samples/festival.conf.sample 154SUBST_FILES.configs+= configs/samples/festival.conf.sample
155SUBST_FILES.configs+= configs/samples/http.conf.sample 155SUBST_FILES.configs+= configs/samples/http.conf.sample
156SUBST_FILES.configs+= configs/samples/iax.conf.sample 156SUBST_FILES.configs+= configs/samples/iax.conf.sample
157SUBST_FILES.configs+= configs/samples/musiconhold.conf.sample 157SUBST_FILES.configs+= configs/samples/musiconhold.conf.sample
158SUBST_FILES.configs+= configs/samples/osp.conf.sample 158SUBST_FILES.configs+= configs/samples/osp.conf.sample
159SUBST_FILES.configs+= configs/samples/phoneprov.conf.sample 159SUBST_FILES.configs+= configs/samples/phoneprov.conf.sample
160SUBST_FILES.configs+= configs/samples/res_config_sqlite.conf.sample 160SUBST_FILES.configs+= configs/samples/res_config_sqlite.conf.sample
161SUBST_FILES.configs+= configs/samples/sla.conf.sample 161SUBST_FILES.configs+= configs/samples/sla.conf.sample
162SUBST_SED.configs+= -e 's|doc/|${PREFIX}/share/doc/${PKGBASE}/|' 162SUBST_SED.configs+= -e 's|doc/|${PREFIX}/share/doc/${PKGBASE}/|'
163SUBST_SED.configs+= -e 's|/etc/asterisk|${ASTETCDIR}|' 163SUBST_SED.configs+= -e 's|/etc/asterisk|${ASTETCDIR}|'
164SUBST_SED.configs+= -e 's|/var/lib/asterisk|${ASTVARLIBDIR}|' 164SUBST_SED.configs+= -e 's|/var/lib/asterisk|${ASTVARLIBDIR}|'
165SUBST_SED.configs+= -e "s|/usr/local/man|${ASTMANDIR}|" 165SUBST_SED.configs+= -e "s|/usr/local/man|${ASTMANDIR}|"
166SUBST_SED.configs+= -e "s|/usr/local|${PREFIX}|" 166SUBST_SED.configs+= -e "s|/usr/local|${PREFIX}|"
167SUBST_SED.configs+= -e "s|/var|${VARBASE}|" 167SUBST_SED.configs+= -e "s|/var|${VARBASE}|"
168 168
169# XXX gross hack, remove when item is fixed 169# XXX gross hack, remove when item is fixed
170SUBST_CLASSES.NetBSD+= autoconfig 170SUBST_CLASSES.NetBSD+= autoconfig
171SUBST_STAGE.autoconfig= post-configure 171SUBST_STAGE.autoconfig= post-configure
172SUBST_FILES.autoconfig= include/asterisk/autoconfig.h 172SUBST_FILES.autoconfig= include/asterisk/autoconfig.h
173SUBST_SED.autoconfig= -e "s|^\#define HAVE_GCC_ATOMICS 1|\#undef HAVE_GCC_ATOMICS|" 173SUBST_SED.autoconfig= -e "s|^\#define HAVE_GCC_ATOMICS 1|\#undef HAVE_GCC_ATOMICS|"
174SUBST_SED.autoconfig+= -e "s|^\#define HAVE_GETHOSTBYNAME_R_6 1|\#undef HAVE_GETHOSTBYNAME_R_6|" 174SUBST_SED.autoconfig+= -e "s|^\#define HAVE_GETHOSTBYNAME_R_6 1|\#undef HAVE_GETHOSTBYNAME_R_6|"
175 175
176# XXX gross hack, IP_PKTINFO in NetBSD isn't compatible with anything else 176# XXX gross hack, IP_PKTINFO in NetBSD isn't compatible with anything else
177SUBST_CLASSES.NetBSD+= pktinfo 177SUBST_CLASSES.NetBSD+= pktinfo
178SUBST_STAGE.pktinfo= post-configure 178SUBST_STAGE.pktinfo= post-configure
179SUBST_FILES.pktinfo= include/asterisk/autoconfig.h 179SUBST_FILES.pktinfo= include/asterisk/autoconfig.h
180SUBST_SED.pktinfo= -e "s|^\#define HAVE_PKTINFO 1|\#undef HAVE_PKTINFO|" 180SUBST_SED.pktinfo= -e "s|^\#define HAVE_PKTINFO 1|\#undef HAVE_PKTINFO|"
181 181
182# XXX gross hack, gethostbyname_r on NETBSD is for internal use only 182# XXX gross hack, gethostbyname_r on NETBSD is for internal use only
183SUBST_CLASSES.NetBSD+= gethostbyname_r 183SUBST_CLASSES.NetBSD+= gethostbyname_r
184SUBST_STAGE.gethostbyname_r= post-configure 184SUBST_STAGE.gethostbyname_r= post-configure
185SUBST_FILES.gethostbyname_r= include/asterisk/autoconfig.h 185SUBST_FILES.gethostbyname_r= include/asterisk/autoconfig.h
186SUBST_SED.gethostbyname_r= -e "s|^\#define HAVE_GETHOSTBYNAME_R_5 1|\#undef HAVE_GETHOSTBYNAME_R_5|" 186SUBST_SED.gethostbyname_r= -e "s|^\#define HAVE_GETHOSTBYNAME_R_5 1|\#undef HAVE_GETHOSTBYNAME_R_5|"
187SUBST_SED.gethostbyname_r+= -e "s|^\#define HAVE_GETHOSTBYNAME_R_6 1|\#undef HAVE_GETHOSTBYNAME_R_6|" 187SUBST_SED.gethostbyname_r+= -e "s|^\#define HAVE_GETHOSTBYNAME_R_6 1|\#undef HAVE_GETHOSTBYNAME_R_6|"
188 188
189RCD_SCRIPTS= asterisk 189RCD_SCRIPTS= asterisk
190OWN_DIRS_PERMS+= ${ASTDBDIR} ${ASTERISK_USER} ${ASTERISK_GROUP} 0755 190OWN_DIRS_PERMS+= ${ASTDBDIR} ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
191OWN_DIRS_PERMS+= ${ASTSPOOLDIR} ${ASTERISK_USER} ${ASTERISK_GROUP} 0755 191OWN_DIRS_PERMS+= ${ASTSPOOLDIR} ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
192OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/dictate ${ASTERISK_USER} ${ASTERISK_GROUP} 0755 192OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/dictate ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
193OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/meetme ${ASTERISK_USER} ${ASTERISK_GROUP} 0755 193OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/meetme ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
194OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/monitor ${ASTERISK_USER} ${ASTERISK_GROUP} 0755 194OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/monitor ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
195OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/outgoing ${ASTERISK_USER} ${ASTERISK_GROUP} 0755 195OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/outgoing ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
196OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/system ${ASTERISK_USER} ${ASTERISK_GROUP} 0755 196OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/system ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
197OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/tmp ${ASTERISK_USER} ${ASTERISK_GROUP} 0755 197OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/tmp ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
198OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/voicemail ${ASTERISK_USER} ${ASTERISK_GROUP} 0755 198OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/voicemail ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
199OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/voicemail/default ${ASTERISK_USER} ${ASTERISK_GROUP} 0755 199OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/voicemail/default ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
200OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/voicemail/default/1234 ${ASTERISK_USER} ${ASTERISK_GROUP} 0755 200OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/voicemail/default/1234 ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
201OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/voicemail/default/1234/INBOX ${ASTERISK_USER} ${ASTERISK_GROUP} 0755 201OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/voicemail/default/1234/INBOX ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
202OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/voicemail/default/1234/en ${ASTERISK_USER} ${ASTERISK_GROUP} 0755 202OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/voicemail/default/1234/en ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
203SPECIAL_PERMS+= ${ASTSPOOLDIR}/voicemail/default/1234/en/busy.gsm ${ASTERISK_USER} ${ASTERISK_GROUP} 0644 203SPECIAL_PERMS+= ${ASTSPOOLDIR}/voicemail/default/1234/en/busy.gsm ${ASTERISK_USER} ${ASTERISK_GROUP} 0644
204SPECIAL_PERMS+= ${ASTSPOOLDIR}/voicemail/default/1234/en/unavail.gsm ${ASTERISK_USER} ${ASTERISK_GROUP} 0644 204SPECIAL_PERMS+= ${ASTSPOOLDIR}/voicemail/default/1234/en/unavail.gsm ${ASTERISK_USER} ${ASTERISK_GROUP} 0644
205OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/voicemail/default/INBOX ${ASTERISK_USER} ${ASTERISK_GROUP} 0755 205OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/voicemail/default/INBOX ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
206OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/voicemail/default/en ${ASTERISK_USER} ${ASTERISK_GROUP} 0755 206OWN_DIRS_PERMS+= ${ASTSPOOLDIR}/voicemail/default/en ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
207OWN_DIRS_PERMS+= ${ASTLOGDIR} ${ASTERISK_USER} ${ASTERISK_GROUP} 0755 207OWN_DIRS_PERMS+= ${ASTLOGDIR} ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
208OWN_DIRS_PERMS+= ${ASTLOGDIR}/cdr-csv ${ASTERISK_USER} ${ASTERISK_GROUP} 0755 208OWN_DIRS_PERMS+= ${ASTLOGDIR}/cdr-csv ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
209OWN_DIRS_PERMS+= ${ASTLOGDIR}/cdr-custom ${ASTERISK_USER} ${ASTERISK_GROUP} 0755 209OWN_DIRS_PERMS+= ${ASTLOGDIR}/cdr-custom ${ASTERISK_USER} ${ASTERISK_GROUP} 0755
210 210
211CONF_FILES_PERMS= # empty 211CONF_FILES_PERMS= # empty
212.for f in asterisk.conf extensions.conf 212.for f in asterisk.conf extensions.conf
213CONF_FILES_PERMS+= ${ASTEXAMPLEDIR}/${f:Q} ${PKG_SYSCONFDIR}/${f:Q} ${ASTERISK_USER} ${ASTERISK_GROUP} 0644 213CONF_FILES_PERMS+= ${ASTEXAMPLEDIR}/${f:Q} ${PKG_SYSCONFDIR}/${f:Q} ${ASTERISK_USER} ${ASTERISK_GROUP} 0644
214.endfor 214.endfor
215 215
216.if !empty(PKG_OPTIONS:Masterisk-config) 216.if !empty(PKG_OPTIONS:Masterisk-config)
217# if we put all the files in $CONF_FILES, the message is _way_ too long. 217# if we put all the files in $CONF_FILES, the message is _way_ too long.
218. for f in acl.conf adsi.conf agents.conf alarmreceiver.conf alsa.conf \ 218. for f in acl.conf adsi.conf agents.conf alarmreceiver.conf alsa.conf \
219 amd.conf app_mysql.conf app_skel.conf ari.conf \ 219 amd.conf app_mysql.conf app_skel.conf ari.conf \
220 ast_debug_tools.conf asterisk.adsi calendar.conf ccss.conf \ 220 ast_debug_tools.conf asterisk.adsi calendar.conf ccss.conf \
221 cdr.conf cdr_adaptive_odbc.conf cdr_custom.conf \ 221 cdr.conf cdr_adaptive_odbc.conf cdr_custom.conf \
222 cdr_manager.conf cdr_mysql.conf cdr_odbc.conf cdr_pgsql.conf \ 222 cdr_manager.conf cdr_mysql.conf cdr_odbc.conf cdr_pgsql.conf \
223 cdr_sqlite3_custom.conf cdr_syslog.conf cdr_tds.conf cel.conf \ 223 cdr_sqlite3_custom.conf cdr_syslog.conf cdr_tds.conf cel.conf \
224 cel_custom.conf cel_odbc.conf cel_pgsql.conf \ 224 cel_custom.conf cel_odbc.conf cel_pgsql.conf \
225 cel_sqlite3_custom.conf cel_tds.conf chan_dahdi.conf \ 225 cel_sqlite3_custom.conf cel_tds.conf chan_dahdi.conf \
226 chan_mobile.conf cli.conf cli_aliases.conf cli_permissions.conf \ 226 chan_mobile.conf cli.conf cli_aliases.conf cli_permissions.conf \
227 codecs.conf confbridge.conf console.conf dbsep.conf dnsmgr.conf \ 227 codecs.conf confbridge.conf console.conf dbsep.conf dnsmgr.conf \
228 dsp.conf dundi.conf enum.conf extconfig.conf extensions.ael \ 228 dsp.conf dundi.conf enum.conf extconfig.conf extensions.ael \
229 extensions.conf extensions.lua extensions_minivm.conf \ 229 extensions.conf extensions.lua extensions_minivm.conf \
230 features.conf festival.conf followme.conf func_odbc.conf \ 230 features.conf festival.conf followme.conf func_odbc.conf \
231 hep.conf http.conf iax.conf iaxprov.conf indications.conf \ 231 hep.conf http.conf iax.conf iaxprov.conf indications.conf \
232 logger.conf manager.conf meetme.conf mgcp.conf minivm.conf \ 232 logger.conf manager.conf meetme.conf mgcp.conf minivm.conf \
233 misdn.conf modules.conf motif.conf musiconhold.conf muted.conf \ 233 misdn.conf modules.conf motif.conf musiconhold.conf muted.conf \
234 ooh323.conf osp.conf oss.conf phone.conf phoneprov.conf \ 234 ooh323.conf osp.conf oss.conf phone.conf phoneprov.conf \
235 pjproject.conf pjsip.conf pjsip_notify.conf pjsip_wizard.conf \ 235 pjproject.conf pjsip.conf pjsip_notify.conf pjsip_wizard.conf \
236 queuerules.conf queues.conf res_config_mysql.conf \ 236 queuerules.conf queues.conf res_config_mysql.conf \
237 res_config_sqlite.conf res_config_sqlite3.conf \ 237 res_config_sqlite.conf res_config_sqlite3.conf \
238 res_corosync.conf res_curl.conf res_fax.conf res_ldap.conf \ 238 res_corosync.conf res_curl.conf res_fax.conf res_ldap.conf \
239 res_odbc.conf res_parking.conf res_pgsql.conf res_pktccops.conf \ 239 res_odbc.conf res_parking.conf res_pgsql.conf res_pktccops.conf \
240 res_snmp.conf res_stun_monitor.conf resolver_unbound.conf \ 240 res_snmp.conf res_stun_monitor.conf resolver_unbound.conf \
241 rtp.conf say.conf sip.conf sip_notify.conf skinny.conf sla.conf \ 241 rtp.conf say.conf sip.conf sip_notify.conf skinny.conf sla.conf \
242 smdi.conf sorcery.conf ss7.timers stasis.conf statsd.conf \ 242 smdi.conf sorcery.conf ss7.timers stasis.conf statsd.conf \
243 telcordia-1.adsi udptl.conf unistim.conf users.conf \ 243 telcordia-1.adsi udptl.conf unistim.conf users.conf \
244 voicemail.conf vpb.conf xmpp.conf 244 voicemail.conf vpb.conf xmpp.conf
245CONF_FILES_PERMS+= ${ASTEXAMPLEDIR}/${f:Q} ${PKG_SYSCONFDIR}/${f:Q} ${ASTERISK_USER} ${ASTERISK_GROUP} 0644 245CONF_FILES_PERMS+= ${ASTEXAMPLEDIR}/${f:Q} ${PKG_SYSCONFDIR}/${f:Q} ${ASTERISK_USER} ${ASTERISK_GROUP} 0644
246. endfor 246. endfor
247.endif 247.endif
248 248
249PTHREAD_OPTS+= require native 249PTHREAD_OPTS+= require native
250 250
251.if (${OPSYS} == "Darwin" && exists(/usr/include/sys/poll.h)) 251.if (${OPSYS} == "Darwin" && exists(/usr/include/sys/poll.h))
252post-patch: 252post-patch:
253 ${ECHO} "#include <sys/poll.h>" > ${WRKSRC}/include/asterisk/poll-compat.h 253 ${ECHO} "#include <sys/poll.h>" > ${WRKSRC}/include/asterisk/poll-compat.h
254.endif 254.endif
255 255
256post-install: 256post-install:
257# check sounds directory for current versions when upgrading package 257# check sounds directory for current versions when upgrading package
258 ${TAR} xzf ${WRKSRC}/sounds/asterisk-core-sounds-en-gsm-1.6.tar.gz -C ${DESTDIR}${ASTDATADIR}/sounds/en 258 ${TAR} xzf ${WRKSRC}/sounds/asterisk-core-sounds-en-gsm-1.6.tar.gz -C ${DESTDIR}${ASTDATADIR}/sounds/en
259 ${TAR} xzf ${WRKSRC}/sounds/asterisk-moh-opsound-wav-2.03.tar.gz -C ${DESTDIR}${ASTDATADIR}/moh 259 ${TAR} xzf ${WRKSRC}/sounds/asterisk-moh-opsound-wav-2.03.tar.gz -C ${DESTDIR}${ASTDATADIR}/moh
260 ${TAR} xzf ${DISTDIR}/${DIST_SUBDIR}/asterisk-extra-sounds-en-gsm-1.5.1.tar.gz -C ${DESTDIR}${ASTDATADIR}/sounds/en 260 ${TAR} xzf ${DISTDIR}/${DIST_SUBDIR}/asterisk-extra-sounds-en-gsm-1.5.1.tar.gz -C ${DESTDIR}${ASTDATADIR}/sounds/en
261 ${INSTALL_DATA} ${WRKSRC}/BUGS ${DESTDIR}${PREFIX}/share/doc/${PKGBASE} 261 ${INSTALL_DATA} ${WRKSRC}/BUGS ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
262 ${INSTALL_DATA} ${WRKSRC}/CHANGES ${DESTDIR}${PREFIX}/share/doc/${PKGBASE} 262 ${INSTALL_DATA} ${WRKSRC}/CHANGES ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
263 ${INSTALL_DATA} ${WRKSRC}/COPYING ${DESTDIR}${PREFIX}/share/doc/${PKGBASE} 263 ${INSTALL_DATA} ${WRKSRC}/COPYING ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
264 ${INSTALL_DATA} ${WRKSRC}/CREDITS ${DESTDIR}${PREFIX}/share/doc/${PKGBASE} 264 ${INSTALL_DATA} ${WRKSRC}/CREDITS ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
265 ${INSTALL_DATA} ${WRKSRC}/ChangeLog ${DESTDIR}${PREFIX}/share/doc/${PKGBASE} 265 ${INSTALL_DATA} ${WRKSRC}/ChangeLog ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
266 ${INSTALL_DATA} ${WRKSRC}/LICENSE ${DESTDIR}${PREFIX}/share/doc/${PKGBASE} 266 ${INSTALL_DATA} ${WRKSRC}/LICENSE ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
267 ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/${PKGBASE} 267 ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
268 ${INSTALL_DATA} ${WRKSRC}/README-SERIOUSLY.bestpractices.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE} 268 ${INSTALL_DATA} ${WRKSRC}/README-SERIOUSLY.bestpractices.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
269 ${INSTALL_DATA} ${WRKSRC}/UPGRADE-1.2.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE} 269 ${INSTALL_DATA} ${WRKSRC}/UPGRADE-1.2.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
270 ${INSTALL_DATA} ${WRKSRC}/UPGRADE-1.4.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE} 270 ${INSTALL_DATA} ${WRKSRC}/UPGRADE-1.4.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
271 ${INSTALL_DATA} ${WRKSRC}/UPGRADE-1.6.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE} 271 ${INSTALL_DATA} ${WRKSRC}/UPGRADE-1.6.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
272 ${INSTALL_DATA} ${WRKSRC}/UPGRADE-1.8.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE} 272 ${INSTALL_DATA} ${WRKSRC}/UPGRADE-1.8.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
273 ${INSTALL_DATA} ${WRKSRC}/UPGRADE-10.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE} 273 ${INSTALL_DATA} ${WRKSRC}/UPGRADE-10.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
274 ${INSTALL_DATA} ${WRKSRC}/UPGRADE-11.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE} 274 ${INSTALL_DATA} ${WRKSRC}/UPGRADE-11.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
275 ${INSTALL_DATA} ${WRKSRC}/UPGRADE-12.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE} 275 ${INSTALL_DATA} ${WRKSRC}/UPGRADE-12.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
276 ${INSTALL_DATA} ${WRKSRC}/UPGRADE.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE} 276 ${INSTALL_DATA} ${WRKSRC}/UPGRADE.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
277 ${INSTALL_DATA} ${WRKSRC}/Zaptel-to-DAHDI.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE} 277 ${INSTALL_DATA} ${WRKSRC}/Zaptel-to-DAHDI.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
278 ${INSTALL_DATA} ${WRKSRC}/doc/Asterisk-14-Reference.pdf ${DESTDIR}${PREFIX}/share/doc/${PKGBASE} 278 ${INSTALL_DATA} ${WRKSRC}/doc/Asterisk-14-Reference.pdf ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
279 ${INSTALL_DATA} ${WRKSRC}/doc/Asterisk-Admin-Guide.pdf ${DESTDIR}${PREFIX}/share/doc/${PKGBASE} 279 ${INSTALL_DATA} ${WRKSRC}/doc/Asterisk-Admin-Guide.pdf ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
280 ${INSTALL_DATA} ${WRKSRC}/doc/IAX2-security.pdf ${DESTDIR}${PREFIX}/share/doc/${PKGBASE} 280 ${INSTALL_DATA} ${WRKSRC}/doc/IAX2-security.pdf ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
281 ${INSTALL_DATA} ${WRKSRC}/doc/IAX2-security.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE} 281 ${INSTALL_DATA} ${WRKSRC}/doc/IAX2-security.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
282 ${INSTALL_DATA} ${WRKSRC}/doc/README.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE} 282 ${INSTALL_DATA} ${WRKSRC}/doc/README.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
283 ${INSTALL_DATA} ${WRKSRC}/doc/api-1.6.2-changes.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE} 283 ${INSTALL_DATA} ${WRKSRC}/doc/api-1.6.2-changes.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
284 cp -r ${WRKSRC}/doc/Asterisk-Admin-Guide ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}/Asterisk-Admin-Guide 284 cp -r ${WRKSRC}/doc/Asterisk-Admin-Guide ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}/Asterisk-Admin-Guide
285 285
286.if ${OPSYS} != "Darwin" && ${PKGSRC_COMPILER:Mclang} 286.if ${OPSYS} != "Darwin" && ${PKGSRC_COMPILER:Mclang}
287.include "../../lang/libBlocksRuntime/buildlink3.mk" 287.include "../../lang/libBlocksRuntime/buildlink3.mk"
288LDFLAGS+= -L${PREFIX}/lib 288LDFLAGS+= -L${PREFIX}/lib
289.endif 289.endif
290 290
291.include "../../databases/sqlite3/buildlink3.mk" 291.include "../../databases/sqlite3/buildlink3.mk"
292.include "../../devel/libuuid/buildlink3.mk" 292.include "../../devel/libuuid/buildlink3.mk"
293.include "../../devel/zlib/buildlink3.mk" 293.include "../../devel/zlib/buildlink3.mk"
294.include "../../textproc/jansson/buildlink3.mk" 294.include "../../textproc/jansson/buildlink3.mk"
295.include "../../security/openssl/buildlink3.mk" 295.include "../../security/openssl/buildlink3.mk"
296.include "../../textproc/libxml2/buildlink3.mk" 296.include "../../textproc/libxml2/buildlink3.mk"
297.include "../../www/curl/buildlink3.mk" 297.include "../../www/curl/buildlink3.mk"
298.include "../../mk/curses.buildlink3.mk" 298.include "../../mk/curses.buildlink3.mk"
299.include "../../mk/pthread.buildlink3.mk" 299.include "../../mk/pthread.buildlink3.mk"
300.include "../../mk/termcap.buildlink3.mk" 300.include "../../mk/termcap.buildlink3.mk"
301.include "../../mk/bsd.pkg.mk" 301.include "../../mk/bsd.pkg.mk"

cvs diff -r1.3 -r1.4 pkgsrc/comms/asterisk14/Attic/options.mk (switch to unified diff)

--- pkgsrc/comms/asterisk14/Attic/options.mk 2019/05/23 19:22:56 1.3
+++ pkgsrc/comms/asterisk14/Attic/options.mk 2021/01/03 09:05:26 1.4
@@ -1,123 +1,124 @@ @@ -1,123 +1,124 @@
1# $NetBSD: options.mk,v 1.3 2019/05/23 19:22:56 rillig Exp $ 1# $NetBSD: options.mk,v 1.4 2021/01/03 09:05:26 jnemeth Exp $
2 2
3PKG_OPTIONS_VAR= PKG_OPTIONS.asterisk 3PKG_OPTIONS_VAR= PKG_OPTIONS.asterisk
4PKG_SUPPORTED_OPTIONS= zaptel x11 unixodbc ilbc webvmail ldap spandsp 4PKG_SUPPORTED_OPTIONS= zaptel x11 unixodbc ilbc webvmail ldap spandsp
5PKG_SUPPORTED_OPTIONS+= jabber speex snmp pgsql asterisk-config 5PKG_SUPPORTED_OPTIONS+= jabber speex snmp pgsql asterisk-config
6PKG_OPTIONS_LEGACY_OPTS+= gtk:x11 6PKG_OPTIONS_LEGACY_OPTS+= gtk:x11
7PKG_SUGGESTED_OPTIONS= ldap jabber speex asterisk-config 7PKG_SUGGESTED_OPTIONS= ldap jabber speex asterisk-config
8 8
9.include "../../mk/bsd.options.mk" 9.include "../../mk/bsd.options.mk"
10 10
11PLIST_VARS+= zaptel x11 unixodbc webvmail ldap spandsp jabber 11PLIST_VARS+= zaptel x11 unixodbc webvmail ldap spandsp jabber
12PLIST_VARS+= speex snmp pgsql srtp 12PLIST_VARS+= speex snmp pgsql srtp
13 13
14# Asterisk now uses DAHDI, not zaptel; not implemented yet... 14# Asterisk now uses DAHDI, not zaptel; not implemented yet...
15#.if !empty(PKG_OPTIONS:Mzaptel) 15#.if !empty(PKG_OPTIONS:Mzaptel)
16## zaptel only supported under NetBSD at the moment 16## zaptel only supported under NetBSD at the moment
17#. include "../../comms/zaptel-netbsd/buildlink3.mk" 17#. include "../../comms/zaptel-netbsd/buildlink3.mk"
18#PLIST.zaptel= yes 18#PLIST.zaptel= yes
19#.else 19#.else
20#MAKE_FLAGS+= WITHOUT_ZAPTEL=1 20#MAKE_FLAGS+= WITHOUT_ZAPTEL=1
21#.endif 21#.endif
22 22
23# gtkconsole depends on GTK 2.x 23# gtkconsole depends on GTK 2.x
24.if !empty(PKG_OPTIONS:Mx11) 24.if !empty(PKG_OPTIONS:Mx11)
25. include "../../x11/gtk2/buildlink3.mk" 25. include "../../x11/gtk2/buildlink3.mk"
26. include "../../devel/SDL/buildlink3.mk" 26. include "../../devel/SDL/buildlink3.mk"
27CONFIGURE_ARGS+= --with-sdl 27CONFIGURE_ARGS+= --with-sdl
28CONFIGURE_ARGS+= --with-gtk2 28CONFIGURE_ARGS+= --with-gtk2
29PLIST.x11= yes 29PLIST.x11= yes
30.else 30.else
31CONFIGURE_ARGS+= --without-sdl 31CONFIGURE_ARGS+= --without-sdl
32CONFIGURE_ARGS+= --without-gtk2 32CONFIGURE_ARGS+= --without-gtk2
33.endif 33.endif
34 34
35.if !empty(PKG_OPTIONS:Munixodbc) 35.if !empty(PKG_OPTIONS:Munixodbc)
36. include "../../databases/unixodbc/buildlink3.mk" 36. include "../../databases/unixodbc/buildlink3.mk"
37. include "../../devel/libltdl/buildlink3.mk" 37. include "../../devel/libltdl/buildlink3.mk"
38CONFIGURE_ARGS+= --with-ltdl 38CONFIGURE_ARGS+= --with-ltdl
39CONFIGURE_ARGS+= --with-unixodbc 39CONFIGURE_ARGS+= --with-unixodbc
40PLIST.unixodbc= yes 40PLIST.unixodbc= yes
41.else 41.else
42CONFIGURE_ARGS+= --without-ltdl 42CONFIGURE_ARGS+= --without-ltdl
43CONFIGURE_ARGS+= --without-unixodbc 43CONFIGURE_ARGS+= --without-unixodbc
44.endif 44.endif
45 45
46.if !empty(PKG_OPTIONS:Mspandsp) 46.if !empty(PKG_OPTIONS:Mspandsp)
47. include "../../comms/spandsp/buildlink3.mk" 47. include "../../comms/spandsp/buildlink3.mk"
48CONFIGURE_ARGS+= --with-spandsp 48CONFIGURE_ARGS+= --with-spandsp
49PLIST.spandsp= yes 49PLIST.spandsp= yes
50.else 50.else
51CONFIGURE_ARGS+= --without-spandsp 51CONFIGURE_ARGS+= --without-spandsp
52.endif 52.endif
53 53
54.if !empty(PKG_OPTIONS:Mjabber) 54.if !empty(PKG_OPTIONS:Mjabber)
55. include "../../textproc/iksemel/buildlink3.mk" 55. include "../../textproc/iksemel/buildlink3.mk"
56CONFIGURE_ARGS+= --with-iksemel=${PREFIX} 56CONFIGURE_ARGS+= --with-iksemel=${PREFIX}
57PLIST.jabber= yes 57PLIST.jabber= yes
58.else 58.else
59CONFIGURE_ARGS+= --without-iksemel 59CONFIGURE_ARGS+= --without-iksemel
60.endif 60.endif
61 61
62MAKE_FLAGS+= GLOBAL_MAKEOPTS=${WRKSRC}/pkgsrc.makeopts 62MAKE_FLAGS+= GLOBAL_MAKEOPTS=${WRKSRC}/pkgsrc.makeopts
63post-configure: 63post-configure:
64.if !empty(PKG_OPTIONS:Mx11) 64.if !empty(PKG_OPTIONS:Mx11)
65 ${ECHO} "MENUSELECT_PBX=-pbx_gtkconsole" >> ${WRKSRC}/pkgsrc.makeopts 65 ${ECHO} "MENUSELECT_PBX=-pbx_gtkconsole" >> ${WRKSRC}/pkgsrc.makeopts
66.endif 66.endif
67.if !empty(PKG_OPTIONS:Munixodbc) 67.if !empty(PKG_OPTIONS:Munixodbc)
68 ${ECHO} "MENUSELECT_OPTS_app_voicemail=ODBC_STORAGE" >> ${WRKSRC}/pkgsrc.makeopts 68 ${ECHO} "MENUSELECT_OPTS_app_voicemail=ODBC_STORAGE" >> ${WRKSRC}/pkgsrc.makeopts
69.endif 69.endif
70.if defined(PLIST.mgcp) 70.if defined(PLIST.mgcp)
71 ${ECHO} "MENUSELECT_RES=-res_pktccops" >> ${WRKSRC}/pkgsrc.makeopts 71 ${ECHO} "MENUSELECT_RES=-res_pktccops" >> ${WRKSRC}/pkgsrc.makeopts
72 ${ECHO} "MENUSELECT_CHANNELS=-chan_mgcp" >> ${WRKSRC}/pkgsrc.makeopts 72 ${ECHO} "MENUSELECT_CHANNELS=-chan_mgcp" >> ${WRKSRC}/pkgsrc.makeopts
73.endif 73.endif
74 ${ECHO} "MENUSELECT_AGIS=agi-test.agi eagi-test eagi-sphinx-test jukebox.agi" >> ${WRKSRC}/pkgsrc.makeopts 74 ${ECHO} "MENUSELECT_AGIS=agi-test.agi eagi-test eagi-sphinx-test jukebox.agi" >> ${WRKSRC}/pkgsrc.makeopts
 75 ${ECHO} "MENUSELECT_CFLAGS=-BUILD_NATIVE" >> ${WRKSRC}/pkgsrc.makeopts
75 # this is a hack to work around a bug in menuselect 76 # this is a hack to work around a bug in menuselect
76 cd ${WRKSRC} && make menuselect.makeopts 77 cd ${WRKSRC} && make menuselect.makeopts
77 78
78.if !empty(PKG_OPTIONS:Mwebvmail) 79.if !empty(PKG_OPTIONS:Mwebvmail)
79DEPENDS+= p5-DBI-[0-9]*:../../databases/p5-DBI 80DEPENDS+= p5-DBI-[0-9]*:../../databases/p5-DBI
80SUBST_CLASSES+= webvmail 81SUBST_CLASSES+= webvmail
81SUBST_STAGE.webvmail= pre-configure 82SUBST_STAGE.webvmail= pre-configure
82SUBST_FILES.webvmail= contrib/scripts/vmail.cgi 83SUBST_FILES.webvmail= contrib/scripts/vmail.cgi
83SUBST_VARS.webvmail= ASTETCDIR 84SUBST_VARS.webvmail= ASTETCDIR
84SUBST_VARS.webvmail+= ASTSPOOLDIR 85SUBST_VARS.webvmail+= ASTSPOOLDIR
85INSTALLATION_DIRS+= ${PREFIX}/libexec/cgi-bin ${PREFIX}/share/httpd/htdocs 86INSTALLATION_DIRS+= ${PREFIX}/libexec/cgi-bin ${PREFIX}/share/httpd/htdocs
86SPECIAL_PERMS+= ${PREFIX}/libexec/cgi-bin/vmail ${ASTERISK_USER} ${ASTERISK_GROUP} 04555 87SPECIAL_PERMS+= ${PREFIX}/libexec/cgi-bin/vmail ${ASTERISK_USER} ${ASTERISK_GROUP} 04555
87INSTALL_TARGET+= webvmail 88INSTALL_TARGET+= webvmail
88PLIST.webvmail= yes 89PLIST.webvmail= yes
89.endif 90.endif
90 91
91.if !empty(PKG_OPTIONS:Mldap) 92.if !empty(PKG_OPTIONS:Mldap)
92.include "../../databases/openldap-client/buildlink3.mk" 93.include "../../databases/openldap-client/buildlink3.mk"
93PLIST.ldap= yes 94PLIST.ldap= yes
94.else 95.else
95CONFIGURE_ARGS+= --without-ldap 96CONFIGURE_ARGS+= --without-ldap
96.endif 97.endif
97 98
98.if !empty(PKG_OPTIONS:Mspeex) 99.if !empty(PKG_OPTIONS:Mspeex)
99.include "../../audio/speex/buildlink3.mk" 100.include "../../audio/speex/buildlink3.mk"
100.include "../../audio/speexdsp/buildlink3.mk" 101.include "../../audio/speexdsp/buildlink3.mk"
101CONFIGURE_ARGS+= --with-speex 102CONFIGURE_ARGS+= --with-speex
102CONFIGURE_ARGS+= --with-speexdsp 103CONFIGURE_ARGS+= --with-speexdsp
103PLIST.speex= yes 104PLIST.speex= yes
104.else 105.else
105CONFIGURE_ARGS+= --without-speex 106CONFIGURE_ARGS+= --without-speex
106CONFIGURE_ARGS+= --without-speexdsp 107CONFIGURE_ARGS+= --without-speexdsp
107.endif 108.endif
108 109
109.if !empty(PKG_OPTIONS:Msnmp) 110.if !empty(PKG_OPTIONS:Msnmp)
110.include "../../net/net-snmp/buildlink3.mk" 111.include "../../net/net-snmp/buildlink3.mk"
111CONFIGURE_ARGS+= --with-netsnmp 112CONFIGURE_ARGS+= --with-netsnmp
112PLIST.snmp= yes 113PLIST.snmp= yes
113.else 114.else
114CONFIGURE_ARGS+= --without-netsnmp 115CONFIGURE_ARGS+= --without-netsnmp
115.endif 116.endif
116 117
117.if !empty(PKG_OPTIONS:Mpgsql) 118.if !empty(PKG_OPTIONS:Mpgsql)
118.include "../../mk/pgsql.buildlink3.mk" 119.include "../../mk/pgsql.buildlink3.mk"
119CONFIGURE_ARGS+= --with-postgres 120CONFIGURE_ARGS+= --with-postgres
120PLIST.pgsql= yes 121PLIST.pgsql= yes
121.else 122.else
122CONFIGURE_ARGS+= --without-postgres 123CONFIGURE_ARGS+= --without-postgres
123.endif 124.endif