From cb7689bed31a3b881b0b5dec93e882daa7d6fec8 Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Fri, 21 Jul 2023 01:01:09 -0700 Subject: [PATCH] math/libsemigroups: Add NATIVE option PR: 272499 Approved by: thierry@ (maintainer) --- math/libsemigroups/Makefile | 5 +++++ 1 file changed, 5 insertions(+) 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|' \