svn commit: r423204 - head/math/jags
Thomas Zander
riggs at FreeBSD.org
Mon Oct 3 15:57:05 UTC 2016
Author: riggs
Date: Mon Oct 3 15:57:04 2016
New Revision: 423204
URL: https://svnweb.freebsd.org/changeset/ports/423204
Log:
Allow selection of optimised BLAS implementations via OPTIONs
PR: 213090
Submitted by: elferdo at gmail.com
Modified:
head/math/jags/Makefile
Modified: head/math/jags/Makefile
==============================================================================
--- head/math/jags/Makefile Mon Oct 3 15:56:04 2016 (r423203)
+++ head/math/jags/Makefile Mon Oct 3 15:57:04 2016 (r423204)
@@ -3,6 +3,7 @@
PORTNAME= mcmc-jags
PORTVERSION= 4.0.0
+PORTREVISION= 1
CATEGORIES= math
MASTER_SITES= SF/mcmc-jags/JAGS/${S}.x/Source/:1 \
SF/mcmc-jags/Examples/${S}.x/:2 \
@@ -24,6 +25,21 @@ USE_LDCONFIG= yes
WRKSRC= ${WRKDIR}/JAGS-${PORTVERSION}
+OPTIONS_SINGLE= BLAS
+OPTIONS_SINGLE_BLAS= ATLAS OPENBLAS NETLIB
+
+OPTIONS_DEFAULT+= OPENBLAS
+
+ATLAS_USES= blaslapack:atlas
+ATLAS_VARS= MANUAL_PACKAGE_BUILD=\
+"Choose a BLAS option other than ATLAS for package building."
+NETLIB_USES= blaslapack:netlib
+OPENBLAS_USES= blaslapack:openblas
+
+CONFIGURE_ARGS+= --with-blas="-L${LOCALBASE}/lib ${BLASLIB}" \
+ --with-lapack="${LAPACKLIB}"
+
+OPTIONS_SUB= YES
PLIST_SUB= MODULEVERSION=${S}
S= ${PORTVERSION:C|\..*||}
@@ -41,23 +57,6 @@ DISTFILES+= classic-bugs.tar.gz:2
PORTEXAMPLES= *
.endif
-.if exists(${LOCALBASE}/lib/libatlas.so)
-WITH_BLAS?= atlas
-.else
-WITH_BLAS?= reference
-.endif
-
-.if ${WITH_BLAS} == "atlas"
-LIB_DEPENDS+= libatlas.so:math/atlas
-CONFIGURE_ARGS= --with-lapack="-lalapack -lptcblas" --with-blas="-lptf77blas"
-.elif ${WITH_BLAS} == "reference"
-LIB_DEPENDS+= libblas.so:math/blas
-LIB_DEPENDS+= liblapack.so:math/lapack
-CONFIGURE_ARGS= --with-lapack="-llapack" --with-blas="-lblas"
-.else
-IGNORE= invalid value for WITH_BLAS: ${WITH_BLAS}
-.endif
-
post-patch:
@${REINPLACE_CMD} -e 's|[(]libdir[)]/pkgconfig|(prefix)/libdata/pkgconfig|g' \
${WRKSRC}/etc/Makefile.in
More information about the svn-ports-all
mailing list