diff --git a/devel/simde/Makefile b/devel/simde/Makefile index 893a5c49941d..cb1ba08b466e 100644 --- a/devel/simde/Makefile +++ b/devel/simde/Makefile @@ -1,28 +1,29 @@ PORTNAME= simde DISTVERSIONPREFIX= v DISTVERSION= 0.8.2 +PORTREVISION= 1 CATEGORIES= devel MAINTAINER= yuri@FreeBSD.org COMMENT= Header-only library for SIMD intrinsics WWW= https://github.com/simd-everywhere/simde LICENSE= MIT LICENSE_FILE= ${WRKSRC}/COPYING USES= meson USE_GITHUB= yes GH_ACCOUNT= simd-everywhere GH_TUPLE= nemequ:munit:da8f73412998e4f1adf1100dc187533a51af77fd:nemequ_munit/test/munit MESON_ARGS= -Dtests=false NO_BUILD= yes NO_ARCH= yes do-test: # tests fail to link, see https://github.com/simd-everywhere/simde/issues/1014 @${RM} -r ${BUILD_WRKSRC}/* @cd ${CONFIGURE_WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${CONFIGURE_CMD} ${CONFIGURE_ARGS:S/Dtests=false/Dtests=true/} @cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${TEST_TARGET} .include diff --git a/devel/simde/files/patch-simde_simde-math.h b/devel/simde/files/patch-simde_simde-math.h new file mode 100644 index 000000000000..b79cfeb274bd --- /dev/null +++ b/devel/simde/files/patch-simde_simde-math.h @@ -0,0 +1,26 @@ +--- simde/simde-math.h.orig 2024-04-30 16:35:50 UTC ++++ simde/simde-math.h +@@ -1266,8 +1266,9 @@ simde_math_fpclass(double v, const int imm8) { + + #if !defined(simde_math_roundeven) + #if \ +- ((!defined(HEDLEY_EMSCRIPTEN_VERSION) || HEDLEY_EMSCRIPTEN_VERSION_CHECK(3, 1, 43)) && HEDLEY_HAS_BUILTIN(__builtin_roundeven)) || \ +- HEDLEY_GCC_VERSION_CHECK(10,0,0) ++ ((!defined(HEDLEY_EMSCRIPTEN_VERSION) || HEDLEY_EMSCRIPTEN_VERSION_CHECK(3, 1, 43)) && \ ++ HEDLEY_HAS_BUILTIN(__builtin_roundeven) && \ ++ (defined(__GLIBC__) && ((__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 25)))) + #define simde_math_roundeven(v) __builtin_roundeven(v) + #elif defined(simde_math_round) && defined(simde_math_fabs) + static HEDLEY_INLINE +@@ -1286,8 +1287,9 @@ simde_math_fpclass(double v, const int imm8) { + + #if !defined(simde_math_roundevenf) + #if \ +- ((!defined(HEDLEY_EMSCRIPTEN_VERSION) || HEDLEY_EMSCRIPTEN_VERSION_CHECK(3, 1, 43)) && HEDLEY_HAS_BUILTIN(__builtin_roundevenf)) || \ +- HEDLEY_GCC_VERSION_CHECK(10,0,0) ++ ((!defined(HEDLEY_EMSCRIPTEN_VERSION) || HEDLEY_EMSCRIPTEN_VERSION_CHECK(3, 1, 43)) && \ ++ HEDLEY_HAS_BUILTIN(__builtin_roundevenf) && \ ++ (defined(__GLIBC__) && ((__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 25)))) + #define simde_math_roundevenf(v) __builtin_roundevenf(v) + #elif defined(simde_math_roundf) && defined(simde_math_fabsf) + static HEDLEY_INLINE