svn commit: r447249 - head/math/openblas

Dmitry Marakasov amdmi3 at FreeBSD.org
Thu Aug 3 17:22:20 UTC 2017


Author: amdmi3
Date: Thu Aug  3 17:22:18 2017
New Revision: 447249
URL: https://svnweb.freebsd.org/changeset/ports/447249

Log:
  - Add test target
  - While here, switch to options helpers
  
  PR:		220425
  Submitted by:	yuri at rawbw.com
  Approved by:	maintainer timeout (phd_kimberlite at yahoo.co.jp, 1 month)

Modified:
  head/math/openblas/Makefile

Modified: head/math/openblas/Makefile
==============================================================================
--- head/math/openblas/Makefile	Thu Aug  3 16:47:31 2017	(r447248)
+++ head/math/openblas/Makefile	Thu Aug  3 17:22:18 2017	(r447249)
@@ -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 \


More information about the svn-ports-all mailing list