aboutsummaryrefslogtreecommitdiff
path: root/math/R/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'math/R/Makefile')
-rw-r--r--math/R/Makefile48
1 files changed, 35 insertions, 13 deletions
diff --git a/math/R/Makefile b/math/R/Makefile
index 139ca8ab6a54..d04f5ca17422 100644
--- a/math/R/Makefile
+++ b/math/R/Makefile
@@ -1,3 +1,4 @@
+# ex: ts=8 sts=0 noet
# New ports collection makefile for: R (letter)
# Date created: Fri Feb 9 10:50:25 EST 2001
# Whom: Maurice Castro <maurice@serc.rmit.edu.au>
@@ -6,56 +7,77 @@
#
PORTNAME= R
-PORTVERSION= 1.7.1
+PORTVERSION= 1.8.0
CATEGORIES= math
MASTER_SITES= http://cran.r-project.org/src/base/ \
ftp://cran.r-project.org/pub/R/src/base/ \
http://cran.at.r-project.org/src/base/ \
http://cran.au.r-project.org/src/base/ \
+ http://cran.br.r-project.org/src/base/ \
http://cran.ch.r-project.org/src/base/ \
+ http://cran.es.r-project.org/src/base/ \
http://cran.dk.r-project.org/src/base/ \
http://cran.hu.r-project.org/src/base/ \
http://cran.uk.r-project.org/src/base/ \
http://cran.us.r-project.org/src/base/ \
+ http://cran.za.r-project.org/src/base/ \
ftp://ftp.u-aizu.ac.jp/pub/lang/R/CRAN/src/base/ \
- http://lib.stat.cmu.edu/R/CRAN/src/base/
+ http://lib.stat.cmu.edu/R/CRAN/src/base/ \
+ http://cran.stat.ucla.edu/src/base/ \
+ http://probability.ca/cran/src/base/ \
+ http://www.ibiblio.org/pub/languages/R/CRAN/src/base/ \
+ http://www.bioconductor.org/CRAN/src/base/
PKGNAMESUFFIX= -${PAPERSIZE}
EXTRACT_SUFX= .tgz
MAINTAINER= vangyzen@stat.duke.edu
COMMENT= A language for statistical computing and graphics
+CONFLICTS?= R-a4-*
+
LIB_DEPENDS= tcl84:${PORTSDIR}/lang/tcl84 \
tk84:${PORTSDIR}/x11-toolkits/tk84 \
jpeg.9:${PORTSDIR}/graphics/jpeg \
png.5:${PORTSDIR}/graphics/png \
- pcre.0:${PORTSDIR}/devel/pcre \
- lapack.3:${PORTSDIR}/math/lapack
+ pcre.0:${PORTSDIR}/devel/pcre
+
+.if defined(WITH_ATLAS)
+LIB_DEPENDS+= f77blas.1:${PORTSDIR}/math/atlas
+CONFIGURE_ARGS= --with-lapack="-lalapack -lcblas" --with-blas="-lf77blas"
+.else
+LIB_DEPENDS+= lapack.3:${PORTSDIR}/math/lapack
+CONFIGURE_ARGS= --with-lapack="-llapack" --with-blas="-lblas"
+.endif
GNU_CONFIGURE= yes
USE_XLIB= yes
USE_PERL5= yes
-CONFIGURE_ENV= R_PAPERSIZE=${PAPERSIZE} \
+CONFIGURE_ENV= R_PAPERSIZE=${PAPERSIZE} FFLAGS="${FFLAGS}" \
INSTALL_DATA="${INSTALL} ${COPY} ${_SHROWNGRP} -m 644"
-CONFIGURE_ARGS= --with-lapack
+CONFIGURE_ARGS+=--enable-R-shlib
PAPERSIZE?= letter
.if ${PAPERSIZE} != letter && ${PAPERSIZE} != a4
.BEGIN:
@${ECHO} "Invalid value for PAPERSIZE: \"${PAPERSIZE}\""
- @${ECHO} "Possible values are: a4 and letter."
+ @${ECHO} "Possible values are: a4 letter"
@${FALSE}
.endif
MAN1= R.1
-.include <bsd.port.pre.mk>
+test check: build
+ @(cd ${WRKSRC}; ${MAKE} check)
+check-all: build
+ @(cd ${WRKSRC}; ${MAKE} check-all)
-#.if ${OSVERSION} >= 500113
-#BROKEN= "Does not compile"
-#.endif
+.include <bsd.port.pre.mk>
-test check: build
- @(cd ${WRKSRC}; make check)
+# Work around a gcc-3.3.1 internal compiler error on 5.1-CURRENT.
+.if ${OSVERSION} >= 501103
+pre-build:
+ @(cd ${WRKSRC}/src/include; ${MAKE} Rmath.h)
+ @(cd ${WRKSRC}/src/main; ${MAKE} CFLAGS+=-O0 plotmath.o)
+.endif
.include <bsd.port.post.mk>