freebsd-ports/net/py-libnet/Makefile

48 lines
1.1 KiB
Makefile
Raw Normal View History

# Created by: ijliao
# $FreeBSD$
PORTNAME= libnet
PORTVERSION= 1.1
PORTREVISION= 3
CATEGORIES= net python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= sbz@FreeBSD.org
2003-02-20 20:00:52 +01:00
COMMENT= Python module for the libnet packet construction library
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libnet.so:net/libnet
USES= python
USE_PYTHON= distutils pythonprefix
2004-12-16 13:22:26 +01:00
USE_GITHUB= yes
GH_ACCOUNT= allfro
GH_PROJECT= pylibnet
GH_TAGNAME= b2fa552
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
OPTIONS_DEFINE= EXAMPLES
OSVER= uname -r
BROKEN_aarch64= Fails to install: lib.freebsd-11.0-RELEASE-p1-aarch64-2.7/libnet.so: No such file or directory
BROKEN_powerpc64= Does not build
post-patch:
@${REINPLACE_CMD} 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/setup.py
do-install:
${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
${INSTALL_LIB} \
${WRKSRC}/build/lib.${OPSYS:tl}-$$(${OSVER})-${ARCH}-${PYTHON_VER}/${PORTNAME}.so \
${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
do-install-EXAMPLES-on:
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
.include <bsd.port.mk>