openblas: Fix pkglint issues, streamline comments

This commit is contained in:
Jason Bacon 2020-11-05 10:13:00 -06:00
parent fc369ae973
commit 6a203d8f49
2 changed files with 10 additions and 9 deletions

View File

@ -53,21 +53,24 @@ MAKE_FLAGS+= FC=${FC:Q}
# Default is detected from build host, which may differ from run host. # Default is detected from build host, which may differ from run host.
BUILD_DEFS+= OPENBLAS_THREAD_LIMIT BUILD_DEFS+= OPENBLAS_THREAD_LIMIT
.include "../../mk/bsd.prefs.mk"
# Default checks number of cores of build host. # Default checks number of cores of build host.
# Do we want a pkgsrc-wide default? # Do we want a pkgsrc-wide default?
OPENBLAS_THREAD_LIMIT?= # empty OPENBLAS_THREAD_LIMIT?= # empty
.if !empty(OPENBLAS_THREAD_LIMIT) .if !empty(OPENBLAS_THREAD_LIMIT)
MAKE_FLAGS+= NUM_THREADS=${OPENBLAS_THREAD_LIMIT:Q} MAKE_FLAGS+= NUM_THREADS=${OPENBLAS_THREAD_LIMIT:Q}
.endif .endif
BENCHMARK_MAXTHREADS?= 8 BENCHMARK_MAXTHREADS?= 8
.if ${MACHINE_ARCH:M*64} == "" .if ${MACHINE_ARCH:M*64} == ""
MAKE_FLAGS+= BINARY32=1 MAKE_FLAGS+= BINARY32=1
.else .else
MAKE_FLAGS+= BINARY64=1 MAKE_FLAGS+= BINARY64=1
.endif .endif
# Those come in separate BLAS-agnostic packages. # Those come in separate BLAS-agnostic packages.
# ... except we start headaches about ILP64? # ... 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. # Separate headers and cmake stuff.
MAKE_FLAGS+= OPENBLAS_INCLUDE_DIR=${PREFIX}/include/${OPENBLAS_VARIANT} MAKE_FLAGS+= OPENBLAS_INCLUDE_DIR=${PREFIX}/include/${OPENBLAS_VARIANT}

View File

@ -1,8 +1,7 @@
# $NetBSD$ # $NetBSD$
PKG_OPTIONS_VAR= PKG_OPTIONS.openblas PKG_OPTIONS_VAR= PKG_OPTIONS.openblas
# Choose dynamic target/processor choice at runtime or # Auto-detect CPU features at runtime or use static features from build host
# fixed build with build host CPU.
PKG_SUPPORTED_OPTIONS= dynamic-arch PKG_SUPPORTED_OPTIONS= dynamic-arch
PKG_SUGGESTED_OPTIONS= dynamic-arch PKG_SUGGESTED_OPTIONS= dynamic-arch
@ -15,6 +14,5 @@ MAKE_FLAGS+= DYNAMIC_ARCH=1
MAKE_FLAGS+= DYNAMIC_ARCH=0 MAKE_FLAGS+= DYNAMIC_ARCH=0
.endif .endif
# Other options create variants of the library, not # Other options create variants of the library, not configurations of one.
# configurations of one. Especially INTERFACE64, which # Especially INTERFACE64, which changes the API!
# changes the API!