diff options
author | jbeich <jbeich@FreeBSD.org> | 2017-06-30 12:28:08 +0800 |
---|---|---|
committer | jbeich <jbeich@FreeBSD.org> | 2017-06-30 12:28:08 +0800 |
commit | d915888b9201f584308e55dc6270784ec3ca6c7a (patch) | |
tree | 5fb2e84de08ac99f2f7e3b95c6c373b47c48d763 /math | |
parent | ae5ab8c501a62a71f1998c609d571754134ec802 (diff) | |
download | freebsd-ports-gnome-d915888b9201f584308e55dc6270784ec3ca6c7a.tar.gz freebsd-ports-gnome-d915888b9201f584308e55dc6270784ec3ca6c7a.tar.zst freebsd-ports-gnome-d915888b9201f584308e55dc6270784ec3ca6c7a.zip |
math/openblas: unblock on Tier2 architectures
- Limit DYNAMIC_ARCH to i386 and amd64
- Fix build on aarch64 [1]
PR: 218547
Submitted by: andrew [1]
Approved by: portmgr blanket [1], phd_kimberlite@yahoo.co.jp (maintainer)
Diffstat (limited to 'math')
-rw-r--r-- | math/openblas/Makefile | 15 | ||||
-rw-r--r-- | math/openblas/files/patch-cpuid__arm64.c | 11 |
2 files changed, 20 insertions, 6 deletions
diff --git a/math/openblas/Makefile b/math/openblas/Makefile index 21288dd9892e..f8191668cbec 100644 --- a/math/openblas/Makefile +++ b/math/openblas/Makefile @@ -33,7 +33,14 @@ OPENBLAS_SVER= 0 OPENBLAS_FILES= ${OPENBLAS_LIBS:S|$|.so|} ${OPENBLAS_LIBS:S|$|.so.${OPENBLAS_SVER}|} ${OPENBLAS_LIBS:S|$|.a|} PLIST_FILES= ${OPENBLAS_FILES:S|^|lib/|} -OPTIONS_DEFINE= DYNAMIC_ARCH INTERFACE64 OPENMP AVX AVX2 +OPTIONS_DEFINE= INTERFACE64 OPENMP +OPTIONS_DEFINE_i386= DYNAMIC_ARCH AVX AVX2 +OPTIONS_DEFINE_amd64= ${OPTIONS_DEFINE_i386} + +.if defined(BATCH) || defined(PACKAGE_BUILDING) +OPTIONS_DEFAULT_i386= DYNAMIC_ARCH +OPTIONS_DEFAULT_amd64= DYNAMIC_ARCH +.endif DYNAMIC_ARCH_DESC= Support multiple CPU types on i386 and amd64 INTERFACE64_DESC= Use 8 byte integers on 64-bit architectures @@ -41,10 +48,6 @@ OPENMP_DESC= Use OpenMP for threading AVX_DESC= Support Advanced Vector Extensions (AVX) AVX2_DESC= Support Advanced Vector Extensions 2 (AVX2) -.if defined(BATCH) || defined(PACKAGE_BUILDING) -OPTIONS_DEFAULT= DYNAMIC_ARCH -.endif - .include <bsd.port.options.mk> .if defined(TARGET_CPU_ARCH) @@ -60,7 +63,7 @@ BUILDFLAGS+= BINARY32=1 BUILDFLAGS+= BINARY64=1 .endif -.if ! ( ${PORT_OPTIONS:MDYNAMIC_ARCH} && ( ${ARCH} == "amd64" || ${ARCH} == "i386" ) ) +.if ! ${PORT_OPTIONS:MDYNAMIC_ARCH} && ( ${ARCH} == "amd64" || ${ARCH} == "i386" ) MANUAL_PACKAGE_BUILD= Optimizes for the build machine. .endif diff --git a/math/openblas/files/patch-cpuid__arm64.c b/math/openblas/files/patch-cpuid__arm64.c new file mode 100644 index 000000000000..a0d2451ebe22 --- /dev/null +++ b/math/openblas/files/patch-cpuid__arm64.c @@ -0,0 +1,11 @@ +--- cpuid_arm64.c.orig 2016-09-01 03:58:42 UTC ++++ cpuid_arm64.c +@@ -132,6 +132,8 @@ int detect(void) + + + } ++#else ++ return CPU_ARMV8; + #endif + + return CPU_UNKNOWN; |