diff options
Diffstat (limited to 'math/sleef/Makefile')
| -rw-r--r-- | math/sleef/Makefile | 43 |
1 files changed, 32 insertions, 11 deletions
diff --git a/math/sleef/Makefile b/math/sleef/Makefile index 7c0449200a28..2b4d0d14593b 100644 --- a/math/sleef/Makefile +++ b/math/sleef/Makefile @@ -1,8 +1,9 @@ PORTNAME= sleef DISTVERSION= 3.9.0 +PORTREVISION= 1 CATEGORIES= math -MAINTAINER= thierry@FreeBSD.org +MAINTAINER= ports@FreeBSD.org COMMENT= SIMD Library for Evaluating Elementary Functions, vectorized libm WWW= https://sleef.org @@ -10,21 +11,41 @@ LICENSE= BSL LICENSE_FILE= ${WRKSRC}/LICENSE.txt BUILD_DEPENDS= tlfloat>0:math/tlfloat -LIB_DEPENDS= libgmp.so:math/gmp \ - libmpfr.so:math/mpfr \ - libfftw3.so:math/fftw3 -TEST_DEPENDS= tlfloat>0:math/tlfloat - -USES= cmake:testing compiler:c11 pathfix pkgconfig ssl -CMAKE_ARGS= -DSLEEF_BUILD_SHARED_LIBS:BOOL=ON \ - -DSLEEF_DISABLE_FLOAT128:BOOL=ON +TEST_DEPENDS= fftw3>0:math/fftw3 \ + fftw3-float>0:math/fftw3-float \ + gmp>0:math/gmp \ + mpfr>0:math/mpfr \ + tlfloat>0:math/tlfloat + +USES= cmake:testing compiler:c11 pathfix pkgconfig +.if make(test) +USES+= ssl +.endif USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= shibatch -CMAKE_OFF= SLEEF_BUILD_TESTS -CMAKE_TESTING_ON= SLEEF_BUILD_TESTS +# CPUTYPE breaks unit tests and presumably the library itself +.if defined(CPUTYPE) && ${ARCH} == amd64 +CPUTYPE= +.endif + +CMAKE_TESTING_OFF= CMAKE_DISABLE_FIND_PACKAGE_OpenSSL \ + SLEEF_DISABLE_FFTW +CMAKE_TESTING_ON= SLEEF_BUILD_TESTS \ + SLEEF_ENABLE_MPFR \ + SLEEF_ENABLE_SSL + +CMAKE_OFF= SLEEF_BUILD_TESTS \ + SLEEF_ENABLE_MPFR \ + SLEEF_ENABLE_SSL + +CMAKE_ON= CMAKE_DISABLE_FIND_PACKAGE_OpenSSL \ + SLEEF_BUILD_SHARED_LIBS \ + SLEEF_DISABLE_FLOAT128 \ + SLEEF_DISABLE_FFTW \ + SLEEF_ENABLE_TLFLOAT .include <bsd.port.options.mk> |
