|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
#!/bin/bash |
|
|
|
|
# Build script for Slackware |
|
|
|
|
# Copyright (C) 2008,2009 Damien Goutte-Gattat |
|
|
|
|
# Copyright (C) 2008,2009,2010 Damien Goutte-Gattat |
|
|
|
|
# |
|
|
|
|
# Redistribution and use of this script, with or without modifications, |
|
|
|
|
# is permitted provided that the following conditions are met: |
|
|
|
@ -25,10 +25,11 @@
|
|
|
|
|
# Latest R sourcecode is available at: <http://www.r-project.org/>. |
|
|
|
|
# |
|
|
|
|
# Recommends: l/libatlas |
|
|
|
|
# Optional: l/icu |
|
|
|
|
|
|
|
|
|
# Source package infos |
|
|
|
|
NAMESRC=${NAMESRC:-R} |
|
|
|
|
VERSION=${VERSION:-2.10.1} |
|
|
|
|
VERSION=${VERSION:-2.11.1} |
|
|
|
|
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz} |
|
|
|
|
WGET=${WGET:-http://cran.cict.fr/src/base/R-2/$ARCHIVE} |
|
|
|
|
|
|
|
|
@ -92,19 +93,16 @@ CXXFLAGS=$CPUOPT \
|
|
|
|
|
--libdir=/usr/lib$LIBDIRSUFFIX \ |
|
|
|
|
--mandir=/usr/man \ |
|
|
|
|
--infodir=/usr/info \ |
|
|
|
|
--enable-R-shlib \ |
|
|
|
|
--with-blas \ |
|
|
|
|
--with-lapack="-lcblas -latlas -llapack" \ |
|
|
|
|
--with-system-zlib \ |
|
|
|
|
--with-system-bzlib \ |
|
|
|
|
--with-system-pcre |
|
|
|
|
make -j $JOBS |
|
|
|
|
make install DESTDIR=$PKG |
|
|
|
|
make install-strip DESTDIR=$PKG |
|
|
|
|
make install-info DESTDIR=$PKG |
|
|
|
|
|
|
|
|
|
# Strip binaries |
|
|
|
|
find $PKG | xargs file | grep "ELF \(32\|64\)-bit LSB" | cut -d : -f 1 | \ |
|
|
|
|
xargs strip --strip-unneeded 2> /dev/null |
|
|
|
|
|
|
|
|
|
# Compress man pages, suppress info dir.* files |
|
|
|
|
find $PKG/usr/man -type f -exec gzip -9 '{}' \; |
|
|
|
|
rm -f $PKG/usr/info/dir* |
|
|
|
|