summaryrefslogtreecommitdiff
path: root/math/R
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2018-03-06 01:43:44 +0000
committerminskim <minskim@pkgsrc.org>2018-03-06 01:43:44 +0000
commit913a77ee7e40f7cd181c11e76e864d280049d568 (patch)
tree51e0a94dbb72337d7df03bf6d5a2055ae0064caf /math/R
parente48f183571ead22778db8389a0eb9dc8559bf95c (diff)
downloadpkgsrc-913a77ee7e40f7cd181c11e76e864d280049d568.tar.gz
math/R: Use the Accelerate framework if it is available
This package was already using libblas from the Accelerate framework on Darwin through /usr/lib/libblas.dylib. This change makes it explicit and removes unnecessary dependencies on math/blas and math/lapack. Bump PKGREVISION.
Diffstat (limited to 'math/R')
-rw-r--r--math/R/Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/math/R/Makefile b/math/R/Makefile
index 8b0d65a8a1c..72c7484e176 100644
--- a/math/R/Makefile
+++ b/math/R/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.180 2018/01/01 21:18:40 adam Exp $
+# $NetBSD: Makefile,v 1.181 2018/03/06 01:43:44 minskim Exp $
DISTNAME= R-3.4.3
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= math
MASTER_SITES= ${MASTER_SITE_R_CRAN:=base/R-3/}
@@ -63,13 +63,17 @@ CONFIGURE_ARGS+= --with-x
PLIST.x11= yes
.endif
-# Use BLAS (math/blas)
+# Use BLAS
+.if exists(/System/Library/Frameworks/Accelerate.framework)
+CONFIGURE_ARGS+= --with-blas="-framework Accelerate"
+.else
CONFIGURE_ARGS+= --without-atlas
CONFIGURE_ARGS+= --disable-BLAS-shlib
CONFIGURE_ARGS+= --with-blas
CONFIGURE_ARGS+= --without-blas_risc
CONFIGURE_ARGS+= --without-dxml
CONFIGURE_ARGS+= --without-libmoto
+.endif
# Work around missing MAIN__() definition used in -lF77 by AC_CHECK_LIB.
# and other failures due to not linking to support libs during testing
@@ -175,8 +179,10 @@ fix-darwin-install-name:
.include "../../mk/jpeg.buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../graphics/tiff/buildlink3.mk"
+.if !exists(/System/Library/Frameworks/Accelerate.framework)
.include "../../math/blas/buildlink3.mk"
.include "../../math/lapack/buildlink3.mk"
+.endif
.include "../../www/curl/buildlink3.mk"
.include "../../x11/tk/buildlink3.mk"