Ticket #4813: Portfile

File Portfile, 2.1 KB (added by konis@…, 19 years ago)

R 2.1.1 Portfile revision 2

Line 
1# $Id: $
2
3PortSystem 1.0
4name             R
5version          2.1.1
6categories       math science
7revision         2
8maintainers      konis@stats.ox.ac.uk
9description      R is GNU S - an interpreted language for statistical computing
10long_description \
11    R is a language and environment for statistical computing and graphics. \
12    R provides a wide variety of statistical (linear and nonlinear modelling, \
13    classical statistical tests, time-series analysis, classification, \
14    clustering, ...) and graphical techniques, and is highly extensible.
15homepage         http://www.r-project.org/
16master_sites     http://cran.r-project.org/src/base/R-2/ \
17                 http://cran.us.r-project.org/src/base/R-2/ \
18                 http://cran.au.r-project.org/src/base/R-2/ \
19                 http://cran.at.r-project.org/src/base/R-2/ \
20                 http://cran.hu.r-project.org/src/base/R-2/
21checksums        md5 e755b0ba5851ec261000af6b5c510335
22depends_lib      lib:libreadline.5:readline \
23                 bin:DPtclsh:tcl \
24                 bin:DPwish:tk \
25                 bin:gettext:gettext \
26                 lib:libgraph:graphviz \
27                 lib:libjpeg:jpeg \
28                 lib:libpng:libpng
29depends_build    bin:g77-dp-3.4:gcc34
30                 bin:latex:teTeX
31configure.env    CPPFLAGS="-I${prefix}/include" \
32                 LDFLAGS="-L${prefix}/lib" \
33                 CC=gcc-dp-3.4 \
34                 CXX=g++-dp-3.4 \
35                 F77=g77-dp-3.4
36configure.args   --with-tcl-config="${prefix}/lib/tclConfig.sh" \
37                 --with-tk-config="${prefix}/lib/tkConfig.sh" \
38                 --disable-R-framework --enable-R-shlib
39destroot.destdir prefix=${destroot}${prefix}
40
41platform darwin 6 {
42    depends_lib-append lib:libdl:dlcompat
43}
44
45platform macosx {
46    configure.env-append CC=gcc-3.3 CXX=g++-3.3
47    configure.args-append --with-blas="-framework vecLib" --with-lapack
48}
49
50post-destroot {
51    reinplace "s|R_HOME_DIR=${destroot}|R_HOME_DIR=|" \
52        "${destroot}${prefix}/bin/R"
53    reinplace "s|R_HOME_DIR=${destroot}|R_HOME_DIR=|" \
54        "${destroot}${prefix}/lib/R/bin/R"
55}