mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-06 01:57:40 +00:00
fb6ad44756
Release notes at <https://github.com/kimwalisch/primecount/releases/tag/v7.2>.
32 lines
758 B
Makefile
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>
|