git: 48ddc73c5822 - main - biology/bowtie2: Add support for powerpc64le

Jason W. Bacon jwb at FreeBSD.org
Sun Apr 18 15:53:53 UTC 2021


The branch main has been updated by jwb:

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

commit 48ddc73c5822130dd3f00361ec6998eec0a29e6d
Author:     Jason W. Bacon <jwb at FreeBSD.org>
AuthorDate: 2021-04-18 15:52:07 +0000
Commit:     Jason W. Bacon <jwb at FreeBSD.org>
CommitDate: 2021-04-18 15:53:14 +0000

    biology/bowtie2: Add support for powerpc64le
    
    PR:             255092
    Submitted by:   pkubaj
---
 biology/bowtie2/Makefile             | 13 ++++++++++++-
 biology/bowtie2/distinfo             |  4 +++-
 biology/bowtie2/files/patch-Makefile |  4 ++--
 3 files changed, 17 insertions(+), 4 deletions(-)

diff --git a/biology/bowtie2/Makefile b/biology/bowtie2/Makefile
index 198cf295e73e..2cd89b18642b 100644
--- a/biology/bowtie2/Makefile
+++ b/biology/bowtie2/Makefile
@@ -12,7 +12,7 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 
 # Requires a 64-bit processor and depends on hard-coded SSE instructions
 # Experimental support for AARCH64 as of 2.3.5
-ONLY_FOR_ARCHS=	aarch64 amd64
+ONLY_FOR_ARCHS=	aarch64 amd64 powerpc64le
 LIB_DEPENDS=	libtbb.so:devel/onetbb
 RUN_DEPENDS=	bash:shells/bash
 
@@ -23,11 +23,22 @@ USE_GITHUB=	yes
 SHEBANG_FILES=	bowtie2 bowtie2-build bowtie2-inspect \
 		scripts/bowtie2-hbb.sh scripts/*.pl
 GH_ACCOUNT=	BenLangmead
+GH_TUPLE=	nemequ:simde:422ed9c:simde
 
 OPTIONS_DEFINE=	DOCS EXAMPLES
 
 SUB_FILES=	bowtie2-test
 
+.include <bsd.port.options.mk>
+
+.if ${ARCH} != amd64
+post-extract:
+	(cd ${WRKSRC_simde}; \
+		${COPYTREE_SHARE} . ${WRKSRC}/third_party/simde/)
+
+MAKE_ENV=	POPCNT_CAPABILITY=0
+.endif
+
 pre-configure:
 	@${REINPLACE_CMD} \
 		-e 's|^RELEASE_FLAGS|# RELEASE_FLAGS|' \
diff --git a/biology/bowtie2/distinfo b/biology/bowtie2/distinfo
index 100d7cba6fb8..57c4443eb8df 100644
--- a/biology/bowtie2/distinfo
+++ b/biology/bowtie2/distinfo
@@ -1,3 +1,5 @@
-TIMESTAMP = 1604617529
+TIMESTAMP = 1618499065
 SHA256 (BenLangmead-bowtie2-v2.4.2_GH0.tar.gz) = ea33a1562faf759b21b3a905e20b87a3524ac4e53af8cd723d9a9f31ee159c8a
 SIZE (BenLangmead-bowtie2-v2.4.2_GH0.tar.gz) = 10590144
+SHA256 (nemequ-simde-422ed9c_GH0.tar.gz) = 3e7e962b499212cdddcaeca973d1c15d71a4b620afb46113d936ce5c3a8236ba
+SIZE (nemequ-simde-422ed9c_GH0.tar.gz) = 332230
diff --git a/biology/bowtie2/files/patch-Makefile b/biology/bowtie2/files/patch-Makefile
index 092870a96abf..f082b4abb0d3 100644
--- a/biology/bowtie2/files/patch-Makefile
+++ b/biology/bowtie2/files/patch-Makefile
@@ -1,4 +1,4 @@
---- Makefile.orig	2020-11-05 23:04:50 UTC
+--- Makefile.orig	2020-10-06 03:46:41 UTC
 +++ Makefile
 @@ -24,7 +24,7 @@
  PREFIX := /usr/local
@@ -33,7 +33,7 @@
    CPPFLAGS += -Ithird_party/simde
    SANITIZER_FLAGS :=
 -else ifeq (ppc64le,$(shell uname -m))
-+else ifeq (ppc64le,$(shell uname -p))
++else ifeq (powerpc64le,$(shell uname -p))
    BITS := 64
    SSE_FLAG :=
    CXXFLAGS += -fopenmp-simd


More information about the dev-commits-ports-all mailing list