pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

mk/blas.buildlink3.mk: add untested accelerate.framework option



Module Name:	pkgsrc-wip
Committed By:	Dr. Thomas Orgis <thomas.orgis%uni-hamburg.de@localhost>
Pushed By:	thor
Date:		Tue Mar 26 19:07:43 2019 +0100
Changeset:	7f3255e3e509f415b3466b2ee9b87552039570f3

Modified Files:
	mk/blas.buildlink3.mk

Log Message:
mk/blas.buildlink3.mk: add untested accelerate.framework option

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=7f3255e3e509f415b3466b2ee9b87552039570f3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 mk/blas.buildlink3.mk | 7 +++++++
 1 file changed, 7 insertions(+)

diffs:
diff --git a/mk/blas.buildlink3.mk b/mk/blas.buildlink3.mk
index 108d1b8ab9..9ee76153f7 100644
--- a/mk/blas.buildlink3.mk
+++ b/mk/blas.buildlink3.mk
@@ -33,6 +33,10 @@ BLAS_BUILDLINK3_MK=	# define it
 
 # List of all possible BLAS choices.
 _BLAS_TYPES=	netlib openblas openblas_pthread openblas_openmp
+# Add Accelerate framework on Darwin (pulled from math/R).
+.if exists(/System/Library/Frameworks/Accelerate.framework)
+_BLAS_TYPES+=	accelerate.framework
+.endif
 # Currently chosen type.
 # Default is the standard, slow, easily available.
 BLAS_TYPE?=	netlib
@@ -61,6 +65,9 @@ LAPACK_LIBS=	${BLAS_LIBS}
 _BLAS_PACKAGE=	wip/openblas_openmp
 BLAS_LIBS=	-lopenblas_openmp
 LAPACK_LIBS=	${BLAS_LIBS}
+.elif $(_BLAS_TYPE) == "accelerate.framework"
+BLAS_LIBS=	-framework Accelerate
+LAPACK_LIBS=	${BLAS_LIBS}
 # TODO: atlas
 # TODO: external BLAS (other OpenBLAS/ATLAS, Intel MKL)
 .else # invalid or unimplemented type


Home | Main Index | Thread Index | Old Index