aboutsummaryrefslogtreecommitdiff
path: root/net/zaptel12
diff options
context:
space:
mode:
authorMarcus Alves Grando <mnag@FreeBSD.org>2005-11-01 19:34:00 +0000
committerMarcus Alves Grando <mnag@FreeBSD.org>2005-11-01 19:34:00 +0000
commitd49f2e8522d51c8451fd1c4bcdad3e0b35628523 (patch)
tree25d7d32ae897e1b0b7fb44aa77b9e557dde51a33 /net/zaptel12
parent07a219fd05767136b3a01a76307835a346337d28 (diff)
downloadports-d49f2e8522d51c8451fd1c4bcdad3e0b35628523.tar.gz
ports-d49f2e8522d51c8451fd1c4bcdad3e0b35628523.zip
Fix build in 4.x
PR: 87550 Approved by: sobomax (maintainer timeout, 15 days)
Notes
Notes: svn path=/head/; revision=146936
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}