mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
37 lines
866 B
Makefile
37 lines
866 B
Makefile
# Created by: thierry@pompo.net
|
|
|
|
CATEGORIES= net python
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
COMMENT= Python module for libdnet
|
|
|
|
LIB_DEPENDS= libdnet.so:net/libdnet
|
|
|
|
USES= autoreconf libtool python:3.6+
|
|
|
|
MASTERDIR= ${.CURDIR}/../libdnet
|
|
INSTALL_WRKSRC= ${WRKSRC}/python
|
|
DESCR= ${.CURDIR}/pkg-descr
|
|
PLIST= ${NONEXISTENT}
|
|
PLIST_FILES= ${PYTHON_SITELIBDIR}/dnet%%PYTHON_EXT_SUFFIX%%.so \
|
|
${PYTHON_SITELIBDIR}/dnet-${PORTVERSION}-py${PYTHON_VER}.egg-info
|
|
|
|
LIBDNET_SLAVE= yes
|
|
|
|
USE_PYTHON= cython flavors
|
|
CONFIGURE_ARGS= --with-python=${PYTHON_CMD}
|
|
|
|
.if defined(MAINTAINER_MODE)
|
|
regression-test: install
|
|
${PYTHON_CMD} ${INSTALL_WRKSRC}/test.py
|
|
.endif
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} 's|%%CYTHON%%|cython-${PYTHON_VER}|g' \
|
|
${WRKSRC}/python/Makefile.am
|
|
|
|
post-install:
|
|
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/dnet*.so
|
|
|
|
.include "${MASTERDIR}/Makefile"
|