aboutsummaryrefslogtreecommitdiffstats
path: root/net/asterisk/Makefile
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2005-07-11 19:11:36 +0800
committersobomax <sobomax@FreeBSD.org>2005-07-11 19:11:36 +0800
commit4ebd5dda6a1dc4a7a0cbb296a8e1360dea7b4cbb (patch)
tree37820bc92a5517645869e2e6a240266e9132532d /net/asterisk/Makefile
parent4200448368be3859d00a317d5d03453b3bef5c1a (diff)
downloadfreebsd-ports-gnome-4ebd5dda6a1dc4a7a0cbb296a8e1360dea7b4cbb.tar.gz
freebsd-ports-gnome-4ebd5dda6a1dc4a7a0cbb296a8e1360dea7b4cbb.tar.zst
freebsd-ports-gnome-4ebd5dda6a1dc4a7a0cbb296a8e1360dea7b4cbb.zip
Add support for faxes based on spandsp port.
Diffstat (limited to 'net/asterisk/Makefile')
-rw-r--r--net/asterisk/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/net/asterisk/Makefile b/net/asterisk/Makefile
index 9de27aaa038a..4c0d18d05948 100644
--- a/net/asterisk/Makefile
+++ b/net/asterisk/Makefile
@@ -7,7 +7,7 @@
PORTNAME= asterisk
PORTVERSION= 1.0.7
-PORTREVISION= 7
+PORTREVISION= 8
CATEGORIES= net
MASTER_SITES= ftp://ftp.asterisk.org/pub/telephony/asterisk/ \
ftp://ftp.asterisk.org/pub/telephony/asterisk/old-releases/
@@ -74,6 +74,14 @@ PLIST_SUB+= WITH_ZAPTEL=""
USE_MYSQL= yes
.endif
+.if !defined(WITHOUT_FAX)
+MAKE_ENV+= WITH_FAX=1
+LIB_DEPENDS+= spandsp.0:${PORTSDIR}/comms/spandsp
+PLIST_SUB+= WITH_FAX=""
+.else
+PLIST_SUB+= WITH_FAX="@comment "
+.endif
+
post-patch:
${CP} ${FILESDIR}/chan_oss.c ${WRKSRC}/channels
${REINPLACE_CMD} -e 's|/var/lib|${PREFIX}/share|g' ${WRKSRC}/configs/musiconhold.conf.sample