summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net/libnet10/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/net/libnet10/Makefile b/net/libnet10/Makefile
index cc82ce5ae141..a60045f0ce88 100644
--- a/net/libnet10/Makefile
+++ b/net/libnet10/Makefile
@@ -23,6 +23,13 @@ WRKSRC= ${WRKDIR}/Libnet-${PORTVERSION}
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX}
MAN3= libnet${PKGNAMESUFFIX}.3
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == "amd64"
+post-patch:
+ find ${WRKDIR} -name '*.[hc]' | xargs ${REINPLACE_CMD} -e 's/long/int/g'
+.endif
+
post-install:
${INSTALL_MAN} ${WRKSRC}/doc/libnet.3 \
${MANPREFIX}/man/man3/libnet${PKGNAMESUFFIX}.3
@@ -39,4 +46,4 @@ post-install:
.endfor
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>