1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-06 01:57:40 +00:00
freebsd-ports/math/primecount/Makefile
2021-12-05 19:56:58 +01:00

32 lines
758 B
Makefile

# Created by: thierry@pompo.net
PORTNAME= primecount
DISTVERSIONPREFIX= v
DISTVERSION= 7.2
CATEGORIES= math
MAINTAINER= thierry@FreeBSD.org
COMMENT= Fast prime counting function implementations
LICENSE= BSD2CLAUSE
BUILD_DEPENDS= libdivide>0:math/libdivide
LIB_DEPENDS= libprimesieve.so:math/primesieve
USE_GITHUB= yes
GH_ACCOUNT= kimwalisch
USES= cmake compiler:c++11-lang
USE_LDCONFIG= yes
CMAKE_ON= BUILD_SHARED_LIBS
CMAKE_OFF= BUILD_LIBPRIMESIEVE BUILD_STATIC_LIBS
do-test:
cd ${BUILD_WRKSRC} && \
${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DBUILD_TESTS:BOOL=ON ${CMAKE_SOURCE_PATH} && \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test
.include <bsd.port.mk>