aboutsummaryrefslogtreecommitdiff
path: root/net/zaptel12/files/patch-ztcfg::Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net/zaptel12/files/patch-ztcfg::Makefile')
-rw-r--r--net/zaptel12/files/patch-ztcfg::Makefile38
1 files changed, 38 insertions, 0 deletions
diff --git a/net/zaptel12/files/patch-ztcfg::Makefile b/net/zaptel12/files/patch-ztcfg::Makefile
new file mode 100644
index 000000000000..718343538a15
--- /dev/null
+++ b/net/zaptel12/files/patch-ztcfg::Makefile
@@ -0,0 +1,38 @@
+
+$FreeBSD$
+
+--- ztcfg/Makefile.orig Wed Apr 28 04:27:36 2004
++++ ztcfg/Makefile Thu Apr 29 18:04:14 2004
+@@ -1,10 +1,10 @@
+-CFLAGS+= -I/usr/local/include -I. -I../zaptel -DUSE_LOCAL_INCLUDE=1
+-INSTALL=/usr/bin/install
++CFLAGS+= -I${.CURDIR} -I${.CURDIR}/../zaptel -I${PREFIX}/include -DUSE_LOCAL_INCLUDE=1 \
++ -DPREFIX=\"${PREFIX}\"
+
+ all: ztcfg libtonezone.a
+
+ ztcfg: ztcfg.o tonezone.o zonedata.o
+- $(CC) -o ztcfg ztcfg.o tonezone.o zonedata.o -lm -L.
++ $(CC) -o ztcfg ztcfg.o tonezone.o zonedata.o -lm -L${.CURDIR}
+
+ ztcfg.c: ztcfg.h
+
+@@ -12,10 +12,14 @@
+ ar r libtonezone.a tonezone.o zonedata.o
+
+ install:
+- $(INSTALL) -o root -g wheel -m 644 libtonezone.a /usr/local/lib/
+- $(INSTALL) -o root -g wheel -m 644 tonezone.h /usr/local/include/
+- $(INSTALL) -o root -g wheel -m 644 ../zaptel/zaptel.h /usr/include/
++ ${BSD_INSTALL_PROGRAM} ztcfg ${PREFIX}/bin
++ ${BSD_INSTALL_DATA} libtonezone.a ${PREFIX}/lib
++ ${BSD_INSTALL_DATA} tonezone.h ${PREFIX}/include
++ ${BSD_INSTALL_DATA} ${.CURDIR}/../zaptel/zaptel.h ${PREFIX}/include
++ ${BSD_INSTALL_DATA} zaptel.conf.sample ${PREFIX}/etc
++ if [ ! -f %B/zaptel.conf ]; then \
++ ${BSD_INSTALL_DATA} zaptel.conf.sample ${PREFIX}/etc/zaptel.conf; \
++ fi
+
+ clean:
+ rm -f *.o ztcfg *.a
+-