ports/math/flint2/Makefile
Thierry Thomas e54e2c695b */*: bump PORTREVISION after OpenBLAS upgrade
Remark: this souldn’t be necessary, because the version of the library is the
same, but due to many changes between these releases, it is safer this way.

PR:		284314
2025-01-28 17:42:55 +01:00

35 lines
993 B
Makefile

PORTNAME= flint
DISTVERSION= 2.9.0 # FLINT is known to change its API. When upgrading please check that it does not break its consumers (e.g. math/e-antic)
PORTREVISION= 4
CATEGORIES= math
MASTER_SITES= http://www.flintlib.org/
PKGNAMESUFFIX= 2
MAINTAINER= yuri@FreeBSD.org
COMMENT= Fast library for number theory
WWW= https://www.flintlib.org/
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libgmp.so:math/gmp \
libmpfr.so:math/mpfr \
libopenblas.so:math/openblas
USES= cmake compiler:c++11-lang python:build
USE_LDCONFIG= yes
OPTIONS_DEFINE= NTL
OPTIONS_DEFAULT= NTL
NTL_DESC= Victor Shoup's Number Theory Library
NTL_CMAKE_BOOL= WITH_NTL
NTL_LIB_DEPENDS= libntl.so:math/ntl
do-test:
@cd ${BUILD_WRKSRC} && \
${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DBUILD_TESTING: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>