mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-09 00:23:52 +02:00
R: Use OpenBLAS where available
Also fixes building of manuals and checks.
This commit is contained in:
parent
193792adb3
commit
11a1e3b151
1 changed files with 24 additions and 4 deletions
|
@ -1,18 +1,22 @@
|
||||||
# Template file for 'R'
|
# Template file for 'R'
|
||||||
pkgname=R
|
pkgname=R
|
||||||
version=4.0.3
|
version=4.0.3
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--docdir=/usr/share/doc/R rdocdir=/usr/share/doc/R
|
configure_args="--docdir=/usr/share/doc/R rdocdir=/usr/share/doc/R
|
||||||
--with-lapack --with-blas --enable-R-shlib --with-tcltk
|
--with-blas$(vopt_if openblas '="-lopenblas"') --with-lapack
|
||||||
|
--enable-R-shlib --with-tcltk
|
||||||
--enable-memory-profiling
|
--enable-memory-profiling
|
||||||
LIBnn=lib"
|
LIBnn=lib"
|
||||||
hostmakedepends="gcc-fortran pkg-config perl less which"
|
hostmakedepends="gcc-fortran pkg-config perl less which"
|
||||||
makedepends="libgomp-devel readline-devel libXmu-devel libXt-devel
|
makedepends="libgomp-devel readline-devel libXmu-devel libXt-devel
|
||||||
libpng-devel libjpeg-turbo-devel tiff-devel cairo-devel icu-devel
|
libpng-devel libjpeg-turbo-devel tiff-devel cairo-devel icu-devel
|
||||||
lapack-devel blas-devel zlib-devel bzip2-devel pcre2-devel liblzma-devel
|
zlib-devel bzip2-devel pcre2-devel liblzma-devel
|
||||||
libcurl-devel tcl-devel tk-devel libxml2-devel"
|
libcurl-devel tcl-devel tk-devel libxml2-devel
|
||||||
|
texlive texlive-fontsextra texinfo
|
||||||
|
$(vopt_if openblas openblas-devel 'blas-devel lapack-devel')"
|
||||||
depends="xdg-utils less which"
|
depends="xdg-utils less which"
|
||||||
|
checkdepends="tzdata tar"
|
||||||
short_desc="System for statistical computation and graphics"
|
short_desc="System for statistical computation and graphics"
|
||||||
maintainer="Florian Wagner <florian@wagner-flo.net>"
|
maintainer="Florian Wagner <florian@wagner-flo.net>"
|
||||||
license="GPL-2.0-or-later"
|
license="GPL-2.0-or-later"
|
||||||
|
@ -23,11 +27,27 @@ checksum=09983a8a78d5fb6bc45d27b1c55f9ba5265f78fa54a55c13ae691f87c5bb9e0d
|
||||||
nocross=yes
|
nocross=yes
|
||||||
shlib_provides="libR.so"
|
shlib_provides="libR.so"
|
||||||
|
|
||||||
|
build_options="openblas"
|
||||||
|
|
||||||
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
|
x86_64*|i686*|aarch64*|armv[67]*|ppc64*)
|
||||||
|
# Prefer accelerated routines where available
|
||||||
|
build_options_default="openblas"
|
||||||
|
;;
|
||||||
|
*) ;;
|
||||||
|
esac
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
export R_BROWSER=/usr/bin/xdg-open
|
export R_BROWSER=/usr/bin/xdg-open
|
||||||
export R_PDFVIEWER=/usr/bin/xdg-open
|
export R_PDFVIEWER=/usr/bin/xdg-open
|
||||||
}
|
}
|
||||||
|
|
||||||
|
do_check() {
|
||||||
|
if [ "${XBPS_CHECK_PKGS}" = full ]; then
|
||||||
|
( TEST_MC_CORES=${XBPS_MAKEJOBS} make check )
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
# Sanitize Makeconf flags
|
# Sanitize Makeconf flags
|
||||||
vsed -i -e 's/^\(CFLAGS\|CXXFLAGS\|CXX1XFLAGS\|FFLAGS\|SAFE_FFLAGS\) = .*/\1 = -O2 -g $(LTO)/' \
|
vsed -i -e 's/^\(CFLAGS\|CXXFLAGS\|CXX1XFLAGS\|FFLAGS\|SAFE_FFLAGS\) = .*/\1 = -O2 -g $(LTO)/' \
|
||||||
|
|
Loading…
Add table
Reference in a new issue