diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2015-08-25 19:14:08 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2015-08-25 19:14:08 +0800 |
commit | c80d15674ffa5a1a3828b0673b13a23e5f6b7508 (patch) | |
tree | 0dce9c9fda6ea40ef2d0e81eb0b38f88b1fd8b9a /net | |
parent | d375052c2c2d45f2f771c21ade1524b01b029e9b (diff) | |
download | freebsd-ports-gnome-c80d15674ffa5a1a3828b0673b13a23e5f6b7508.tar.gz freebsd-ports-gnome-c80d15674ffa5a1a3828b0673b13a23e5f6b7508.tar.zst freebsd-ports-gnome-c80d15674ffa5a1a3828b0673b13a23e5f6b7508.zip |
- Add LICENSE_FILE
- Fix library installation (use INSTALL_LIB, install into PREFIX)
- Switch to options helpers
Diffstat (limited to 'net')
-rw-r--r-- | net/py-libnet/Makefile | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/net/py-libnet/Makefile b/net/py-libnet/Makefile index f0cd84802c77..91dfcaa3f65a 100644 --- a/net/py-libnet/Makefile +++ b/net/py-libnet/Makefile @@ -3,7 +3,7 @@ PORTNAME= libnet PORTVERSION= 1.1 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= net python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -11,6 +11,7 @@ MAINTAINER= sbz@FreeBSD.org COMMENT= Python module for the libnet packet construction library LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libnet.so:${PORTSDIR}/net/libnet @@ -27,16 +28,14 @@ EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME} OPTIONS_DEFINE= EXAMPLES OSVER= uname -r -.include <bsd.port.options.mk> - do-install: - ${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR} - ${INSTALL_DATA} \ + ${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} + ${INSTALL_LIB} \ ${WRKSRC}/build/lib.${OPSYS:tl}-$$(${OSVER})-${ARCH}-${PYTHON_VER}/${PORTNAME}.so \ - ${STAGEDIR}${PYTHON_SITELIBDIR} -.if ${PORT_OPTIONS:MEXAMPLES} + ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} + +do-install-EXAMPLES-on: ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} (cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}) -.endif .include <bsd.port.mk> |