aboutsummaryrefslogtreecommitdiffstats
path: root/net/asterisk12
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2006-02-07 06:03:50 +0800
committersobomax <sobomax@FreeBSD.org>2006-02-07 06:03:50 +0800
commit164721003e195209c037ba9cab141c932b45620f (patch)
tree71e2c60219ab373464ce161c7cc1e86a33d41fde /net/asterisk12
parentc70732e8163b07d42d957173796ac88bf2476703 (diff)
downloadfreebsd-ports-gnome-164721003e195209c037ba9cab141c932b45620f.tar.gz
freebsd-ports-gnome-164721003e195209c037ba9cab141c932b45620f.tar.zst
freebsd-ports-gnome-164721003e195209c037ba9cab141c932b45620f.zip
Fix PLIST on 4.x (one of the modules can not be built due to absend va_copy()
function). Submitted by: Dan Lukes <dan@obluda.cz>
Diffstat (limited to 'net/asterisk12')
-rw-r--r--net/asterisk12/Makefile6
-rw-r--r--net/asterisk12/pkg-plist2
2 files changed, 7 insertions, 1 deletions
diff --git a/net/asterisk12/Makefile b/net/asterisk12/Makefile
index 16490ad85220..3d506227b582 100644
--- a/net/asterisk12/Makefile
+++ b/net/asterisk12/Makefile
@@ -93,6 +93,12 @@ LIB_DEPENDS+= spandsp.0:${PORTSDIR}/comms/spandsp
PLIST_SUB+= WITH_FAX=""
.endif
+.if ${OSVERSION} >= 500036
+PLIST_SUB+= NEWGCC=""
+.else
+PLIST_SUB+= NEWGCC="@comment "
+.endif
+
post-patch:
${REINPLACE_CMD} -e 's|/var/lib|${PREFIX}/share|g' ${WRKSRC}/configs/musiconhold.conf.sample
diff --git a/net/asterisk12/pkg-plist b/net/asterisk12/pkg-plist
index 702370ab9fa7..3af861f7a135 100644
--- a/net/asterisk12/pkg-plist
+++ b/net/asterisk12/pkg-plist
@@ -342,7 +342,7 @@ lib/asterisk/modules/pbx_realtime.so
lib/asterisk/modules/pbx_spool.so
lib/asterisk/modules/res_adsi.so
lib/asterisk/modules/res_agi.so
-lib/asterisk/modules/res_config_odbc.so
+%%NEWGCC%%lib/asterisk/modules/res_config_odbc.so
lib/asterisk/modules/res_crypto.so
lib/asterisk/modules/res_features.so
lib/asterisk/modules/res_indications.so