pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/math math/lapack, math/openblas: more inclusive 64 bit...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f6cd14177240
branches:  trunk
changeset: 454723:f6cd14177240
user:      thor <thor%pkgsrc.org@localhost>
date:      Tue Jun 15 15:06:23 2021 +0000

description:
math/lapack, math/openblas: more inclusive 64 bit platform check

The simple approach missed alpha.

diffstat:

 math/lapack/Makefile.common   |  6 ++++--
 math/openblas/Makefile.common |  8 +++-----
 2 files changed, 7 insertions(+), 7 deletions(-)

diffs (50 lines):

diff -r f05151b3bd38 -r f6cd14177240 math/lapack/Makefile.common
--- a/math/lapack/Makefile.common       Tue Jun 15 14:32:04 2021 +0000
+++ b/math/lapack/Makefile.common       Tue Jun 15 15:06:23 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.14 2021/06/15 04:41:52 thor Exp $
+# $NetBSD: Makefile.common,v 1.15 2021/06/15 15:06:23 thor Exp $
 # used by math/blas/Makefile
 # used by math/cblas/Makefile
 # used by math/lapacke/Makefile
@@ -35,8 +35,10 @@
 CONFIGURE_DIRS=        build
 CMAKE_ARG_PATH=        ${WRKSRC}
 
+.include "../../mk/bsd.prefs.mk"
+
 .if !empty(LAPACK_COMPONENT:M*64)
-.  if empty(MACHINE_ARCH:M*64)
+.  if empty(LP64PLATFORMS:@.PLAT.@${MACHINE_PLATFORM:M${.PLAT.}}@)
 PKG_FAIL_REASON+=      "${LAPACK_COMPONENT} incompatible with non-64-bit platform"
 .  endif
 HEADERDIR=             netlib64
diff -r f05151b3bd38 -r f6cd14177240 math/openblas/Makefile.common
--- a/math/openblas/Makefile.common     Tue Jun 15 14:32:04 2021 +0000
+++ b/math/openblas/Makefile.common     Tue Jun 15 15:06:23 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.5 2021/06/15 04:41:52 thor Exp $
+# $NetBSD: Makefile.common,v 1.6 2021/06/15 15:06:23 thor Exp $
 #
 # used by math/openblas_pthread/Makefile
 # used by math/openblas_openmp/Makefile
@@ -62,7 +62,7 @@
 .endif
 BENCHMARK_MAXTHREADS?= 8
 
-.if ${MACHINE_ARCH:M*64} == ""
+.if empty(LP64PLATFORMS:@.PLAT.@${MACHINE_PLATFORM:M${.PLAT.}}@)
 MAKE_FLAGS+=           BINARY32=1
 .  if !empty(OPENBLAS_VARIANT:M*64*)
 PKG_FAIL_REASON+=      "${OPENBLAS_VARIANT} incompatible with non-64-bit platform"
@@ -78,9 +78,7 @@
 MAKE_FLAGS+=   OPENBLAS_INCLUDE_DIR=${PREFIX}/include/${OPENBLAS_VARIANT}
 MAKE_FLAGS+=   OPENBLAS_CMAKE_DIR=${PREFIX}/lib/cmake/${OPENBLAS_VARIANT}
 
-# TODO: Set INTERFACE64=1 with additional OPENBLAS_VARIANTs.
-# Need to settle on a convention for SYMBOLSUFFIX first, see
-# https://github.com/xianyi/OpenBLAS/issues/646 .
+# Settled on no sumbol suffix for 64 bit.
 MAKE_FLAGS+=   FIXED_LIBNAME=1
 .if ${OPENBLAS_VARIANT} == openblas || ${OPENBLAS_VARIANT} == openblas64
 MAKE_FLAGS+=   USE_OPENMP=0 USE_THREAD=0 USE_LOCKING=1



Home | Main Index | Thread Index | Old Index