aboutsummaryrefslogtreecommitdiffstats
path: root/net/zaptel12
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2004-10-18 01:46:34 +0800
committersobomax <sobomax@FreeBSD.org>2004-10-18 01:46:34 +0800
commit5afb7d5be8fcbc46177741e082bc45849839f973 (patch)
tree9a2a1121618b21692d2586180a35ef283df95592 /net/zaptel12
parente66b34d102e4129073d2e31ea664b9d6d02aba90 (diff)
downloadfreebsd-ports-graphics-5afb7d5be8fcbc46177741e082bc45849839f973.tar.gz
freebsd-ports-graphics-5afb7d5be8fcbc46177741e082bc45849839f973.tar.zst
freebsd-ports-graphics-5afb7d5be8fcbc46177741e082bc45849839f973.zip
Enable building on 4.x.
Diffstat (limited to 'net/zaptel12')
-rw-r--r--net/zaptel12/Makefile8
-rw-r--r--net/zaptel12/files/patch-test::Makefile31
-rw-r--r--net/zaptel12/files/patch-zaptel::zaptel.h16
-rw-r--r--net/zaptel12/files/patch-ztcfg::Makefile26
4 files changed, 74 insertions, 7 deletions
diff --git a/net/zaptel12/Makefile b/net/zaptel12/Makefile
index 51cc74dbcce..ca0857e276c 100644
--- a/net/zaptel12/Makefile
+++ b/net/zaptel12/Makefile
@@ -23,12 +23,6 @@ ONLY_FOR_ARCHS= i386
PKGMESSAGE= ${WRKSRC}/.MESSAGE
MAKE_ENV= KMODDIR=${PREFIX}/lib/zaptel
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} < 500000
-IGNORE= "requires FreeBSD 5.x to build."
-.endif
-
pre-everything::
@if [ ! -f /usr/src/sys/Makefile ]; then \
${ECHO_MSG} ">> The zaptel port needs FreeBSD kernel source code to compile."; \
@@ -48,4 +42,4 @@ post-install:
@${INSTALL_SCRIPT} ${WRKDIR}/zaptel.sh.sample ${PREFIX}/etc/rc.d
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/net/zaptel12/files/patch-test::Makefile b/net/zaptel12/files/patch-test::Makefile
new file mode 100644
index 00000000000..c8e18155479
--- /dev/null
+++ b/net/zaptel12/files/patch-test::Makefile
@@ -0,0 +1,31 @@
+
+$FreeBSD$
+
+--- test/Makefile
++++ test/Makefile
+@@ -7,17 +7,17 @@
+
+ all: zttool fxo_test ztmonitor zttest
+
+-fxo_test: fxo_test.o
+- ${CC} ${CFLAGS} -o fxo_test fxo_test.o -ltonezone -L../ztcfg
++fxo_test: fxo_test.c
++ ${CC} ${CFLAGS} -o fxo_test fxo_test.c -ltonezone -L../ztcfg
+
+-ztmonitor: ztmonitor.o
+- ${CC} ${CFLAGS} -o ztmonitor ztmonitor.o -ltonezone -L../ztcfg
++ztmonitor: ztmonitor.c
++ ${CC} ${CFLAGS} -o ztmonitor ztmonitor.c -ltonezone -L../ztcfg
+
+-zttool: zttool.o
+- ${CC} ${CFLAGS} -o zttool zttool.o -ltonezone -L${LOCALBASE}/lib -lnewt -L../ztcfg
++zttool: zttool.c
++ ${CC} ${CFLAGS} -o zttool zttool.c -ltonezone -L${LOCALBASE}/lib -lnewt -L../ztcfg
+
+-zttest: zttest.o
+- ${CC} ${CFLAGS} -o zttest zttest.o
++zttest: zttest.c
++ ${CC} ${CFLAGS} -o zttest zttest.c
+
+ clean:
+ rm -f fxo_test ztmonitor zttool ztls zttest *.o
diff --git a/net/zaptel12/files/patch-zaptel::zaptel.h b/net/zaptel12/files/patch-zaptel::zaptel.h
new file mode 100644
index 00000000000..b25d6f31755
--- /dev/null
+++ b/net/zaptel12/files/patch-zaptel::zaptel.h
@@ -0,0 +1,16 @@
+
+$FreeBSD$
+
+--- zaptel/zaptel.h.orig
++++ zaptel/zaptel.h
+@@ -34,9 +34,9 @@
+ #if !defined(_ZAPTEL_H)
+ #define _ZAPTEL_H
+
++#ifdef _KERNEL
+ #include "os.h"
+
+-#ifdef _KERNEL
+ #include <sys/select.h>
+ #include <sys/param.h>
+
diff --git a/net/zaptel12/files/patch-ztcfg::Makefile b/net/zaptel12/files/patch-ztcfg::Makefile
new file mode 100644
index 00000000000..cc147a290b1
--- /dev/null
+++ b/net/zaptel12/files/patch-ztcfg::Makefile
@@ -0,0 +1,26 @@
+
+$FreeBSD$
+
+--- ztcfg/Makefile
++++ ztcfg/Makefile
+@@ -10,10 +10,19 @@
+
+ all: ztcfg libtonezone.a
+
+-ztcfg: ztcfg.o tonezone.o zonedata.o
++ztcfg: ztcfg.o tonezone.o zonedata.o
+ ${CC} ${CFLAGS} -o ztcfg ztcfg.o tonezone.o zonedata.o -lm
+
+ ztcfg.c: ztcfg.h
++
++ztcfg.o: ztcfg.c
++ ${CC} ${CFLAGS} -o ztcfg.o -c ztcfg.c
++
++tonezone.o: tonezone.c
++ ${CC} ${CFLAGS} -o tonezone.o -c tonezone.c
++
++zonedata.o: zonedata.c
++ ${CC} ${CFLAGS} -o zonedata.o -c zonedata.c
+
+ libtonezone.a: tonezone.o
+ ar r libtonezone.a tonezone.o zonedata.o