openblas: Fix pkglint issues, streamline comments
This commit is contained in:
parent
fc369ae973
commit
6a203d8f49
|
@ -53,21 +53,24 @@ MAKE_FLAGS+= FC=${FC:Q}
|
|||
# Default is detected from build host, which may differ from run host.
|
||||
BUILD_DEFS+= OPENBLAS_THREAD_LIMIT
|
||||
|
||||
.include "../../mk/bsd.prefs.mk"
|
||||
|
||||
# Default checks number of cores of build host.
|
||||
# Do we want a pkgsrc-wide default?
|
||||
OPENBLAS_THREAD_LIMIT?= # empty
|
||||
.if !empty(OPENBLAS_THREAD_LIMIT)
|
||||
MAKE_FLAGS+= NUM_THREADS=${OPENBLAS_THREAD_LIMIT:Q}
|
||||
MAKE_FLAGS+= NUM_THREADS=${OPENBLAS_THREAD_LIMIT:Q}
|
||||
.endif
|
||||
BENCHMARK_MAXTHREADS?= 8
|
||||
|
||||
.if ${MACHINE_ARCH:M*64} == ""
|
||||
MAKE_FLAGS+= BINARY32=1
|
||||
MAKE_FLAGS+= BINARY32=1
|
||||
.else
|
||||
MAKE_FLAGS+= BINARY64=1
|
||||
MAKE_FLAGS+= BINARY64=1
|
||||
.endif
|
||||
# Those come in separate BLAS-agnostic packages.
|
||||
# ... except we start headaches about ILP64?
|
||||
MAKE_FLAGS+= NO_CBLAS=1 NO_LAPACKE=1
|
||||
MAKE_FLAGS+= NO_CBLAS=1 NO_LAPACKE=1
|
||||
|
||||
# Separate headers and cmake stuff.
|
||||
MAKE_FLAGS+= OPENBLAS_INCLUDE_DIR=${PREFIX}/include/${OPENBLAS_VARIANT}
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
# $NetBSD$
|
||||
|
||||
PKG_OPTIONS_VAR= PKG_OPTIONS.openblas
|
||||
# Choose dynamic target/processor choice at runtime or
|
||||
# fixed build with build host CPU.
|
||||
# Auto-detect CPU features at runtime or use static features from build host
|
||||
PKG_SUPPORTED_OPTIONS= dynamic-arch
|
||||
PKG_SUGGESTED_OPTIONS= dynamic-arch
|
||||
|
||||
|
@ -15,6 +14,5 @@ MAKE_FLAGS+= DYNAMIC_ARCH=1
|
|||
MAKE_FLAGS+= DYNAMIC_ARCH=0
|
||||
.endif
|
||||
|
||||
# Other options create variants of the library, not
|
||||
# configurations of one. Especially INTERFACE64, which
|
||||
# changes the API!
|
||||
# Other options create variants of the library, not configurations of one.
|
||||
# Especially INTERFACE64, which changes the API!
|
||||
|
|
Loading…
Reference in New Issue