diff --git a/math/libsemigroups/Makefile b/math/libsemigroups/Makefile index 5f7d6b21856bd..11cdf8e22fd62 100644 --- a/math/libsemigroups/Makefile +++ b/math/libsemigroups/Makefile @@ -24,12 +24,17 @@ CONFIGURE_ARGS= --enable-fmt --with-external-fmt=yes \ USE_LDCONFIG= yes TEST_TARGET= check +OPTIONS_DEFINE= NATIVE + .include .if ${ARCH} != amd64 CONFIGURE_ARGS+= --disable-hpcombi .endif +post-patch-NATIVE-off: + @${REINPLACE_CMD} -e 's/-march=native/-march=default/' ${WRKSRC}/m4/ax_check_hpcombi.m4 + pre-configure: .if ${ARCH} == amd64 ${REINPLACE_CMD} -e 's|$$srcdir/extern/HPCombi|${LOCALBASE}/share/HPCombi|' \