opnsense-ports/net/py-miniupnpc/Makefile
Franco Fichtner d543c3ab93 */*: sync with upstream
Taken from: FreeBSD
2016-04-02 16:03:17 +02:00

25 lines
532 B
Makefile

# $FreeBSD$
CATEGORIES= net python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
COMMENT= Python module for miniupnpc
BUILD_DEPENDS= ${NONEXISTENT}:net/miniupnpc:build
MASTERDIR= ${.CURDIR}/../miniupnpc
USES= python
USE_PYTHON= autoplist distutils
WRKDIR= ${WRKDIRPREFIX}${MASTERDIR}/work
PLIST= ${.CURDIR}/pkg-plist
post-patch:
${REINPLACE_CMD} 's/\(version\)="[^"]*"/\1="${PORTVERSION}"/' \
${WRKSRC}/setup.py
post-install:
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/miniupnpc.so
.include "${MASTERDIR}/Makefile"