svn commit: r556121 - head/math/blis
Piotr Kubaj
pkubaj at FreeBSD.org
Mon Nov 23 19:47:43 UTC 2020
Author: pkubaj
Date: Mon Nov 23 19:47:43 2020
New Revision: 556121
URL: https://svnweb.freebsd.org/changeset/ports/556121
Log:
math/blis: pacify portlint, add test target, optimize for power9 on powerpc64
1. Move USES block to pacify portlint.
2. Add test target.
3. Add perl as a build dependency, I'm not sure how it worked before.
4. Optimize for power9 on powerpc64. This will break blis on all earlier POWER generations, but nothing depends on this port so I guess it's ok. make test passes fine on both elfv1 and elfv2.
5. Remove LIBNAME, it's not necessary.
PR: 246194
Approved by: jmd (maintainer timeout)
Modified:
head/math/blis/Makefile
Modified: head/math/blis/Makefile
==============================================================================
--- head/math/blis/Makefile Mon Nov 23 19:46:32 2020 (r556120)
+++ head/math/blis/Makefile Mon Nov 23 19:47:43 2020 (r556121)
@@ -3,6 +3,7 @@
PORTNAME= blis
PORTVERSION= 0.7.0
+PORTREVISION= 1
CATEGORIES= math
MAINTAINER= jmd at FreeBSD.org
@@ -13,21 +14,23 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= bash:shells/bash
+USES= compiler gmake perl5 python shebangfix
+USE_GITHUB= yes
+GH_ACCOUNT= flame
+USE_LDCONFIG= yes
+USE_PERL5= build
+SHEBANG_FILES= build/flatten-headers.py
+
OPTIONS_DEFINE= PARA CBLAS
PARA_DESC= use pthread parallelization
CBLAS_DESC= build the CBLAS compatibility layer
OPTIONS_DEFAULT= PARA CBLAS
OPTIONS_SUB= yes
-USE_GITHUB= yes
-GH_ACCOUNT= flame
-
-USES= compiler gmake python shebangfix
-USE_LDCONFIG= yes
-SHEBANG_FILES= build/flatten-headers.py
-
HAS_CONFIGURE= yes
+TEST_TARGET= test
+
.include <bsd.port.options.mk>
# enable BLAS and static/shared libs by default
@@ -46,11 +49,13 @@ CONFIGURE_ARGS+= --enable-cblas
.endif
.if ${ARCH} == amd64
-LIBNAME= x86_64
CONFIGURE_ARGS+= x86_64
PLIST_SUB+= ARCH="x86_64"
+.elif ${ARCH} == powerpc64
+CONFIGURE_ARGS+= power9
+PLIST_SUB+= ARCH="power9"
+USE_GCC= yes
.else
-LIBNAME= generic
CONFIGURE_ARGS+= generic
PLIST_SUB+= ARCH="generic"
.endif
More information about the svn-ports-all
mailing list