mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
- Add LICENSE_FILE
- Fix library installation (use INSTALL_LIB, install into PREFIX) - Switch to options helpers
This commit is contained in:
parent
d8bf0ca72f
commit
d71bef9775
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=395237
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user