summaryrefslogtreecommitdiff
path: root/comms/asterisk18/options.mk
diff options
context:
space:
mode:
Diffstat (limited to 'comms/asterisk18/options.mk')
-rw-r--r--comms/asterisk18/options.mk12
1 files changed, 6 insertions, 6 deletions
diff --git a/comms/asterisk18/options.mk b/comms/asterisk18/options.mk
index f8396cf1180..dc497e03bfe 100644
--- a/comms/asterisk18/options.mk
+++ b/comms/asterisk18/options.mk
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.5 2011/10/11 02:13:40 jnemeth Exp $
+# $NetBSD: options.mk,v 1.6 2011/10/11 03:12:55 jnemeth Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.asterisk
PKG_SUPPORTED_OPTIONS= zaptel x11 unixodbc ilbc webvmail ldap spandsp
@@ -44,9 +44,9 @@ CONFIGURE_ARGS+= --without-unixodbc
.if !empty(PKG_OPTIONS:Milbc)
DISTFILES+= rfc3951.txt
SITES.rfc3951.txt= http://www.ietf.org/rfc/
-DISTFILES+= extract-cfile.awk
-SITES.extract-cfile.awk= http://www.ilbcfreeware.org/documentation/
-USE_TOOLS+= awk
+DISTFILES+= extract-cfile.txt
+SITES.extract-cfile.txt= http://www.ilbcfreeware.org/documentation/
+USE_TOOLS+= awk tr
PLIST.ilbc= yes
.endif
@@ -76,8 +76,8 @@ post-configure:
post-extract:
.if !empty(PKG_OPTIONS:Milbc)
cp ${DISTDIR}/${DIST_SUBDIR}/rfc3951.txt ${WRKSRC}/codecs/ilbc
- cp ${DISTDIR}/${DIST_SUBDIR}/extract-cfile.awk ${WRKSRC}/codecs/ilbc
- cd ${WRKSRC}/codecs/ilbc && ${AWK} -f extract-cfile.awk < rfc3951.txt
+ cp ${DISTDIR}/${DIST_SUBDIR}/extract-cfile.txt ${WRKSRC}/codecs/ilbc
+ cd ${WRKSRC}/codecs/ilbc && ${TR} -d '\r' < extract-cfile.txt | ${AWK} -f - rfc3951.txt
.endif
.if !empty(PKG_OPTIONS:Mwebvmail)