aboutsummaryrefslogtreecommitdiffstats
path: root/math/R/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'math/R/Makefile')
-rw-r--r--math/R/Makefile124
1 files changed, 73 insertions, 51 deletions
diff --git a/math/R/Makefile b/math/R/Makefile
index 112a54641bd6..b7415637f0a6 100644
--- a/math/R/Makefile
+++ b/math/R/Makefile
@@ -7,8 +7,7 @@
#
PORTNAME= R
-PORTVERSION= 2.8.1
-PORTREVISION= 1
+PORTVERSION= 2.9.0
CATEGORIES= math lang
MASTER_SITES= http://cran.r-project.org/src/base/R-2/ \
ftp://cran.r-project.org/pub/R/src/base/R-2/ \
@@ -32,17 +31,20 @@ MASTER_SITES= http://cran.r-project.org/src/base/R-2/ \
MAINTAINER= bf1783@gmail.com
COMMENT= A language for statistical computing and graphics
-OPTIONS= ATLAS "Use ATLAS instead of BLAS/LAPACK" off \
- TCLTK "Use Tcl/Tk (for the tcltk package)" on \
- JPEG "Enable the jpeg() graphics device" on \
- PNG "Enable the png() graphics device" on \
- X11 "Enable the X11() graphics device" on \
- GHOSTSCRIPT "Enable the [dev2]bitmap() graphics devices" on \
- PCRE_PORT "Use PCRE port instead of bundled source" on \
- DVI_MANUALS "Install DVI manuals (requires TeX)" off \
- PDF_MANUALS "Install PDF manuals (requires TeX)" off \
- INFO_MANUALS "Install GNU info manuals" on \
- LETTER_PAPER "Use US Letter paper" off
+OPTIONS= ATLAS "Use ATLAS instead of BLAS/LAPACK" off \
+ GHOSTSCRIPT "Enable the [dev2]bitmap() graphics devices" on \
+ ICU "Improve collation in multibyte locales with ICU" on \
+ JPEG "Enable the jpeg() graphics device" on \
+ LETTER_PAPER "Use US Letter paper" off \
+ NLS "Build with NLS support" on \
+ PCRE_PORT "Use PCRE port instead of bundled source" on \
+ PNG "Enable the png() graphics device" on \
+ TCLTK "Use Tcl/Tk (for the tcltk package)" on \
+ THREADS "Build a multithreaded R" on \
+ X11 "Enable the X11() graphics device" on \
+ DVI_MANUALS "Install DVI manuals (requires TeX)" off \
+ INFO_MANUALS "Install GNU info manuals" on \
+ PDF_MANUALS "Install PDF manuals (requires TeX)" off
MAN1= R.1 Rscript.1
@@ -54,7 +56,6 @@ ALL_TARGET= all
GNU_CONFIGURE= yes
USE_ICONV= yes
USE_PERL5= yes
-USE_GETTEXT= yes
CONFIGURE_ENV= INSTALL_DATA="${INSTALL} ${COPY} ${_SHROWNGRP} -m 644"
CONFIGURE_ARGS= --enable-R-shlib --with-system-bzlib --with-system-zlib \
@@ -62,14 +63,6 @@ CONFIGURE_ARGS= --enable-R-shlib --with-system-bzlib --with-system-zlib \
.include <bsd.port.pre.mk>
-.ifndef WITHOUT_NLS
-USE_GETTEXT= yes
-PLIST_SUB+= NLS=""
-.else
-CONFIGURE_ARGS+=--disable-nls
-PLIST_SUB+= NLS="@comment "
-.endif
-
.if defined(WITH_ATLAS)
LIB_DEPENDS+= atlas.2:${PORTSDIR}/math/atlas
CONFIGURE_ARGS+=--with-blas="-lf77blas -latlas"
@@ -83,14 +76,15 @@ LIB_DEPENDS+= blas.2:${PORTSDIR}/math/blas \
CONFIGURE_ARGS+=--with-blas="-lblas" --with-lapack="-llapack -lblas"
.endif
-.if defined(WITHOUT_TCLTK)
-CONFIGURE_ARGS+=--without-tcltk
-PLIST_SUB+= TCLTK="@comment "
+.if !defined(WITHOUT_GHOSTSCRIPT)
+USE_GHOSTSCRIPT_RUN=yes
+.endif
+
+.if defined(WITHOUT_ICU)
+CONFIGURE_ARGS+=--without-ICU
.else
-LIB_DEPENDS+= tcl85:${PORTSDIR}/lang/tcl85 \
- tk85:${PORTSDIR}/x11-toolkits/tk85
-CONFIGURE_ARGS+=--with-tcltk
-PLIST_SUB+= TCLTK=""
+LIB_DEPENDS+= icui18n:${PORTSDIR}/devel/icu
+CONFIGURE_ARGS+=--with-ICU
.endif
.if defined(WITHOUT_JPEG)
@@ -100,6 +94,25 @@ LIB_DEPENDS+= jpeg.9:${PORTSDIR}/graphics/jpeg
CONFIGURE_ARGS+=--with-jpeglib
.endif
+.if defined(WITH_LETTER_PAPER)
+CONFIGURE_ENV+= R_PAPERSIZE=letter
+.endif
+
+.if !defined(WITHOUT_NLS)
+USE_GETTEXT= yes
+PLIST_SUB+= NLS=""
+.else
+CONFIGURE_ARGS+=--disable-nls
+PLIST_SUB+= NLS="@comment "
+.endif
+
+.if defined(WITHOUT_PCRE_PORT)
+CONFIGURE_ARGS+=--without-system-pcre
+.else
+LIB_DEPENDS+= pcre.0:${PORTSDIR}/devel/pcre
+CONFIGURE_ARGS+=--with-system-pcre
+.endif
+
.if defined(WITHOUT_PNG)
CONFIGURE_ARGS+=--without-libpng
.else
@@ -107,6 +120,22 @@ LIB_DEPENDS+= png.5:${PORTSDIR}/graphics/png
CONFIGURE_ARGS+=--with-libpng
.endif
+.if defined(WITHOUT_TCLTK)
+CONFIGURE_ARGS+=--without-tcltk
+PLIST_SUB+= TCLTK="@comment "
+.else
+USE_TK = 83+
+.include "${PORTSDIR}/Mk/bsd.tcl.mk"
+CONFIGURE_ARGS+=--with-tcltk
+PLIST_SUB+= TCLTK=""
+.endif
+
+.if defined(WITHOUT_THREADS)
+CONFIGURE_ARGS+=--disable-threads
+.else
+CONFIGURE_ARGS+=--enable-threads=posix
+.endif
+
.if defined(WITHOUT_X11)
CONFIGURE_ARGS+=--without-x
PLIST_SUB+= X11="@comment "
@@ -116,17 +145,6 @@ USE_XORG= x11 xt
PLIST_SUB+= X11=""
.endif
-.if !defined(WITHOUT_GHOSTSCRIPT)
-USE_GHOSTSCRIPT_RUN=yes
-.endif
-
-.if defined(WITHOUT_PCRE_PORT)
-CONFIGURE_ARGS+=--without-system-pcre
-.else
-LIB_DEPENDS+= pcre.0:${PORTSDIR}/devel/pcre
-CONFIGURE_ARGS+=--with-system-pcre
-.endif
-
.if defined(WITH_DVI_MANUALS) && !defined(NOPORTDOCS)
BUILD_DEPENDS+= pdflatex:${PORTSDIR}/print/teTeX-base
ALL_TARGET+= dvi
@@ -136,28 +154,32 @@ PLIST_SUB+= DVI_MANUAL=""
PLIST_SUB+= DVI_MANUAL="@comment "
.endif
-.if defined(WITHOUT_PDF_MANUALS) && !defined(NOPORTDOCS)
-PLIST_SUB+= PDF_MANUAL="@comment "
-.else
-PLIST_SUB+= PDF_MANUAL=""
-BUILD_DEPENDS+= pdflatex:${PORTSDIR}/print/teTeX-base
-ALL_TARGET+= pdf
-INSTALL_TARGET+= install-pdf
-.endif
-
.if defined(WITH_INFO_MANUALS) && !defined(NOPORTDOCS)
ALL_TARGET+= info
INFO= R-FAQ R-admin R-data R-exts R-intro R-lang
.endif
-.if defined(WITH_LETTER_PAPER)
-CONFIGURE_ENV+= R_PAPERSIZE=letter
+.if defined(WITH_PDF_MANUALS) && !defined(NOPORTDOCS)
+PLIST_SUB+= PDF_MANUAL=""
+BUILD_DEPENDS+= pdflatex:${PORTSDIR}/print/teTeX-base
+ALL_TARGET+= pdf
+INSTALL_TARGET+= install-pdf
+.else
+PLIST_SUB+= PDF_MANUAL="@comment "
.endif
post-patch:
@${REINPLACE_CMD} -e 's|(libdir)/pkgconfig|(prefix)/libdata/pkgconfig|g' \
${WRKSRC}/src/nmath/standalone/Makefile.in \
${WRKSRC}/src/unix/Makefile.in
+ @${REINPLACE_CMD} -e "s|-lpthread|${PTHREAD_LIBS}|g" ${WRKSRC}/configure
+.if defined(WITHOUT_NLS)
+ (cd ${WRKSRC}/src/library/Recommended; \
+ for tarfile in *.tgz *.tar.gz ; do \
+ ${TAR} -czf temptgz --exclude='*/po/*' @$$tarfile ; \
+ ${MV} temptgz $$tarfile ; \
+ done)
+.endif
regression-test: build
@(cd ${WRKSRC}; ${MAKE} check)