aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2017-08-04 01:22:18 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2017-08-04 01:22:18 +0800
commit10dff4053fb8182093dfa6c5117fcb8e5b0656de (patch)
treec69fa13a6c4a545d02047f610ea8e85ce3195616
parent41e66f0c55784527373f43660fdfa2a3512ce808 (diff)
downloadfreebsd-ports-gnome-10dff4053fb8182093dfa6c5117fcb8e5b0656de.tar.gz
freebsd-ports-gnome-10dff4053fb8182093dfa6c5117fcb8e5b0656de.tar.zst
freebsd-ports-gnome-10dff4053fb8182093dfa6c5117fcb8e5b0656de.zip
- Add test target
- While here, switch to options helpers PR: 220425 Submitted by: yuri@rawbw.com Approved by: maintainer timeout (phd_kimberlite@yahoo.co.jp, 1 month)
-rw-r--r--math/openblas/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/math/openblas/Makefile b/math/openblas/Makefile
index f8191668cbec..97d54d36ecea 100644
--- a/math/openblas/Makefile
+++ b/math/openblas/Makefile
@@ -32,6 +32,7 @@ OPENBLAS_LIBS= libopenblas libopenblasp
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/|}
+TEST_TARGET= tests
OPTIONS_DEFINE= INTERFACE64 OPENMP
OPTIONS_DEFINE_i386= DYNAMIC_ARCH AVX AVX2
@@ -125,11 +126,11 @@ post-patch:
-e 's+$${CROSS_SUFFIX}+${LOCALBASE}/bin/+' \
-e '/Clang.*OpenMP/g' \
${WRKSRC}/Makefile.system
-.if ${PORT_OPTIONS:MOPENMP}
+
+post-patch-OPENMP-on:
${REINPLACE_CMD} -e "s+OPENBLAS_NUM_THREADS+OMP_NUM_THREADS+g" \
${WRKSRC}/test/Makefile \
${WRKSRC}/ctest/Makefile
-.endif
do-build:
cd ${WRKSRC} ; ${SETENV} ${BUILDFLAGS} NUM_THREADS=1 USE_THREAD=0 \