1PORTNAME= sleef 2DISTVERSION= 3.9.0 3PORTREVISION= 1 4CATEGORIES= math 5 6MAINTAINER= ports@MidnightBSD.org 7COMMENT= SIMD Library for Evaluating Elementary Functions, vectorized libm 8WWW= https://sleef.org 9 10LICENSE= BSL-1.0 11LICENSE_FILE= ${WRKSRC}/LICENSE.txt 12 13BUILD_DEPENDS= tlfloat>0:math/tlfloat 14TEST_DEPENDS= fftw3>0:math/fftw3 \ 15 fftw3-float>0:math/fftw3-float \ 16 gmp>0:math/gmp \ 17 mpfr>0:math/mpfr \ 18 tlfloat>0:math/tlfloat 19 20USES= cmake:testing compiler:c11 pathfix pkgconfig 21.if make(test) 22USES+= ssl 23.endif 24USE_LDCONFIG= yes 25 26USE_GITHUB= yes 27GH_ACCOUNT= shibatch 28 29# CPUTYPE breaks unit tests and presumably the library itself 30.if defined(CPUTYPE) && ${ARCH} == amd64 31CPUTYPE= 32.endif 33 34CMAKE_TESTING_OFF= CMAKE_DISABLE_FIND_PACKAGE_OpenSSL \ 35 SLEEF_DISABLE_FFTW 36CMAKE_TESTING_ON= SLEEF_BUILD_TESTS \ 37 SLEEF_ENABLE_MPFR \ 38 SLEEF_ENABLE_SSL 39 40CMAKE_OFF= SLEEF_BUILD_TESTS \ 41 SLEEF_ENABLE_MPFR \ 42 SLEEF_ENABLE_SSL 43 44CMAKE_ON= CMAKE_DISABLE_FIND_PACKAGE_OpenSSL \ 45 SLEEF_BUILD_SHARED_LIBS \ 46 SLEEF_DISABLE_FLOAT128 \ 47 SLEEF_DISABLE_FFTW \ 48 SLEEF_ENABLE_TLFLOAT 49 50.include <bsd.mport.options.mk> 51 52.if ${ARCH:Mpowerpc64*} || ${ARCH:Marmv?} 53PLIST_SUB+= GNUABI="@comment " 54.else 55PLIST_SUB+= GNUABI="" 56.endif 57 58.include <bsd.port.mk> 59