svn commit: r504785 - head/biology/gmap
Mark Linimon
linimon at FreeBSD.org
Fri Jun 21 11:15:09 UTC 2019
Author: linimon
Date: Fri Jun 21 11:15:08 2019
New Revision: 504785
URL: https://svnweb.freebsd.org/changeset/ports/504785
Log:
Enable workaround for building on powerpc64.
Autoconf reports that HAVE_ASM_BSR is true (1). However, it's a false
positive.
I do not have enough knowledge of autoconf to fix this problem correctly,
so fix src/config.h in post-configure. Patches welcome.
A proper fix will most likely also fix the build on other tier-2 archs,
but I have not taken the time to test that yet.
Approved by: portmgr (tier-2 blanket)
Modified:
head/biology/gmap/Makefile
Modified: head/biology/gmap/Makefile
==============================================================================
--- head/biology/gmap/Makefile Fri Jun 21 11:04:10 2019 (r504784)
+++ head/biology/gmap/Makefile Fri Jun 21 11:15:08 2019 (r504785)
@@ -19,7 +19,6 @@ BROKEN_aarch64= invokes x86 assembler
BROKEN_armv6= invokes x86 assembler
BROKEN_armv7= invokes x86 assembler
BROKEN_mips64= invokes x86 assembler
-BROKEN_powerpc64= invokes x86 assembler
BROKEN_sparc64= invokes x86 assembler
USES= gmake perl5
@@ -31,10 +30,17 @@ OPTIONS_DEFINE= SIMD
SIMD_CONFIGURE_OFF= --disable-builtin-popcount --disable-simd
+.include <bsd.port.pre.mk>
+
# shebang_fix operates during patch.
# These scripts are created during configure.
post-configure:
${REINPLACE_CMD} -e 's|/usr/bin/perl|${PERL}|g' \
${WRKSRC}/Makefile ${WRKSRC}/util/*.pl
+.if ${ARCH:Mpowerpc*}
+# XXX MCL unknown why this shows up as true. knowledge of autoconf needed.
+ ${REINPLACE_CMD} -e 's|#define HAVE_ASM_BSR 1||' \
+ ${WRKSRC}/src/config.h
+.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
More information about the svn-ports-head
mailing list