diff options
author | fjoe <fjoe@FreeBSD.org> | 2005-08-15 02:44:06 +0800 |
---|---|---|
committer | fjoe <fjoe@FreeBSD.org> | 2005-08-15 02:44:06 +0800 |
commit | 870265ad6383e99fa2727258e0173a9e18f386ae (patch) | |
tree | 732323ed1635ab3004653b55634b6f1e67b1c1f2 /net/asterisk10/files | |
parent | fd209c308f097c084854c56fd9edc9eca085588d (diff) | |
download | freebsd-ports-gnome-870265ad6383e99fa2727258e0173a9e18f386ae.tar.gz freebsd-ports-gnome-870265ad6383e99fa2727258e0173a9e18f386ae.tar.zst freebsd-ports-gnome-870265ad6383e99fa2727258e0173a9e18f386ae.zip |
- Add dependency on unixODBC (and WITHOUT_ODBC knob).
- Unify WITH_FOO knobs.
- Bump PORTREVISION.
Approved by: portmgr, MAINTAINER
Diffstat (limited to 'net/asterisk10/files')
-rw-r--r-- | net/asterisk10/files/patch-Makefile | 6 | ||||
-rw-r--r-- | net/asterisk10/files/patch-cdr::Makefile | 45 | ||||
-rw-r--r-- | net/asterisk10/files/patch-channels::Makefile | 19 | ||||
-rw-r--r-- | net/asterisk10/files/patch-res::Makefile | 6 |
4 files changed, 57 insertions, 19 deletions
diff --git a/net/asterisk10/files/patch-Makefile b/net/asterisk10/files/patch-Makefile index 176c4ba74d4e..4f02274d20ab 100644 --- a/net/asterisk10/files/patch-Makefile +++ b/net/asterisk10/files/patch-Makefile @@ -1,5 +1,5 @@ ---- Makefile.orig Tue Jul 12 00:36:27 2005 -+++ Makefile Tue Jul 12 01:24:50 2005 +--- Makefile.orig Tue Aug 9 17:18:53 2005 ++++ Makefile Tue Aug 9 17:33:29 2005 @@ -45,6 +45,15 @@ PROC=$(shell uname -m) endif @@ -93,7 +93,7 @@ CFLAGS+=$(shell if [ -f /usr/include/linux/zaptel.h ]; then echo "-DZAPTEL_OPTIMIZATIONS"; fi) -CFLAGS+=$(shell if [ -f /usr/local/include/zaptel.h ]; then echo "-DZAPTEL_OPTIMIZATIONS"; fi) +CFLAGS+=-I$(LOCALBASE)/include -+ifndef WITHOUT_ZAPTEL ++ifdef WITH_ZAPTEL +CFLAGS+=-DZAPTEL_OPTIMIZATIONS +endif diff --git a/net/asterisk10/files/patch-cdr::Makefile b/net/asterisk10/files/patch-cdr::Makefile index f646d2c9a3dc..1d0fb2049ba2 100644 --- a/net/asterisk10/files/patch-cdr::Makefile +++ b/net/asterisk10/files/patch-cdr::Makefile @@ -1,8 +1,5 @@ - -$FreeBSD$ - ---- cdr/Makefile.orig Tue Aug 31 19:33:00 2004 -+++ cdr/Makefile Thu Oct 14 19:13:38 2004 +--- cdr/Makefile.orig Tue Aug 31 23:33:00 2004 ++++ cdr/Makefile Tue Aug 9 17:28:11 2005 @@ -21,7 +21,7 @@ OSARCH=$(shell uname -s) @@ -12,7 +9,43 @@ $FreeBSD$ endif #The problem with sparc is the best stuff is in newer versions of gcc (post 3.0) only. -@@ -71,7 +71,7 @@ +@@ -37,18 +37,23 @@ + # + # unixODBC stuff... + # ++ifdef WITH_ODBC + MODS+=$(shell if [ -f "/usr/include/odbcinst.h" ]; then echo "cdr_odbc.so"; fi) + MODS+=$(shell if [ -f "/usr/local/include/odbcinst.h" ]; then echo "cdr_odbc.so"; fi) ++endif + + # + # FreeTDS stuff... + # ++ifdef WITH_FREETDS + MODS+=$(shell if [ -f "/usr/include/tds.h" ]; then echo "cdr_tds.so"; fi) + MODS+=$(shell if [ -f "/usr/local/include/tds.h" ]; then echo "cdr_tds.so"; fi) ++endif + + # + # PGSQL stuff... Autoconf anyone?? + # ++ifdef WITH_PGSQL + MODS+=$(shell if [ -d /usr/local/pgsql/include ] || [ -d /usr/include/pgsql ] || [ -d /usr/local/include/pgsql ] || [ -d /opt/pgsql/include ] || [ -f /usr/include/libpq-fe.h ] ; then echo "cdr_pgsql.so"; fi) + CFLAGS+=$(shell if [ -d /usr/local/pgsql/include ]; then echo "-I/usr/local/pgsql/include"; fi) + CFLAGS+=$(shell if [ -d /usr/include/pgsql ]; then echo "-I/usr/include/pgsql"; fi) +@@ -62,16 +67,19 @@ + MLFLAGS+=$(shell if [ -d /usr/local/lib/pgsql ]; then echo "-L/usr/local/lib/pgsql"; fi) + MLFLAGS+=$(shell if [ -d /opt/pgsql/lib ]; then echo "-L/opt/pgsql/lib"; fi) + MLFLAGS+=$(shell if [ -f /usr/lib/libpq.so ]; then echo "-L/usr/lib"; fi) ++endif + + # + # SQLIte stuff... + # ++ifdef WITH_SQLITE + MODS+=$(shell if [ -f "/usr/include/sqlite.h" ]; then echo "cdr_sqlite.so"; fi) ++endif + all: depend $(MODS) install: all diff --git a/net/asterisk10/files/patch-channels::Makefile b/net/asterisk10/files/patch-channels::Makefile index 82896f15e951..7ecab67f9571 100644 --- a/net/asterisk10/files/patch-channels::Makefile +++ b/net/asterisk10/files/patch-channels::Makefile @@ -1,5 +1,5 @@ --- channels/Makefile.orig Tue Aug 31 23:33:00 2004 -+++ channels/Makefile Mon Feb 28 00:48:27 2005 ++++ channels/Makefile Tue Aug 9 17:34:28 2005 @@ -57,10 +57,10 @@ endif @@ -15,14 +15,14 @@ endif ifeq (${OSARCH},NetBSD) PTLIB=-lpt_NetBSD_x86_r -@@ -72,19 +72,21 @@ +@@ -72,19 +72,23 @@ 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 ++ifdef WITH_H323 +CHANNEL_LIBS+=chan_h323.so +endif @@ -36,22 +36,27 @@ -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") ++ifdef WITH_ZAPTEL 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") ++endif 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 @@ +@@ -106,8 +110,10 @@ + ZAPDIR=/usr/lib ++ifdef WITH_ZAPTEL 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") ++endif CHANNEL_LIBS+=$(shell [ -f /usr/include/nbs.h ] && echo "chan_nbs.so" ) -@@ -156,6 +158,8 @@ +@@ -156,6 +162,8 @@ chan_oss.so: chan_oss.o $(CC) $(SOLINK) -o $@ chan_oss.o -lossaudio endif @@ -60,7 +65,7 @@ chan_iax2.so: chan_iax2.o iax2-parser.o iax2-provision.o ifeq ($(USE_MYSQL_FRIENDS),1) -@@ -175,7 +179,7 @@ +@@ -175,7 +183,7 @@ $(CC) -c $(CFLAGS) -o chan_zap.o chan_zap.c chan_zap.so: chan_zap.o @@ -69,7 +74,7 @@ chan_sip.so: chan_sip.o ifeq ($(USE_SIP_MYSQL_FRIENDS),1) -@@ -199,15 +203,17 @@ +@@ -199,15 +207,17 @@ chan_vpb.so: chan_vpb.o $(CXX) $(SOLINK) -o $@ $< -lvpb -lpthread -lm -ldl diff --git a/net/asterisk10/files/patch-res::Makefile b/net/asterisk10/files/patch-res::Makefile index 2b920da8ea3f..3e48e84189a2 100644 --- a/net/asterisk10/files/patch-res::Makefile +++ b/net/asterisk10/files/patch-res::Makefile @@ -1,5 +1,5 @@ ---- res/Makefile.orig Tue Jul 12 01:28:04 2005 -+++ res/Makefile Tue Jul 12 01:58:11 2005 +--- res/Makefile.orig Tue Aug 9 17:18:55 2005 ++++ res/Makefile Tue Aug 9 17:33:36 2005 @@ -13,15 +13,18 @@ MODS=res_adsi.so res_features.so res_crypto.so res_musiconhold.so res_indications.so res_monitor.so \ @@ -16,7 +16,7 @@ CFLAGS+=$(shell [ -f /usr/include/linux/zaptel.h ] && echo " -DZAPATA_MOH") -CFLAGS+=$(shell [ -f /usr/local/include/zaptel.h ] && echo " -DZAPATA_MOH") +CFLAGS+=-I$(LOCALBASE)/include -+ifndef WITHOUT_ZAPTEL ++ifdef WITH_ZAPTEL +CFLAGS+=-DZAPATA_MOH +endif # |