diff options
Diffstat (limited to 'net/asterisk/files/patch-apps::Makefile')
-rw-r--r-- | net/asterisk/files/patch-apps::Makefile | 39 |
1 files changed, 26 insertions, 13 deletions
diff --git a/net/asterisk/files/patch-apps::Makefile b/net/asterisk/files/patch-apps::Makefile index 901ba694c33a..00b77dfe2434 100644 --- a/net/asterisk/files/patch-apps::Makefile +++ b/net/asterisk/files/patch-apps::Makefile @@ -1,22 +1,24 @@ $FreeBSD$ ---- apps/Makefile.orig Mon Jan 12 03:56:38 2004 -+++ apps/Makefile Fri Jan 30 01:47:34 2004 -@@ -59,17 +59,17 @@ +--- apps/Makefile.orig Sat Sep 25 00:32:56 2004 ++++ apps/Makefile Sun Oct 10 16:20:06 2004 +@@ -40,7 +40,7 @@ + #APPS+=app_rpt.so + + APPS+=$(shell if [ -f /usr/include/linux/zaptel.h ]; then echo "app_zapras.so app_meetme.so app_flash.so app_zapbarge.so app_zapscan.so" ; fi) +-APPS+=$(shell if [ -f /usr/local/include/zaptel.h ]; then echo "app_zapras.so app_meetme.so app_flash.so app_zapbarge.so app_zapscan.so" ; fi) ++APPS+=$(shell if [ -f $(LOCALBASE)/include/zaptel.h ]; then echo "app_zapras.so app_meetme.so app_flash.so app_zapbarge.so app_zapscan.so" ; fi) + APPS+=$(shell if [ -f /usr/include/osp/osp.h ]; then echo "app_osplookup.so" ; fi) + + CFLAGS+=-fPIC +@@ -65,12 +65,12 @@ $(CC) $(SOLINK) -o $@ $< -ltonezone install: all - for x in $(APPS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(MODULES_DIR) ; done + for x in $(APPS); do $(BSD_INSTALL_PROGRAM) $$x $(DESTDIR)$(MODULES_DIR) ; done - - app_todd.o: app_todd.c -- gcc -pipe -O6 -g -Iinclude -I../include -D_REENTRANT -march=i586 -DDO_CRASH -c -o app_todd.o app_todd.c -+ $(CC) $(CFLAGS) -Iinclude -I../include -D_REENTRANT -DDO_CRASH -c -o app_todd.o app_todd.c - - app_todd.so: app_todd.o -- $(CC) $(SOLINK) -o $@ $< -L/usr/local/ssl/lib -lssl -lcrypto -+ $(CC) $(SOLINK) -o $@ $< -lssl -lcrypto + rm -f $(DESTDIR)$(MODULES_DIR)/app_datetime.so app_voicemail.so : app_voicemail.o ifeq ($(USE_MYSQL_VM_INTERFACE),1) @@ -25,11 +27,22 @@ $FreeBSD$ else ifeq ($(USE_POSTGRES_VM_INTERFACE),1) $(CC) $(SOLINK) -o $@ $(MLFLAGS) $< -lpq -@@ -88,7 +88,7 @@ +@@ -80,16 +80,16 @@ + endif + + app_sql_postgres.o: app_sql_postgres.c +- $(CC) -pipe -I/usr/local/pgsql/include $(CFLAGS) -c -o app_sql_postgres.o app_sql_postgres.c ++ $(CC) -I$(LOCALBASE)/include/pgsql $(CFLAGS) -c -o app_sql_postgres.o app_sql_postgres.c + + app_sql_postgres.so: app_sql_postgres.o +- $(CC) $(SOLINK) -o $@ $< -L/usr/local/pgsql/lib -lpq ++ $(CC) $(SOLINK) -o $@ $< -L$(LOCALBASE)/lib -lpq + + app_sql_odbc.so: app_sql_odbc.o $(CC) $(SOLINK) -o $@ $< -lodbc look: look.c -- gcc -pipe -O6 -g look.c -o look -lncurses +- $(CC) -pipe -O6 -g look.c -o look -lncurses + $(CC) $(CFLAGS) look.c -o look -lncurses ifneq ($(wildcard .depend),) |