aboutsummaryrefslogtreecommitdiff
path: root/net/py-libnet
diff options
context:
space:
mode:
Diffstat (limited to 'net/py-libnet')
-rw-r--r--net/py-libnet/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/net/py-libnet/Makefile b/net/py-libnet/Makefile
index 650eca2ed0a0..417e05612eb0 100644
--- a/net/py-libnet/Makefile
+++ b/net/py-libnet/Makefile
@@ -26,6 +26,12 @@ USE_PYTHON= yes
USE_GMAKE= yes
WRKSRC= ${WRKDIR}/${DISTNAME}/src
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == "amd64"
+BROKEN= "Does not compile on amd64 (tries to link non-PIC libnet.a into PIC shared library)"
+.endif
+
post-patch:
@${REINPLACE_CMD} -e "s,^CC,#CC,g ; \
s,%%PYTHON_INCLUDEDIR%%,${PYTHON_INCLUDEDIR},g ; \
@@ -36,4 +42,4 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/${file} ${PYTHON_SITELIBDIR}
.endfor
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>