aboutsummaryrefslogtreecommitdiffstats
path: root/net/zaptel12
diff options
context:
space:
mode:
authormnag <mnag@FreeBSD.org>2005-11-02 03:34:00 +0800
committermnag <mnag@FreeBSD.org>2005-11-02 03:34:00 +0800
commit92344f094c9b44e23a35f1d395f1c64e545a304f (patch)
treea4dde50071a6985a6740e1bdf522b317c4c4a74e /net/zaptel12
parent69be74139c45b87ac599e5639f0cd31642e82f28 (diff)
downloadfreebsd-ports-gnome-92344f094c9b44e23a35f1d395f1c64e545a304f.tar.gz
freebsd-ports-gnome-92344f094c9b44e23a35f1d395f1c64e545a304f.tar.zst
freebsd-ports-gnome-92344f094c9b44e23a35f1d395f1c64e545a304f.zip
Fix build in 4.x
PR: 87550 Approved by: sobomax (maintainer timeout, 15 days)
Diffstat (limited to 'net/zaptel12')
-rw-r--r--net/zaptel12/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/net/zaptel12/Makefile b/net/zaptel12/Makefile
index 13bf9a2e09fe..53878fb30bdc 100644
--- a/net/zaptel12/Makefile
+++ b/net/zaptel12/Makefile
@@ -17,6 +17,8 @@ COMMENT= A FreeBSD Driver for FXO, FXS, BRI and PRI Telephony Cards
LIB_DEPENDS= newt.51:${PORTSDIR}/devel/newt
+USE_REINPLACE= yes
+
NO_PACKAGE= Should be in sync with the kernel to work correctly
ONLY_FOR_ARCHS= i386
@@ -31,6 +33,11 @@ pre-everything::
${FALSE}; \
fi
+post-patch:
+ @${REINPLACE_CMD} -e "s|<getopt.h>|<unistd.h>|g" \
+ ${WRKSRC}/test/ztmonitor.c ${WRKSRC}/test/zttool.c \
+ ${WRKSRC}/ztcfg/ztcfg.c
+
pre-install:
@${SED} 's|%%PREFIX%%|${PREFIX}|g' ${PKGDIR}/pkg-message > \
${PKGMESSAGE}