aboutsummaryrefslogtreecommitdiff
path: root/net/asterisk-bristuff/files/patch-codecs::Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net/asterisk-bristuff/files/patch-codecs::Makefile')
-rw-r--r--net/asterisk-bristuff/files/patch-codecs::Makefile37
1 files changed, 23 insertions, 14 deletions
diff --git a/net/asterisk-bristuff/files/patch-codecs::Makefile b/net/asterisk-bristuff/files/patch-codecs::Makefile
index 5275ffaab105..b802dc1233e8 100644
--- a/net/asterisk-bristuff/files/patch-codecs::Makefile
+++ b/net/asterisk-bristuff/files/patch-codecs::Makefile
@@ -1,35 +1,44 @@
$FreeBSD$
---- codecs/Makefile.orig Tue May 6 03:00:20 2003
-+++ codecs/Makefile Sat Oct 18 11:49:23 2003
-@@ -19,9 +19,9 @@
+--- codecs/Makefile.orig Tue Nov 4 04:40:09 2003
++++ codecs/Makefile Fri Jan 30 01:47:34 2004
+@@ -17,23 +17,22 @@
+ # 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")
+-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/local/include/speex.h ] && echo "codec_speex.so")
++MODG723=codec_g723_1_dummy.so
++MODG729=codec_g729_dummy.so
+MODSPEEX=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+=-fPIC -I$(LOCALBASE)/include
LIBG723=g723.1/libg723.a
LIBG723B=g723.1b/libg723b.a
-@@ -30,7 +30,7 @@
- LIBGSMT=$(shell if uname -m | grep -q 86; then echo gsm/lib/libgsm.a; fi)
- LIBMP3=mp3/libmp3.a
+ LIBGSM=gsm/lib/libgsm.a
+ LIBGSMT=gsm/lib/libgsm.a
LIBLPC10=lpc10/liblpc10.a
--LIBSPEEX=-lspeex -lm
-+LIBSPEEX=-L$(LOCALBASE)/lib -lspeex -lm
+-LIBSPEEX=$(shell [ -f /usr/local/lib/libspeex.a ] && echo "-L/usr/local/lib")
++LIBSPEEX=-L$(LOCALBASE)/lib
+ LIBSPEEX+=-lspeex -lm
LIBILBC=ilbc/libilbc.a
- CODECS+=$(MODG723) $(MODSPEEX) $(MODILBC) codec_gsm.so codec_mp3_d.so codec_lpc10.so \
-@@ -95,7 +95,7 @@
+-CODECS+=$(MODG723) $(MODSPEEX) $(MODILBC) codec_gsm.so codec_lpc10.so \
++CODECS+=$(MODG723) $(MODG729) $(MODSPEEX) $(MODILBC) codec_gsm.so codec_lpc10.so \
+ codec_adpcm.so codec_ulaw.so codec_alaw.so codec_a_mu.so
+
+ all: depend $(CODECS)
+@@ -88,7 +87,7 @@
include .depend
install: all
-- for x in $(CODECS); do $(INSTALL) -m 755 $$x $(MODULES_DIR) ; done
-+ for x in $(CODECS); do $(BSD_INSTALL_PROGRAM) $$x $(MODULES_DIR) ; done
+- for x in $(CODECS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(MODULES_DIR) ; done
++ for x in $(CODECS); do $(BSD_INSTALL_PROGRAM) $$x $(DESTDIR)$(MODULES_DIR) ; done
depend: .depend