summaryrefslogtreecommitdiff
path: root/openwrt/package/asterisk/patches/asterisk-1.0.7-Makefile-codecs.patch
diff options
context:
space:
mode:
authornico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-07-11 12:48:09 +0000
committernico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-07-11 12:48:09 +0000
commit804c78b471c1e447cf4431f7afdfd6e0b20b75d0 (patch)
tree7196b03459252abed6f51691e6558b6f61d6d96f /openwrt/package/asterisk/patches/asterisk-1.0.7-Makefile-codecs.patch
parentcdea47b22effe86885cb0517fe5bdf02d95d1a76 (diff)
Update to new upstream release (v1.0.9),
Split makefile patch into multiple patches, Add no-gtk fix from whiterussian. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@1402 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/package/asterisk/patches/asterisk-1.0.7-Makefile-codecs.patch')
-rw-r--r--openwrt/package/asterisk/patches/asterisk-1.0.7-Makefile-codecs.patch69
1 files changed, 69 insertions, 0 deletions
diff --git a/openwrt/package/asterisk/patches/asterisk-1.0.7-Makefile-codecs.patch b/openwrt/package/asterisk/patches/asterisk-1.0.7-Makefile-codecs.patch
new file mode 100644
index 0000000000..1a854a06ea
--- /dev/null
+++ b/openwrt/package/asterisk/patches/asterisk-1.0.7-Makefile-codecs.patch
@@ -0,0 +1,69 @@
+diff -ruN asterisk-1.0.7-old/codecs/Makefile asterisk-1.0.7-new/codecs/Makefile
+--- asterisk-1.0.7-old/codecs/Makefile 2005-03-17 15:43:51.000000000 +0100
++++ asterisk-1.0.7-new/codecs/Makefile 2005-03-22 23:26:20.000000000 +0100
+@@ -17,21 +17,21 @@
+ # g723.1b)
+ #
+ #MODG723=codec_g723_1.so codec_g723_1b.so
+-MODG723=$(shell [ -f g723.1/coder.c ] && echo "codec_g723_1.so")
+-MODG723+=$(shell [ -f g723.1b/coder2.c ] && echo "codec_g723_1b.so")
+-MODSPEEX=$(shell [ -f /usr/include/speex.h ] || [ -f /usr/include/speex/speex.h ] || [ -f /usr/local/include/speex.h ] || [ -f /usr/local/include/speex/speex.h ] && echo "codec_speex.so")
++#MODG723=$(shell [ -f g723.1/coder.c ] && echo "codec_g723_1.so")
++#MODG723+=$(shell [ -f g723.1b/coder2.c ] && echo "codec_g723_1b.so")
++#MODSPEEX=$(shell [ -f /usr/include/speex.h ] || [ -f /usr/include/speex/speex.h ] || [ -f /usr/local/include/speex.h ] || [ -f /usr/local/include/speex/speex.h ] && echo "codec_speex.so")
+ MODILBC=$(shell [ -f ilbc/iLBC_decode.h ] && echo "codec_ilbc.so")
+ CFLAGS+=-fPIC
+-CFLAGS+=$(shell [ -f /usr/local/include/speex.h ] && echo "-I/usr/local/include")
+-CFLAGS+=$(shell [ -f /usr/local/include/speex/speex.h ] && echo "-I/usr/local/include/speex")
+-CFLAGS+=$(shell [ -f /usr/include/speex/speex.h ] && echo "-I/usr/include/speex")
++#CFLAGS+=$(shell [ -f /usr/local/include/speex.h ] && echo "-I/usr/local/include")
++#CFLAGS+=$(shell [ -f /usr/local/include/speex/speex.h ] && echo "-I/usr/local/include/speex")
++#CFLAGS+=$(shell [ -f /usr/include/speex/speex.h ] && echo "-I/usr/include/speex")
+
+ LIBG723=g723.1/libg723.a
+ LIBG723B=g723.1b/libg723b.a
+ LIBGSM=gsm/lib/libgsm.a
+ LIBGSMT=gsm/lib/libgsm.a
+ LIBLPC10=lpc10/liblpc10.a
+-LIBSPEEX=$(shell [ -f /usr/local/lib/libspeex.a ] && echo "-L/usr/local/lib")
++LIBSPEEX=$(LDFLAGS_EXTRA)
+ LIBSPEEX+=-lspeex -lm
+ LIBILBC=ilbc/libilbc.a
+
+@@ -43,26 +43,26 @@
+
+ clean:
+ rm -f *.so *.o .depend
+- ! [ -d g723.1 ] || $(MAKE) -C g723.1 clean
+- ! [ -d g723.1b ] || $(MAKE) -C g723.1b clean
+- $(MAKE) -C gsm clean
+- $(MAKE) -C lpc10 clean
+- $(MAKE) -C ilbc clean
++ ! [ -d g723.1 ] || $(MAKE) PROC=$(PROC) -C g723.1 clean
++ ! [ -d g723.1b ] || $(MAKE) PROC=$(PROC) -C g723.1b clean
++ $(MAKE) PROC=$(PROC) -C gsm clean
++ $(MAKE) PROC=$(PROC) -C lpc10 clean
++ $(MAKE) PROC=$(PROC) -C ilbc clean
+
+ $(LIBG723):
+- $(MAKE) -C g723.1 all
++ $(MAKE) PROC=$(PROC) -C g723.1 all
+
+ gsm/lib/libgsm.a:
+- $(MAKE) -C gsm lib/libgsm.a
++ $(MAKE) PROC=$(PROC) -C gsm lib/libgsm.a
+
+ $(LIBG723B):
+- $(MAKE) -C g723.1b all
++ $(MAKE) PROC=$(PROC) -C g723.1b all
+
+ $(LIBLPC10):
+- $(MAKE) -C lpc10 all
++ $(MAKE) PROC=$(PROC) -C lpc10 all
+
+ $(LIBILBC):
+- $(MAKE) -C ilbc all
++ $(MAKE) PROC=$(PROC) -C ilbc all
+
+ codec_ilbc.so: codec_ilbc.o $(LIBILBC)
+ $(CC) $(SOLINK) -o $@ $< $(LIBILBC)