aboutsummaryrefslogtreecommitdiffstats
path: root/net/asterisk10
diff options
context:
space:
mode:
authorflo <flo@FreeBSD.org>2011-07-22 07:01:21 +0800
committerflo <flo@FreeBSD.org>2011-07-22 07:01:21 +0800
commit9f87b1665f5260c4f52b48e7ae416d1e851bb42b (patch)
tree96d478378cfb9c903f1b7183272ea625489259fb /net/asterisk10
parent45ddf9a6bafa3d6f5114c5504109d323195c455f (diff)
downloadfreebsd-ports-gnome-9f87b1665f5260c4f52b48e7ae416d1e851bb42b.tar.gz
freebsd-ports-gnome-9f87b1665f5260c4f52b48e7ae416d1e851bb42b.tar.zst
freebsd-ports-gnome-9f87b1665f5260c4f52b48e7ae416d1e851bb42b.zip
- fix WITH_ILBC
Reported by: Guido Falsi <mad@madpilot.net>
Diffstat (limited to 'net/asterisk10')
-rw-r--r--net/asterisk10/Makefile5
-rw-r--r--net/asterisk10/files/ilbc_enable.diff20
2 files changed, 4 insertions, 21 deletions
diff --git a/net/asterisk10/Makefile b/net/asterisk10/Makefile
index 962fb3a38fe6..f9ca14f83ac4 100644
--- a/net/asterisk10/Makefile
+++ b/net/asterisk10/Makefile
@@ -283,7 +283,7 @@ 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)
+.if defined(WITH_MYSQL) || defined(WITH_NEWG711) || defined(WITH_ILBC)
@cd ${WRKSRC} && make menuselect.makeopts
.if defined(WITH_MYSQL)
@cd ${WRKSRC} && ./menuselect/menuselect --enable res_config_mysql menuselect.makeopts
@@ -293,6 +293,9 @@ post-configure:
.if defined(WITH_NEWG711)
@cd ${WRKSRC} && ./menuselect/menuselect --enable G711_NEW_ALGORITHM menuselect.makeopts
.endif
+.if defined(WITH_ILBC)
+ @cd ${WRKSRC} && ./menuselect/menuselect --enable codec_ilbc menuselect.makeopts
+.endif
.endif
post-install:
diff --git a/net/asterisk10/files/ilbc_enable.diff b/net/asterisk10/files/ilbc_enable.diff
index a2a3c4f73d70..e1449a60468f 100644
--- a/net/asterisk10/files/ilbc_enable.diff
+++ b/net/asterisk10/files/ilbc_enable.diff
@@ -1,16 +1,6 @@
$FreeBSD$
---- menuselect-tree
-+++ menuselect-tree
-@@ -269,7 +269,6 @@
- <depend>gsm</depend>
- </member>
- <member name="codec_ilbc" displayname="iLBC Coder/Decoder" remove_on_change="codecs/codec_ilbc.o codecs/codec_ilbc.so">
-- <defaultenabled>no</defaultenabled>
- </member>
- <member name="codec_lpc10" displayname="LPC10 2.4kbps Coder/Decoder" remove_on_change="codecs/codec_lpc10.o codecs/codec_lpc10.so">
- </member>
diff -druN codecs/ilbc.orig/FrameClassify.c codecs/ilbc/FrameClassify.c
--- codecs/ilbc.orig/FrameClassify.c 1969-12-31 16:00:00.000000000 -0800
+++ codecs/ilbc/FrameClassify.c 2006-02-14 11:14:15.000000000 -0800
@@ -7587,13 +7577,3 @@ diff -druN codecs/ilbc.orig/syntFilter.h codecs/ilbc/syntFilter.h
+#endif
+
+
---- codecs/.moduleinfo 2008/08/20 23:00:58 1.1
-+++ codecs/.moduleinfo 2008/08/20 23:01:12
-@@ -11,7 +11,6 @@
- <depend>gsm</depend>
- </member>
- <member name="codec_ilbc" displayname="iLBC Coder/Decoder" remove_on_change="codecs/codec_ilbc.o codecs/codec_ilbc.so">
-- <defaultenabled>no</defaultenabled>
- </member>
- <member name="codec_lpc10" displayname="LPC10 2.4kbps Coder/Decoder" remove_on_change="codecs/codec_lpc10.o codecs/codec_lpc10.so">
- </member>