pkgsrc/pkgtools/R2pkg/Makefile
bacon 87edcb24b1 math/blas, math/lapack: Install interchangeable BLAS system
Install the new interchangeable BLAS system created by Thomas Orgis,
currently supporting Netlib BLAS/LAPACK, OpenBLAS, cblas, lapacke, and
Apple's Accelerate.framework.  This system allows the user to select any
BLAS implementation without modifying packages or using package options, by
setting PKGSRC_BLAS_TYPES in mk.conf. See mk/blas.buildlink3.mk for details.

This commit should not alter behavior of existing packages as the system
defaults to Netlib BLAS/LAPACK, which until now has been the only supported
implementation.

Details:

Add new mk/blas.buildlink3.mk for inclusion in dependent packages
Install compatible Netlib math/blas and math/lapack packages
Update math/blas and math/lapack MAINTAINER approved by adam@
OpenBLAS, cblas, and lapacke will follow in separate commits
Update direct dependents to use mk/blas.buildlink3.mk
Perform recursive revbump
2020-10-12 21:51:57 +00:00

41 lines
1 KiB
Makefile

# $NetBSD: Makefile,v 1.12 2020/10/12 21:52:04 bacon Exp $
#
VERS= 0.6.4
PKGNAME= R2pkg-${VERS}
PKGREVISION= 1
CATEGORIES= pkgtools
MAINTAINER= brook@NetBSD.org
HOMEPAGE= # none
COMMENT= Tool to automate initial steps in building an R package
LICENSE= modified-bsd
WRKSRC= ${WRKDIR}
NO_BUILD= yes
USE_LANGUAGES= # none
AUTO_MKDIRS= yes
DEPENDS+= curl>=7.52.1:../../www/curl
TEST_DEPENDS+= R-testthat>=2.2.1:../../devel/R-testthat
TEST_DEPENDS+= R-withr>=2.1.2:../../devel/R-withr
SUBST_CLASSES+= R
SUBST_STAGE.R= pre-configure
SUBST_FILES.R= R2pkg.sh
SUBST_VARS.R= VERS MAKE LIBDIR
LIBDIR= ${PREFIX}/lib/R2pkg
do-extract:
cd ${FILESDIR} && ${CP} R2pkg*.* ${WRKSRC}
do-test:
cd ${WRKSRC} && LC_ALL=C PKGSRCDIR=${PKGSRCDIR} ${PREFIX}/bin/Rscript R2pkg_test.R
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/R2pkg.sh ${DESTDIR}${PREFIX}/sbin/R2pkg
${INSTALL_DATA} ${WRKSRC}/R2pkg.R ${DESTDIR}${LIBDIR}/R2pkg.R
${INSTALL_MAN} ${WRKSRC}/R2pkg.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8/R2pkg.8
.include "../../math/R/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"