a project to simplify installation of open source software
on Mac OS X and Darwin
# $Id: Portfile 21007 2006-12-20 11:35:12Z gwright@macports.org $
PortSystem 1.0
name R
version 2.4.1
categories math science
maintainers konis@stats.ox.ac.uk
platforms darwin
description R is GNU S - an interpreted language for statistical computing
long_description \
R is a language and environment for statistical computing and graphics. \
R provides a wide variety of statistical (linear and nonlinear modelling, \
classical statistical tests, time-series analysis, classification, \
clustering, ...) and graphical techniques, and is highly extensible.
homepage http://www.r-project.org/
master_sites http://cran.r-project.org/src/base/R-2/ \
http://cran.us.r-project.org/src/base/R-2/ \
http://cran.au.r-project.org/src/base/R-2/ \
http://cran.at.r-project.org/src/base/R-2/ \
http://cran.hu.r-project.org/src/base/R-2/
checksums md5 92b33fd2c3e770d595c1a472889230d5 \
sha1 5ab0a29a29c35dc2cb06c875539e62b57503c762 \
rmd160 2a03cc81b870d594a695e9eb1e77720379c60194
depends_build port:gcc40 \
port:teTeX
depends_lib port:readline \
port:gettext \
lib:libjpeg:jpeg \
lib:libpng:libpng
configure.env CPPFLAGS="-I${prefix}/include" \
LDFLAGS="-L${prefix}/lib" \
CC=${prefix}/bin/gcc-dp-4.0 \
CXX=${prefix}/bin/g++-dp-4.0 \
F77=${prefix}/bin/gfortran-dp-4.0
configure.args --mandir=\\\${prefix}/share/man \
--enable-R-shlib \
--disable-R-framework \
--without-aqua
test.run yes
test.target check
destroot.destdir prefix=${destroot}${prefix}
platform darwin 6 {
depends_lib-append lib:libdl:dlcompat
}
platform darwin 7 {
depends_lib-append port:tcl \
port:tk
configure.args-append --with-tcl-config=${prefix}/lib/tclConfig.sh \
--with-tk-config=${prefix}/lib/tkConfig.sh
}
platform i386 {
depends_build-delete port:gcc40
configure.env-delete CC=${prefix}/bin/gcc-dp-4.0
configure.env-delete CXX=${prefix}/bin/g++-dp-4.0
configure.env-delete F77=${prefix}/bin/gfortran-dp-4.0
depends_build-append port:gcc42
configure.env-append F77=${prefix}/bin/gfortran-dp-4.2
configure.env-append CC=${prefix}/bin/gcc-dp-4.2
configure.env-append CXX=${prefix}/bin/g++-dp-4.2
}
post-destroot {
reinplace "s|R_HOME_DIR=${destroot}|R_HOME_DIR=|" \
"${destroot}${prefix}/bin/R"
reinplace "s|R_HOME_DIR=${destroot}|R_HOME_DIR=|" \
"${destroot}${prefix}/lib/R/bin/R"
reinplace "s|R_SHARE_DIR=${destroot}|R_SHARE_DIR=|" \
"${destroot}${prefix}/bin/R"
reinplace "s|R_SHARE_DIR=${destroot}|R_SHARE_DIR=|" \
"${destroot}${prefix}/lib/R/bin/R"
reinplace "s|R_INCLUDE_DIR=${destroot}|R_INCLUDE_DIR=|" \
"${destroot}${prefix}/bin/R"
reinplace "s|R_INCLUDE_DIR=${destroot}|R_INCLUDE_DIR=|" \
"${destroot}${prefix}/lib/R/bin/R"
reinplace "s|R_DOC_DIR=${destroot}|R_DOC_DIR=|" \
"${destroot}${prefix}/bin/R"
reinplace "s|R_DOC_DIR=${destroot}|R_DOC_DIR=|" \
"${destroot}${prefix}/lib/R/bin/R"
}