34 lines
778 B
Makefile
34 lines
778 B
Makefile
PORTNAME= primecountpy
|
|
PORTVERSION= 0.2.1
|
|
CATEGORIES= math python
|
|
MASTER_SITES= PYPI
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= thierry@FreeBSD.org
|
|
COMMENT= Primecount Cython interface
|
|
WWW= https://pypi.org/project/primecountpy/
|
|
|
|
LICENSE= GPLv3
|
|
|
|
BUILD_DEPENDS= ${PYDEPS}
|
|
LIB_DEPENDS= libprimecount.so:math/primecount
|
|
RUN_DEPENDS= ${PYDEPS}
|
|
|
|
USES= cmake:indirect localbase meson pkgconfig python
|
|
USE_PYTHON= cython
|
|
BINARY_ALIAS= cython=cython-${PYTHON_VER}
|
|
|
|
.if !defined(WITH_DEBUG)
|
|
LDFLAGS+= -s
|
|
.endif
|
|
|
|
PYDEPS= ${PYTHON_PKGNAMEPREFIX}cysignals>0:devel/py-cysignals@${PY_FLAVOR}
|
|
|
|
post-build:
|
|
${FIND} ${WRKSRC} -name "*gnu.so" -delete -o -name "*313.pyc" -delete
|
|
|
|
post-stage:
|
|
${FIND} ${STAGEDIR} -name "*.cpp" -delete -o -name "*.pyx" -delete
|
|
|
|
.include <bsd.port.mk>
|