aboutsummaryrefslogtreecommitdiff
path: root/net/py-miniupnpc
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2017-11-30 15:50:30 +0000
committerMathieu Arnold <mat@FreeBSD.org>2017-11-30 15:50:30 +0000
commit551be3c7231225ed9c26479af2b8914fb2ef0ea8 (patch)
treed296c82a71504382f4faefa0bf8d7be384ea1105 /net/py-miniupnpc
parent02f9c9be1699251467efc027f210049dfe14f9c5 (diff)
Notes
Diffstat (limited to 'net/py-miniupnpc')
-rw-r--r--net/py-miniupnpc/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/py-miniupnpc/Makefile b/net/py-miniupnpc/Makefile
index fb6cf0b4a4ad..20b014740792 100644
--- a/net/py-miniupnpc/Makefile
+++ b/net/py-miniupnpc/Makefile
@@ -12,13 +12,15 @@ MASTERDIR= ${.CURDIR}/../miniupnpc
USES= python
USE_PYTHON= autoplist distutils
-WRKDIR= ${WRKDIRPREFIX}${MASTERDIR}/${_WRKDIR}
PLIST= ${.CURDIR}/pkg-plist
post-patch:
${REINPLACE_CMD} 's/\(version\)="[^"]*"/\1="${PORTVERSION}"/' \
${WRKSRC}/setup.py
+pre-build:
+ ${CP} $$(make FLAVOR= -C ${MASTERDIR} -V WRKSRC)/libminiupnpc.a ${WRKSRC}
+
post-install:
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/miniupnpc.so