Skip to content

Commit

Permalink
math/libsemigroups: Add NATIVE option
Browse files Browse the repository at this point in the history
PR:		272499
Approved by:	thierry@ (maintainer)
  • Loading branch information
yurivict committed Jul 21, 2023
1 parent 8bafc25 commit cb7689b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions math/libsemigroups/Makefile
Expand Up @@ -24,12 +24,17 @@ CONFIGURE_ARGS= --enable-fmt --with-external-fmt=yes \
USE_LDCONFIG= yes
TEST_TARGET= check

OPTIONS_DEFINE= NATIVE

.include <bsd.port.pre.mk>

.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|' \
Expand Down

0 comments on commit cb7689b

Please sign in to comment.