diff options
author | Maxim Sobolev <sobomax@FreeBSD.org> | 2004-04-30 05:21:08 +0000 |
---|---|---|
committer | Maxim Sobolev <sobomax@FreeBSD.org> | 2004-04-30 05:21:08 +0000 |
commit | 962d6e05b40940170ea394def1103b4e065949bc (patch) | |
tree | e7bd91f082e901686aaa1a463f931bf3099c4f07 /net/asterisk-bristuff/files/patch-channels::Makefile | |
parent | 77617709172415e13ef67e9e67856d4b669de3af (diff) | |
download | ports-962d6e05b40940170ea394def1103b4e065949bc.tar.gz ports-962d6e05b40940170ea394def1103b4e065949bc.zip |
Notes
Diffstat (limited to 'net/asterisk-bristuff/files/patch-channels::Makefile')
-rw-r--r-- | net/asterisk-bristuff/files/patch-channels::Makefile | 38 |
1 files changed, 33 insertions, 5 deletions
diff --git a/net/asterisk-bristuff/files/patch-channels::Makefile b/net/asterisk-bristuff/files/patch-channels::Makefile index d05ee2c13676..fd855e7a2710 100644 --- a/net/asterisk-bristuff/files/patch-channels::Makefile +++ b/net/asterisk-bristuff/files/patch-channels::Makefile @@ -1,9 +1,9 @@ $FreeBSD$ ---- channels/Makefile.orig Fri Jan 23 22:57:48 2004 -+++ channels/Makefile Thu Feb 19 01:48:41 2004 -@@ -26,12 +26,10 @@ +--- channels/Makefile.orig Thu Mar 25 11:43:36 2004 ++++ channels/Makefile Thu Apr 29 14:36:36 2004 +@@ -33,12 +33,10 @@ # #CHANNEL_LIBS+=chan_vofr @@ -17,7 +17,25 @@ $FreeBSD$ CFLAGS+=-Wno-missing-prototypes -Wno-missing-declarations CFLAGS+=$(shell [ ! -f /usr/include/linux/if_wanpipe.h ] && echo " -DOLD_SANGOMA_API") -@@ -99,10 +97,8 @@ +@@ -48,7 +46,7 @@ + CFLAGS+=$(shell [ -f alsa-monitor.h ] && echo " -DALSA_MONITOR") + ZAPPRI=$(shell [ -f /usr/lib/libpri.so.1 ] && echo "-lpri") + ZAPR2=$(shell [ -f /usr/lib/libmfcr2.so.1 ] && echo "-lmfcr2") +-CFLAGS+=$(shell [ -f /usr/include/linux/zaptel.h ] && echo "-DIAX_TRUNKING") ++CFLAGS+=$(shell [ -f $(LOCALBASE)/include/zaptel.h ] && echo "-DIAX_TRUNKING -I$(LOCALBASE)/include") + CHANNEL_LIBS+=$(shell [ -f /usr/include/vpbapi.h ] && echo "chan_vpb.so" ) + CFLAGS+=$(shell [ -f /usr/include/vpbapi.h ] && echo " -DLINUX") + +@@ -69,7 +67,7 @@ + + ZAPDIR=/usr/lib + +-CHANNEL_LIBS+=$(shell [ -f /usr/include/linux/zaptel.h ] && echo "chan_zap.so") ++CHANNEL_LIBS+=$(shell [ -f $(LOCALBASE)/include/zaptel.h ] && echo "chan_zap.so") + + CHANNEL_LIBS+=$(shell [ -f /usr/include/nbs.h ] && echo "chan_nbs.so" ) + +@@ -110,10 +108,8 @@ chan_oss.o: chan_oss.c busy.h ringtone.h @@ -29,7 +47,16 @@ $FreeBSD$ chan_iax2.so: chan_iax2.o iax2-parser.o ifeq ($(USE_MYSQL_FRIENDS),1) -@@ -146,15 +142,17 @@ +@@ -133,7 +129,7 @@ + $(CC) -c $(CFLAGS) -o chan_zap.o chan_zap.c + + chan_zap.so: chan_zap.o +- $(CC) $(SOLINK) -o $@ $< $(ZAPPRI) $(ZAPR2) -ltonezone ++ $(CC) $(SOLINK) -o $@ $< $(ZAPPRI) $(ZAPR2) -L$(LOCALBASE)/lib -ltonezone + + chan_sip.so: chan_sip.o + ifeq ($(USE_MYSQL_FRIENDS),1) +@@ -157,16 +153,17 @@ chan_vpb.so: chan_vpb.o $(CXX) $(SOLINK) -o $@ $< -lvpb -lpthread -lm -ldl @@ -46,6 +73,7 @@ $FreeBSD$ install: all - for x in $(CHANNEL_LIBS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(MODULES_DIR) ; done +- if ! [ -f chan_iax.so ]; then rm -f $(DESTDIR)$(MODULES_DIR)/chan_iax.so ; fi + for x in $(CHANNEL_LIBS); do $(BSD_INSTALL_PROGRAM) $$x $(DESTDIR)$(MODULES_DIR) ; done depend: .depend |