3609ffcb39
- Add PATCHFILE by Klaus-Peter Junghanns for quadBRI/octoBRI (HFC-S) support - Enable libpri support in chan_zap module. Sponsored by: LF.net Approved by: MAINTAINER
92 lines
3.7 KiB
Text
92 lines
3.7 KiB
Text
--- channels/Makefile.orig Tue Aug 31 23:33:00 2004
|
|
+++ channels/Makefile Mon Feb 28 00:48:27 2005
|
|
@@ -57,10 +57,10 @@
|
|
|
|
endif
|
|
ifeq (${OSARCH},FreeBSD)
|
|
-PTLIB=-lpt_FreeBSD_x86_r
|
|
-H323LIB=-lh323_FreeBSD_x86_r
|
|
-CHANH323LIB=-pthread
|
|
-SOLINK+=-L/usr/local/lib
|
|
+PTLIB=-lpt_FreeBSD_x86_r_s
|
|
+H323LIB=-lh323_FreeBSD_x86_r_s
|
|
+CHANH323LIB=
|
|
+SOLINK+=-L$(LOCALBASE)/lib
|
|
endif
|
|
ifeq (${OSARCH},NetBSD)
|
|
PTLIB=-lpt_NetBSD_x86_r
|
|
@@ -72,19 +72,21 @@
|
|
endif
|
|
|
|
CHANNEL_LIBS+=$(shell [ -f /usr/include/linux/ixjuser.h ] && echo chan_phone.so)
|
|
-CHANNEL_LIBS+=$(shell [ -f /usr/local/include/ixjuser.h ] && echo chan_phone.so)
|
|
-CHANNEL_LIBS+=$(shell [ -f h323/libchanh323.a ] && echo chan_h323.so)
|
|
+CHANNEL_LIBS+=$(shell [ -f $(LOCALBASE)/include/ixjuser.h ] && echo chan_phone.so)
|
|
+ifndef WITHOUT_H323
|
|
+CHANNEL_LIBS+=chan_h323.so
|
|
+endif
|
|
|
|
CFLAGS+=-Wno-missing-prototypes -Wno-missing-declarations
|
|
CFLAGS+=$(shell [ ! -f /usr/include/linux/if_wanpipe.h ] && echo " -DOLD_SANGOMA_API")
|
|
CHANNEL_LIBS+=$(shell [ -f /usr/include/alsa/asoundlib.h ] && echo "chan_alsa.so")
|
|
-CFLAGS+=$(shell [ -f /usr/lib/libpri.so.1 ] && echo " -DZAPATA_PRI")
|
|
+CFLAGS+=$(shell [ -f $(LOCALBASE)/lib/libpri.so.1 ] && echo " -DZAPATA_PRI")
|
|
CFLAGS+=$(shell [ -f /usr/lib/libmfcr2.so.1 ] && echo " -DZAPATA_R2")
|
|
CFLAGS+=$(shell [ -f alsa-monitor.h ] && echo " -DALSA_MONITOR")
|
|
-ZAPPRI=$(shell [ -f /usr/lib/libpri.so.1 ] && echo "-lpri")
|
|
+ZAPPRI=$(shell [ -f $(LOCALBASE)/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 /usr/local/include/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")
|
|
|
|
@@ -107,7 +109,7 @@
|
|
ZAPDIR=/usr/lib
|
|
|
|
CHANNEL_LIBS+=$(shell [ -f /usr/include/linux/zaptel.h ] && echo "chan_zap.so")
|
|
-CHANNEL_LIBS+=$(shell [ -f /usr/local/include/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" )
|
|
|
|
@@ -156,6 +158,8 @@
|
|
chan_oss.so: chan_oss.o
|
|
$(CC) $(SOLINK) -o $@ chan_oss.o -lossaudio
|
|
endif
|
|
+chan_oss.so: chan_oss.o
|
|
+ $(CC) $(SOLINK) -o $@ chan_oss.o
|
|
|
|
chan_iax2.so: chan_iax2.o iax2-parser.o iax2-provision.o
|
|
ifeq ($(USE_MYSQL_FRIENDS),1)
|
|
@@ -175,7 +179,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_SIP_MYSQL_FRIENDS),1)
|
|
@@ -199,15 +203,17 @@
|
|
chan_vpb.so: chan_vpb.o
|
|
$(CXX) $(SOLINK) -o $@ $< -lvpb -lpthread -lm -ldl
|
|
|
|
-chan_h323.so: chan_h323.o h323/libchanh323.a
|
|
- $(CC) $(SOLINK) -o $@ $< h323/libchanh323.a $(CHANH323LIB) -L$(PWLIBDIR)/lib $(PTLIB) -L$(OPENH323DIR)/lib $(H323LIB) -L/usr/lib -lcrypto -lssl -lexpat
|
|
+chan_h323.so: chan_h323.o h323/ast_h323.o
|
|
+ $(CXX) $(SOLINK) -o $@ $< h323/ast_h323.o -L$(OPENH323DIR)/lib $(H323LIB) -L$(PWLIBDIR)/lib $(PTLIB) -lcrypto -lssl -L$(LOCALBASE)/lib -lexpat -llber -lldap -lldap_r
|
|
|
|
+h323/ast_h323.o:
|
|
+ $(MAKE) -C h323 ast_h323.o
|
|
|
|
#chan_modem.so : chan_modem.o
|
|
# $(CC) -rdynamic -shared -Xlinker -x -o $@ $<
|
|
|
|
install: all
|
|
- for x in $(CHANNEL_LIBS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(MODULES_DIR) ; done
|
|
+ for x in $(CHANNEL_LIBS); do $(BSD_INSTALL_PROGRAM) $$x $(DESTDIR)$(MODULES_DIR) ; done
|
|
if ! [ -f chan_iax.so ]; then rm -f $(DESTDIR)$(MODULES_DIR)/chan_iax.so ; fi
|
|
|
|
depend: .depend
|