Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Jun 2019 11:15:08 +0000 (UTC)
From:      Mark Linimon <linimon@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r504785 - head/biology/gmap
Message-ID:  <201906211115.x5LBF8jI087429@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201906211115.x5LBF8jI087429>