Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Jul 2021 13:15:30 GMT
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: f1475a456c82 - main - biology/hhsuite: fix build on powerpc64*
Message-ID:  <202107081315.168DFU6T025301@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=f1475a456c8257a759010ee0b949bde85ad6ad4f

commit f1475a456c8257a759010ee0b949bde85ad6ad4f
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2021-07-08 13:13:54 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2021-07-08 13:13:54 +0000

    biology/hhsuite: fix build on powerpc64*
    
    hhsuite now supports VSX.
---
 biology/hhsuite/Makefile | 14 ++++----------
 1 file changed, 4 insertions(+), 10 deletions(-)

diff --git a/biology/hhsuite/Makefile b/biology/hhsuite/Makefile
index 34aca8ae84ab..15225f220854 100644
--- a/biology/hhsuite/Makefile
+++ b/biology/hhsuite/Makefile
@@ -11,7 +11,7 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 
 LIB_DEPENDS=	libmpi.so:net/openmpi
 
-USES=		cmake perl5 python shebangfix
+USES=		compiler:c++11-lang cmake perl5 python shebangfix
 SHEBANG_GLOB=	*.pl *.py
 USE_GITHUB=	yes
 GH_ACCOUNT=	soedinglab
@@ -21,16 +21,10 @@ LDFLAGS+=	-Wl,-rpath,${LOCALBASE}/mpi/openmpi/lib -L${LOCALBASE}/mpi/openmpi/lib
 
 .include <bsd.port.options.mk>
 
-.if ${ARCH} == amd64 || ${ARCH} == i386 || ${ARCH} == powerpc64
+.if ${ARCH} == amd64 || ${ARCH} == i386
 CMAKE_ON=	HAVE_SSE2
-.endif
-
-.if ${ARCH} == powerpc64
-USES+=		compiler:gcc-c++11-lib
-post-patch:
-	${REINPLACE_CMD} -e 's/-msse -msse2/-D_ARCH_PWR8 -DNO_WARN_X86_INTRINSICS -maltivec -mpower8-vector -mvsx/g' ${WRKSRC}/src/CMakeLists.txt
-.else
-USES+=		compiler:c++11-lang
+.elif ${ARCH:Mpowerpc64*}
+CMAKE_ON=	HAVE_POWER8
 .endif
 
 .include <bsd.port.mk>



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