diff options
Diffstat (limited to 'academic/R/R.SlackBuild')
-rw-r--r-- | academic/R/R.SlackBuild | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/academic/R/R.SlackBuild b/academic/R/R.SlackBuild index f66ea2759c..b73b2c4f8a 100644 --- a/academic/R/R.SlackBuild +++ b/academic/R/R.SlackBuild @@ -1,9 +1,10 @@ #!/bin/sh -# SlackBuild script for R, by melikamp. +# SlackBuild script for R, by melikamp, Andrew Rowland. +# (Contributors are listed in order of first participation.) # This program is free software: it is placed into the Public Domain -# by the author. A verbose dedication is available at +# by the author(s). A verbose dedication is available at # http://creativecommons.org/publicdomain/zero/1.0/legalcode # This program is distributed in the hope that it will be useful, but @@ -13,10 +14,21 @@ # the Universe as we know it. PRGNAM=R -VERSION=2.14.1 +VERSION=2.15.0 BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +if [ "${R_SHLIB:-yes}" = "yes" ]; then + r_shlib="--enable-R-shlib" +else + r_shlib="--disable-R-shlib" +fi +if [ "${BLAS_SHLIB:-yes}" = "yes" ]; then + blas_shlib="--enable-BLAS-shlib" +else + blas_shlib="--disable-BLAS-shlib" +fi + if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i486 ;; @@ -68,9 +80,12 @@ CXXFLAGS="$SLKCFLAGS" \ --localstatedir=/var \ --mandir=/usr/man \ rdocdir=/usr/doc/$PRGNAM-$VERSION \ + $r_shlib \ + $blas_shlib \ --build=$ARCH-slackware-linux make +mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/R/lib # work around make install bug make install DESTDIR=$PKG find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ |