aboutsummaryrefslogtreecommitdiffstats
path: root/net/asterisk
diff options
context:
space:
mode:
authorflo <flo@FreeBSD.org>2011-07-20 01:34:27 +0800
committerflo <flo@FreeBSD.org>2011-07-20 01:34:27 +0800
commitaf51e7d49ebf9b8d85a368db9320be4c47f6ff91 (patch)
tree03765b6d6ab7e46553a3b9f84240dc60f82d8463 /net/asterisk
parent558f63ff21134d7d956d45d4bbb2a979a7c365e0 (diff)
downloadfreebsd-ports-gnome-af51e7d49ebf9b8d85a368db9320be4c47f6ff91.tar.gz
freebsd-ports-gnome-af51e7d49ebf9b8d85a368db9320be4c47f6ff91.tar.zst
freebsd-ports-gnome-af51e7d49ebf9b8d85a368db9320be4c47f6ff91.zip
- update to 1.8.5.0
- remove leftovers from asterisk 1.6.X - use menuselect to enable addons
Diffstat (limited to 'net/asterisk')
-rw-r--r--net/asterisk/Makefile35
1 files changed, 16 insertions, 19 deletions
diff --git a/net/asterisk/Makefile b/net/asterisk/Makefile
index ca310216635f..962fb3a38fe6 100644
--- a/net/asterisk/Makefile
+++ b/net/asterisk/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= asterisk
-PORTVERSION= 1.8.4.4
+PORTVERSION= 1.8.5.0
CATEGORIES= net
MASTER_SITES= http://downloads.asterisk.org/pub/telephony/asterisk/ \
http://downloads.asterisk.org/pub/telephony/asterisk/old-releases/
@@ -159,11 +159,11 @@ CONFIGURE_ARGS+= --with-postgres
.if !defined(WITH_MYSQL)
PLIST_SUB+= WITH_MYSQL="@comment "
+CONFIGURE_ARGS+= --without-mysql
.else
PLIST_SUB+= WITH_MYSQL=""
USE_MYSQL= yes
-EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-menuselect-tree-mysql.diff
-EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-addons__.moduleinfo.diff
+CONFIGURE_ARGS+= --with-mysql
.endif
.if !defined(WITH_OGGVORBIS)
@@ -255,10 +255,6 @@ LIB_DEPENDS+= neon.27:${PORTSDIR}/www/neon29
PLIST_SUB+= WITH_EXCHANGE=""
.endif
-.if defined(WITH_NEWG711)
-EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-menuselect-tree-g711-new-codec.diff
-.endif
-
.if !defined(WITH_SRTP)
PLIST_SUB+= WITH_SRTP="@comment "
CONFIGURE_ARGS+= --without-srtp
@@ -279,18 +275,6 @@ CONFIGURE_ARGS+= --without-lua
PLIST_SUB+= WITH_LUA="@comment "
.endif
-.if defined(WITH_MISC_PATCHES)
-EXTRA_PATCHES+= ${PATCHDIR}/dtmf_debug.diff
-EXTRA_PATCHES+= ${PATCHDIR}/feature_disconnect.diff
-EXTRA_PATCHES+= ${PATCHDIR}/sip_force_callid.diff
-EXTRA_PATCHES+= ${PATCHDIR}/sip_set_auth.diff
-.if defined(WITH_CODEC_PATCH)
-EXTRA_PATCHES+= ${PATCHDIR}/rtp_force_dtmf-codecnego.diff
-.else
-EXTRA_PATCHES+= ${PATCHDIR}/rtp_force_dtmf-nocodecnego.diff
-.endif
-.endif
-
post-extract:
${MKDIR} ${WRKSRC}/codecs/ilbc
${FIND} ${WRKSRC} -name '*.d' -delete
@@ -298,6 +282,19 @@ post-extract:
post-patch:
${REINPLACE_CMD} -e 's|/var/lib|${PREFIX}/share|g' ${WRKSRC}/configs/musiconhold.conf.sample
+post-configure:
+.if defined(WITH_MYSQL) || defined(WITH_NEWG711)
+ @cd ${WRKSRC} && make menuselect.makeopts
+.if defined(WITH_MYSQL)
+ @cd ${WRKSRC} && ./menuselect/menuselect --enable res_config_mysql menuselect.makeopts
+ @cd ${WRKSRC} && ./menuselect/menuselect --enable app_mysql menuselect.makeopts
+ @cd ${WRKSRC} && ./menuselect/menuselect --enable cdr_mysql menuselect.makeopts
+.endif
+.if defined(WITH_NEWG711)
+ @cd ${WRKSRC} && ./menuselect/menuselect --enable G711_NEW_ALGORITHM menuselect.makeopts
+.endif
+.endif
+
post-install:
@${CHOWN} -R ${ASTERISK_USER}:${ASTERISK_GROUP} ${VARDIR}/db/asterisk ${VARDIR}/log/asterisk ${VARDIR}/spool/asterisk