Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Aug 2019 14:23:23 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r508177 - head/biology/hhsuite
Message-ID:  <201908051423.x75ENNYp078011@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pkubaj
Date: Mon Aug  5 14:23:23 2019
New Revision: 508177
URL: https://svnweb.freebsd.org/changeset/ports/508177

Log:
  biology/hhsuite: fix build on powerpc64
  
  This port can't use Altivec. Instead, it's possible to use GCC's translation layer from SSE. Adjust build flags to do it.
  
  PR:		239645
  Approved by:	yuri (maintainer), tcberner (mentor)
  Differential Revision:	https://reviews.freebsd.org/D21160

Modified:
  head/biology/hhsuite/Makefile

Modified: head/biology/hhsuite/Makefile
==============================================================================
--- head/biology/hhsuite/Makefile	Mon Aug  5 14:21:30 2019	(r508176)
+++ head/biology/hhsuite/Makefile	Mon Aug  5 14:23:23 2019	(r508177)
@@ -16,7 +16,7 @@ BUILD_DEPENDS=	openmpi>0:net/openmpi
 LIB_DEPENDS=	libomp.so:devel/openmp
 RUN_DEPENDS=	openmpi>0:net/openmpi
 
-USES=		cmake perl5 python shebangfix
+USES=		cmake compiler:c++11-lang perl5 python shebangfix
 SHEBANG_GLOB=	*.pl *.py
 USE_GITHUB=	yes
 GH_ACCOUNT=	soedinglab
@@ -26,8 +26,13 @@ LDFLAGS+=	-Wl,-rpath,${LOCALBASE}/mpi/openmpi/lib -L${
 
 .include <bsd.port.options.mk>
 
-.if ${ARCH} == amd64 || ${ARCH} == i386
+.if ${ARCH} == amd64 || ${ARCH} == i386 || ${ARCH} == powerpc64
 CMAKE_ON=	HAVE_SSE2
+.endif
+
+.if ${ARCH} == powerpc64
+post-patch:
+	${REINPLACE_CMD} -e 's/-msse -msse2/-D_ARCH_PWR8 -DNO_WARN_X86_INTRINSICS -maltivec -mpower8-vector -mvsx/g' ${WRKSRC}/src/CMakeLists.txt
 .endif
 
 .include <bsd.port.mk>



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