git: 5b92ed01d91a - main - biology/trimadap: fix build on powerpc64le
Piotr Kubaj
pkubaj at FreeBSD.org
Tue Apr 6 09:53:34 UTC 2021
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=5b92ed01d91a2fa9932769a56436c597770ae839
commit 5b92ed01d91a2fa9932769a56436c597770ae839
Author: Piotr Kubaj <pkubaj at FreeBSD.org>
AuthorDate: 2021-04-06 09:53:56 +0000
Commit: Piotr Kubaj <pkubaj at FreeBSD.org>
CommitDate: 2021-04-06 09:53:56 +0000
biology/trimadap: fix build on powerpc64le
Requires GCC for its SSE translation.
---
biology/trimadap/Makefile | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/biology/trimadap/Makefile b/biology/trimadap/Makefile
index e5cb61388546..6c58fc954970 100644
--- a/biology/trimadap/Makefile
+++ b/biology/trimadap/Makefile
@@ -10,7 +10,7 @@ COMMENT= Trim adapter sequences from Illumina data using heuristic rules
LICENSE= GPLv2
-ONLY_FOR_ARCHS= amd64 i386
+ONLY_FOR_ARCHS= amd64 i386 powerpc64le
ONLY_FOR_ARCHS_REASON= Hard-coded SSE instructions
USE_GITHUB= yes
@@ -20,6 +20,13 @@ PLIST_FILES= bin/trimadap-mt
CFLAGS_i386= -msse2
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == powerpc64le
+CFLAGS+= -DNO_WARN_X86_INTRINSICS
+USES= compiler:gcc-c++11-lib
+.endif
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/trimadap-mt ${STAGEDIR}${PREFIX}/bin
More information about the dev-commits-ports-all
mailing list