2012-12-18 23:09:07 +00:00
|
|
|
# Created by: Maurice Castro <maurice@serc.rmit.edu.au>
|
1999-08-25 07:05:28 +00:00
|
|
|
# $FreeBSD$
|
1998-05-04 17:53:35 +00:00
|
|
|
|
2011-05-05 09:01:08 +00:00
|
|
|
PORTNAME?= R
|
2013-05-28 15:15:05 +00:00
|
|
|
PORTVERSION= 3.0.1
|
2004-06-25 16:14:44 +00:00
|
|
|
CATEGORIES= math lang
|
2013-05-28 15:15:05 +00:00
|
|
|
MASTER_SITES= http://cran.r-project.org/%SUBDIR%/ \
|
|
|
|
ftp://cran.r-project.org/pub/R/%SUBDIR%/ \
|
|
|
|
http://cran.at.r-project.org/%SUBDIR%/ \
|
|
|
|
http://cran.au.r-project.org/%SUBDIR%/ \
|
|
|
|
http://cran.br.r-project.org/%SUBDIR%/ \
|
|
|
|
http://cran.ch.r-project.org/%SUBDIR%/ \
|
|
|
|
http://cran.es.r-project.org/%SUBDIR%/ \
|
|
|
|
http://cran.dk.r-project.org/%SUBDIR%/ \
|
|
|
|
http://cran.uk.r-project.org/%SUBDIR%/ \
|
|
|
|
http://cran.us.r-project.org/%SUBDIR%/ \
|
|
|
|
ftp://ftp.u-aizu.ac.jp/pub/lang/R/CRAN/%SUBDIR%/ \
|
|
|
|
http://lib.stat.cmu.edu/R/CRAN/%SUBDIR%/ \
|
|
|
|
http://cran.stat.ucla.edu/%SUBDIR%/ \
|
|
|
|
http://probability.ca/cran/%SUBDIR%/
|
|
|
|
MASTER_SITE_SUBDIR= src/base/R-${PORTVERSION:C|\..*||}
|
2010-02-02 16:04:22 +00:00
|
|
|
DISTNAME= R-${PORTVERSION}
|
1998-05-04 17:53:35 +00:00
|
|
|
|
2010-07-08 12:51:37 +00:00
|
|
|
MAINTAINER= bf@FreeBSD.org
|
2011-05-05 09:01:08 +00:00
|
|
|
COMMENT?= A language for statistical computing and graphics
|
1998-05-04 17:53:35 +00:00
|
|
|
|
2013-01-04 17:51:39 +00:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/bin/gsed:${PORTSDIR}/textproc/gsed
|
|
|
|
|
2013-05-28 15:15:05 +00:00
|
|
|
CONFIGURE_ENV= SED="${LOCALBASE}/bin/gsed" \
|
|
|
|
ac_cv_have_decl_powl=yes ac_cv_have_decl_log1pl=yes
|
2013-01-04 17:51:39 +00:00
|
|
|
|
|
|
|
OPTIONS_DEFINE= MISSING
|
|
|
|
|
|
|
|
MISSING_DESC= use libmissing rather than libquadmath
|
2012-06-29 01:46:36 +00:00
|
|
|
|
2010-02-02 16:04:22 +00:00
|
|
|
.if defined(LIBRMATH_SLAVEPORT)
|
|
|
|
BUILD_WRKSRC= ${WRKSRC}/src/nmath/standalone
|
2013-01-04 17:51:39 +00:00
|
|
|
CONFIGURE_ARGS= --disable-nls --with-ICU=no --with-cairo=no \
|
|
|
|
--with-jpeglib=no --with-libpng=no --with-libtiff=no \
|
|
|
|
--with-readline=no --with-tcltk=no --with-x=no \
|
|
|
|
--without-libintl-prefix
|
|
|
|
CONFIGURE_ENV+= ac_cv_header_iconv_h=no
|
2011-05-07 03:29:59 +00:00
|
|
|
PLIST_SUB= RMATH_SOVERSION="${RMATH_SOVERSION}"
|
|
|
|
USE_LDCONFIG= yes
|
2010-02-02 16:04:22 +00:00
|
|
|
.else # LIBRMATH_SLAVEPORT
|
2011-05-05 09:01:08 +00:00
|
|
|
ALL_TARGET= all
|
2011-08-04 23:32:05 +00:00
|
|
|
INSTALL_TARGET = install
|
2011-05-05 09:01:08 +00:00
|
|
|
CONFIGURE_ARGS = --enable-memory-profiling rdocdir=${DOCSDIR} \
|
|
|
|
--with-system-bzlib --with-system-zlib
|
2013-01-04 17:51:39 +00:00
|
|
|
CONFIGURE_ENV+= FCFLAGS="${FFLAGS}" \
|
2011-05-05 09:01:08 +00:00
|
|
|
INSTALL_DATA="${INSTALL} ${COPY} ${_SHROWNGRP} -m 644" \
|
|
|
|
R_LD_LIBRARY_PATH="${R_LD_LIBRARY_PATH}" TAR="${TAR}"
|
2013-01-04 17:51:39 +00:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2012-06-26 23:57:00 +00:00
|
|
|
|
2013-01-04 17:51:39 +00:00
|
|
|
OPTIONS_DEFINE+= ATLAS ICU PCRE_PORT THREADS
|
2012-06-26 23:57:00 +00:00
|
|
|
|
|
|
|
ATLAS_DESC= Use ATLAS instead of BLAS/LAPACK
|
|
|
|
ICU_DESC= Use ICU for collation in multibyte locales
|
|
|
|
PCRE_PORT_DESC = Use devel/pcre instead of the bundled PCRE
|
|
|
|
|
2013-05-28 15:15:05 +00:00
|
|
|
OPTIONS_DEFAULT+= ICU PCRE_PORT THREADS
|
2011-07-28 04:19:58 +00:00
|
|
|
.if !defined(LIBR_SLAVEPORT)
|
2013-01-04 17:51:39 +00:00
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/bin/gsed:${PORTSDIR}/textproc/gsed
|
|
|
|
USE_LDCONFIG= ${PREFIX}/lib/R/lib
|
2013-05-28 15:15:05 +00:00
|
|
|
#now only used to build the R.1 manpage:
|
2013-09-16 16:32:07 +00:00
|
|
|
USES+= perl5
|
|
|
|
USE_PERL5= build
|
2013-01-04 17:51:39 +00:00
|
|
|
|
|
|
|
MAN1= R.1 Rscript.1
|
|
|
|
|
2012-06-26 23:57:00 +00:00
|
|
|
OPTIONS_DEFINE+= GHOSTSCRIPT INFO_MANUALS JPEG LETTER_PAPER LIBR \
|
2013-01-04 17:51:39 +00:00
|
|
|
PANGOCAIRO PDF_MANUALS PNG TCLTK TIFF X11
|
2012-06-26 23:57:00 +00:00
|
|
|
|
|
|
|
GHOSTSCRIPT_DESC= [dev2]bitmap() graphics devices
|
|
|
|
INFO_MANUALS_DESC= GNU info manuals
|
|
|
|
JPEG_DESC= jpeg() graphics device
|
|
|
|
LETTER_PAPER_DESC= US Letter paper
|
|
|
|
LIBR_DESC= R shared library and a dynamically-linked R
|
|
|
|
PANGOCAIRO_DESC= cairo and pango graphics support
|
|
|
|
PDF_MANUALS_DESC= PDF manuals (requires TeX)
|
|
|
|
PNG_DESC= png() graphics device
|
|
|
|
TCLTK_DESC= tcltk package
|
|
|
|
X11_DESC= X11() graphics device
|
|
|
|
|
2013-01-04 17:51:39 +00:00
|
|
|
OPTIONS_DEFAULT+= GHOSTSCRIPT INFO_MANUALS JPEG LIBR PANGOCAIRO PNG \
|
|
|
|
TCLTK TIFF X11
|
2012-06-26 23:57:00 +00:00
|
|
|
|
2011-07-28 04:19:58 +00:00
|
|
|
.endif # !LIBR_SLAVEPORT
|
2011-05-07 03:29:59 +00:00
|
|
|
PLIST_SUB= R_SOVERSION="${R_SOVERSION}" \
|
|
|
|
RBLAS_SOVERSION="${RBLAS_SOVERSION}" \
|
|
|
|
RLAPACK_SOVERSION="${RLAPACK_SOVERSION}"
|
2012-10-14 18:04:32 +00:00
|
|
|
R_LD_LIBRARY_PATH= ${_GCC_RUNTIME}:${LOCALBASE}/lib
|
2013-04-27 11:59:28 +00:00
|
|
|
USES+= iconv
|
2010-02-02 16:04:22 +00:00
|
|
|
.endif # LIBRMATH_SLAVEPORT
|
2011-05-05 09:01:08 +00:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
MAKE_JOBS_UNSAFE= yes
|
2013-05-28 15:15:05 +00:00
|
|
|
R_SOVERSION= 1
|
2011-05-07 03:29:59 +00:00
|
|
|
RBLAS_SOVERSION= 2
|
|
|
|
RLAPACK_SOVERSION= 4
|
|
|
|
RMATH_SOVERSION= 0
|
2011-05-05 09:01:08 +00:00
|
|
|
USE_FORTRAN= yes
|
2005-10-12 07:31:55 +00:00
|
|
|
|
2012-06-26 23:57:00 +00:00
|
|
|
.include <bsd.port.options.mk>
|
2004-04-19 22:19:14 +00:00
|
|
|
|
2011-05-07 03:29:59 +00:00
|
|
|
.if ${ARCH} == "sparc64" || ${ARCH} == "powerpc64"
|
|
|
|
PICFLAG?= -fPIC
|
|
|
|
.else
|
|
|
|
PICFLAG?= -fpic
|
|
|
|
.endif
|
|
|
|
.for flag in LD CXXLD
|
|
|
|
CONFIGURE_ENV += SHLIB_${flag}FLAGS="${PICFLAG}"
|
|
|
|
.endfor
|
|
|
|
|
2013-01-04 17:51:39 +00:00
|
|
|
.if ${PORT_OPTIONS:MMISSING}
|
|
|
|
LIB_DEPENDS+= missing:${PORTSDIR}/math/libmissing
|
2013-08-15 22:13:42 +00:00
|
|
|
LIBM= -lm -L${LOCALBASE}/lib -lmissing
|
2013-01-04 17:51:39 +00:00
|
|
|
LIBMH= "missing_math.h"
|
|
|
|
.if defined(LIBRMATH_SLAVEPORT)
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
.endif
|
|
|
|
.else
|
2013-08-15 22:13:42 +00:00
|
|
|
LIBM= -lm -lquadmath
|
2013-01-04 17:51:39 +00:00
|
|
|
LIBMH= <quadmath.h>
|
|
|
|
.endif
|
|
|
|
|
2010-02-02 16:04:22 +00:00
|
|
|
.if !defined(LIBRMATH_SLAVEPORT)
|
2012-06-26 23:57:00 +00:00
|
|
|
.if ${PORT_OPTIONS:MATLAS}
|
|
|
|
LIB_DEPENDS+= atlas:${PORTSDIR}/math/atlas
|
2011-11-22 11:14:10 +00:00
|
|
|
BLAS?= -lf77blas
|
2011-05-07 07:51:44 +00:00
|
|
|
LAPACK?= -lalapack -lcblas
|
2011-05-07 03:29:59 +00:00
|
|
|
.else
|
|
|
|
BLAS?= no
|
|
|
|
LAPACK?= no
|
2007-02-14 01:45:28 +00:00
|
|
|
.endif
|
2011-05-07 03:29:59 +00:00
|
|
|
CONFIGURE_ARGS+= --with-blas="${BLAS}" --with-lapack="${LAPACK}"
|
|
|
|
.if ${BLAS} == "no" || ${LAPACK} == "no"
|
|
|
|
PLIST_SUB+= LAPACK=""
|
2007-02-14 01:45:28 +00:00
|
|
|
.else
|
2011-05-07 03:29:59 +00:00
|
|
|
PLIST_SUB+= LAPACK="@comment "
|
2005-10-12 07:31:55 +00:00
|
|
|
.endif
|
|
|
|
|
2012-06-26 23:57:00 +00:00
|
|
|
.if ${PORT_OPTIONS:MICU}
|
2011-05-05 09:01:08 +00:00
|
|
|
LIB_DEPENDS+= icui18n:${PORTSDIR}/devel/icu
|
|
|
|
CONFIGURE_ARGS+= --with-ICU
|
2012-06-26 23:57:00 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-ICU
|
2005-10-12 07:31:55 +00:00
|
|
|
.endif
|
|
|
|
|
2012-06-26 23:57:00 +00:00
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
2013-05-28 15:15:05 +00:00
|
|
|
USES+= gettext
|
2011-07-28 04:19:58 +00:00
|
|
|
PLIST_SUB+= NLS=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-nls
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
|
|
|
.endif
|
|
|
|
|
2012-06-26 23:57:00 +00:00
|
|
|
.if ${PORT_OPTIONS:MPCRE_PORT}
|
|
|
|
LIB_DEPENDS+= pcre:${PORTSDIR}/devel/pcre
|
2011-07-28 04:19:58 +00:00
|
|
|
CONFIGURE_ARGS+= --with-system-pcre
|
2012-06-26 23:57:00 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-system-pcre
|
2011-07-28 04:19:58 +00:00
|
|
|
.endif
|
|
|
|
|
2012-06-26 23:57:00 +00:00
|
|
|
.if ${PORT_OPTIONS:MTHREADS}
|
2011-07-28 04:19:58 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-threads=posix
|
2012-06-26 23:57:00 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-threads
|
2011-07-28 04:19:58 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(LIBR_SLAVEPORT)
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --disable-BLAS-shlib --without-pic --without-x
|
|
|
|
|
|
|
|
.else # LIBR_SLAVEPORT
|
|
|
|
|
2012-06-26 23:57:00 +00:00
|
|
|
.if ${PORT_OPTIONS:MGHOSTSCRIPT}
|
2011-07-28 04:19:58 +00:00
|
|
|
USE_GHOSTSCRIPT_RUN= yes
|
|
|
|
.endif
|
|
|
|
|
2012-06-26 23:57:00 +00:00
|
|
|
.if ${PORT_OPTIONS:MJPEG}
|
|
|
|
LIB_DEPENDS+= jpeg:${PORTSDIR}/graphics/jpeg
|
2011-05-05 09:01:08 +00:00
|
|
|
CONFIGURE_ARGS+= --with-jpeglib
|
2012-06-26 23:57:00 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-jpeglib
|
2005-10-12 07:31:55 +00:00
|
|
|
.endif
|
|
|
|
|
2012-06-26 23:57:00 +00:00
|
|
|
.if ${PORT_OPTIONS:MLETTER_PAPER}
|
2011-05-05 09:01:08 +00:00
|
|
|
CONFIGURE_ENV += R_PAPERSIZE=letter
|
2009-06-15 21:07:11 +00:00
|
|
|
.endif
|
|
|
|
|
2012-06-26 23:57:00 +00:00
|
|
|
.if ${PORT_OPTIONS:MLIBR}
|
2011-05-07 03:29:59 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-R-shlib
|
|
|
|
PLIST_SUB+= LIBR=""
|
2012-06-26 23:57:00 +00:00
|
|
|
.else
|
|
|
|
PLIST_SUB+= LIBR="@comment "
|
2011-05-07 03:29:59 +00:00
|
|
|
.endif
|
|
|
|
|
2012-06-26 23:57:00 +00:00
|
|
|
.if ${PORT_OPTIONS:MPANGOCAIRO}
|
2013-09-04 17:39:25 +00:00
|
|
|
USES+= pkgconfig
|
2011-05-07 03:29:59 +00:00
|
|
|
USE_GNOME+= pango
|
2012-03-03 16:59:36 +00:00
|
|
|
PLIST_SUB+= PANGOCAIRO=""
|
2012-06-26 23:57:00 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-cairo
|
|
|
|
PLIST_SUB+= PANGOCAIRO="@comment "
|
2011-05-07 03:29:59 +00:00
|
|
|
.endif
|
|
|
|
|
2012-06-26 23:57:00 +00:00
|
|
|
.if ${PORT_OPTIONS:MPNG}
|
2012-06-01 05:26:28 +00:00
|
|
|
LIB_DEPENDS+= png15:${PORTSDIR}/graphics/png
|
2011-05-05 09:01:08 +00:00
|
|
|
CONFIGURE_ARGS+= --with-libpng
|
2012-06-26 23:57:00 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-libpng
|
2005-10-12 07:31:55 +00:00
|
|
|
.endif
|
|
|
|
|
2012-06-26 23:57:00 +00:00
|
|
|
.if ${PORT_OPTIONS:MTCLTK}
|
2011-05-05 09:01:08 +00:00
|
|
|
USE_TK = 84+
|
|
|
|
CONFIGURE_ARGS+= --with-tcltk \
|
|
|
|
--with-tcl-config=${TCL_LIBDIR}/tclConfig.sh \
|
|
|
|
--with-tk-config=${TK_LIBDIR}/tkConfig.sh
|
|
|
|
PLIST_SUB+= TCLTK=""
|
2012-06-26 23:57:00 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-tcltk
|
|
|
|
PLIST_SUB+= TCLTK="@comment "
|
2009-06-15 21:07:11 +00:00
|
|
|
.endif
|
|
|
|
|
2013-01-04 17:51:39 +00:00
|
|
|
.if ${PORT_OPTIONS:MTIFF}
|
|
|
|
LIB_DEPENDS+= tiff:${PORTSDIR}/graphics/tiff
|
|
|
|
CONFIGURE_ARGS+= --with-libtiff
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-libtiff
|
|
|
|
.endif
|
|
|
|
|
2012-06-26 23:57:00 +00:00
|
|
|
.if ${PORT_OPTIONS:MX11}
|
2011-05-05 09:01:08 +00:00
|
|
|
CONFIGURE_ARGS+= --with-x
|
2011-05-07 03:29:59 +00:00
|
|
|
USE_XORG= x11 xmu xt
|
2011-05-05 09:01:08 +00:00
|
|
|
PLIST_SUB+= X11=""
|
2012-06-26 23:57:00 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-x
|
|
|
|
PLIST_SUB+= X11="@comment "
|
2005-10-12 07:31:55 +00:00
|
|
|
.endif
|
|
|
|
|
2012-06-26 23:57:00 +00:00
|
|
|
.if ${PORT_OPTIONS:MINFO_MANUALS} && ${PORT_OPTIONS:MDOCS}
|
2005-10-12 07:31:55 +00:00
|
|
|
ALL_TARGET+= info
|
|
|
|
INFO= R-FAQ R-admin R-data R-exts R-intro R-lang
|
|
|
|
.endif
|
|
|
|
|
2012-06-26 23:57:00 +00:00
|
|
|
.if ${PORT_OPTIONS:MPDF_MANUALS} && ${PORT_OPTIONS:MDOCS}
|
2013-05-28 15:15:05 +00:00
|
|
|
BROKEN= The PDF_MANUALS option cannot be used, because it\
|
|
|
|
requires broken components of texlive
|
|
|
|
USE_TEX= texlive pdftex:build
|
2013-05-06 02:00:40 +00:00
|
|
|
BUILD_DEPENDS += texi2dvi:${PORTSDIR}/print/texinfo
|
2011-11-27 07:02:15 +00:00
|
|
|
ALL_TARGET+= pdf
|
2012-05-21 05:18:35 +00:00
|
|
|
CONFIGURE_ENV += INSTALL_INFO="${LOCALBASE}/bin/install-info" \
|
|
|
|
MAKEINFO="${LOCALBASE}/bin/makeinfo"
|
2011-11-27 07:02:15 +00:00
|
|
|
INSTALL_TARGET+= install-pdf
|
|
|
|
PLIST_SUB+= PDF_MANUAL=""
|
2009-06-15 21:07:11 +00:00
|
|
|
.else
|
2011-11-27 07:02:15 +00:00
|
|
|
PLIST_SUB+= PDF_MANUAL="@comment "
|
2005-10-12 07:31:55 +00:00
|
|
|
.endif
|
2011-07-28 04:19:58 +00:00
|
|
|
.endif # LIBR_SLAVEPORT
|
2010-02-02 16:04:22 +00:00
|
|
|
.endif # !LIBRMATH_SLAVEPORT
|
2005-07-03 16:45:58 +00:00
|
|
|
|
2007-05-30 14:10:18 +00:00
|
|
|
post-patch:
|
2013-01-04 17:51:39 +00:00
|
|
|
.if !${PORT_OPTIONS:MMISSING}
|
2013-05-28 15:15:05 +00:00
|
|
|
.if ${OSVERSION} < 1000016
|
|
|
|
@${REINPLACE_CMD} -e 's/# define EXP expl/# define EXP(x) (long double)expq((__float128)(x))/' \
|
|
|
|
${WRKSRC}/src/nmath/pnchisq.c
|
|
|
|
.endif
|
|
|
|
@${REINPLACE_CMD} -Ee 's/(log)(1p)?l\(/(long double)\1\2q((__float128)/' \
|
2013-01-04 17:51:39 +00:00
|
|
|
${WRKSRC}/src/nmath/dnbeta.c \
|
|
|
|
${WRKSRC}/src/nmath/pnbeta.c
|
2013-05-28 15:15:05 +00:00
|
|
|
@${REINPLACE_CMD} -Ee 's/powl\((.*)(long double)/(long double)powq((__float128)\1__float128/' \
|
|
|
|
${WRKSRC}/src/main/format.c
|
2013-01-04 17:51:39 +00:00
|
|
|
.endif
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
'\|#include <math.h>|{x;s|^.*$$|#include ${LIBMH}|;H;x;}' \
|
|
|
|
${WRKSRC}/src/nmath/nmath.h
|
2011-11-27 07:02:15 +00:00
|
|
|
@${REINPLACE_CMD} -e '\|LIBS=|s|-lrt ||' \
|
2013-01-04 17:51:39 +00:00
|
|
|
-e '\|-lm[". ]|s|-lm|${LIBM}|' \
|
2011-11-27 07:02:15 +00:00
|
|
|
${WRKSRC}/configure
|
2007-05-30 14:10:18 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|(libdir)/pkgconfig|(prefix)/libdata/pkgconfig|g' \
|
|
|
|
${WRKSRC}/src/nmath/standalone/Makefile.in \
|
|
|
|
${WRKSRC}/src/unix/Makefile.in
|
2009-08-27 09:16:19 +00:00
|
|
|
@${REINPLACE_CMD} -e "s|-lpthread|${PTHREAD_LIBS}|g" \
|
|
|
|
${WRKSRC}/configure \
|
|
|
|
${WRKSRC}/src/scripts/javareconf
|
|
|
|
@${REINPLACE_CMD} -e "s|/usr/local|${LOCALBASE}|g" \
|
|
|
|
${WRKSRC}/configure \
|
2013-05-28 15:15:05 +00:00
|
|
|
${WRKSRC}/src/library/profile/Rprofile.unix \
|
2009-08-27 09:16:19 +00:00
|
|
|
${WRKSRC}/src/scripts/javareconf
|
2010-02-02 16:04:22 +00:00
|
|
|
.if !defined(LIBRMATH_SLAVEPORT)
|
2013-01-04 17:51:39 +00:00
|
|
|
.if !${PORT_OPTIONS:MNLS}
|
2009-08-27 09:16:19 +00:00
|
|
|
@(cd ${WRKSRC}/src/library/Recommended; \
|
2009-06-15 21:07:11 +00:00
|
|
|
for tarfile in *.tgz *.tar.gz ; do \
|
|
|
|
${TAR} -czf temptgz --exclude='*/po/*' @$$tarfile ; \
|
|
|
|
${MV} temptgz $$tarfile ; \
|
|
|
|
done)
|
2013-05-28 15:15:05 +00:00
|
|
|
@${REINPLACE_CMD} -e '/ls -d $$(srcdir)\/inst/d' \
|
|
|
|
${WRKSRC}/src/library/translations/Makefile.in
|
2009-06-15 21:07:11 +00:00
|
|
|
.endif
|
2007-05-30 14:10:18 +00:00
|
|
|
|
2013-01-04 17:51:39 +00:00
|
|
|
.if !${PORT_OPTIONS:MMISSING}
|
|
|
|
pre-configure:
|
|
|
|
@if [ ! -f ${_GCC_RUNTIME}/libquadmath.a ] ; then \
|
|
|
|
${PRINTF} "\n\n\n%s\n\n\n" "libquadmath is not available for your\
|
|
|
|
compiler and architecture: please enable the MISSING option." ; \
|
|
|
|
exit 1 ; fi
|
|
|
|
.endif
|
|
|
|
|
2011-07-28 04:19:58 +00:00
|
|
|
.if defined(LIBR_SLAVEPORT)
|
|
|
|
do-build:
|
|
|
|
.for d in include extra
|
|
|
|
@(cd ${WRKSRC}/src/${d}; ${SETENV} ${MAKE_ENV} ${MAKE} ${_MAKE_JOBS} \
|
|
|
|
${MAKE_ARGS} R)
|
|
|
|
.endfor
|
2011-05-07 03:29:59 +00:00
|
|
|
@(cd ${WRKSRC}/src/main; ${SETENV} ${MAKE_ENV} ${MAKE} ${_MAKE_JOBS} \
|
2011-07-28 04:19:58 +00:00
|
|
|
${MAKE_ARGS} Makefile Makedeps libR.a)
|
2011-05-07 03:29:59 +00:00
|
|
|
|
2011-07-28 04:19:58 +00:00
|
|
|
do-install:
|
|
|
|
@${MKDIR} ${PREFIX}/lib/R/lib
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/src/main/libR.a ${PREFIX}/lib/R/lib
|
|
|
|
|
|
|
|
.else # LIBR_SLAVEPORT
|
2011-05-07 03:29:59 +00:00
|
|
|
|
2013-05-28 15:15:05 +00:00
|
|
|
pre-configure-script:
|
|
|
|
@${FIND} ${WRKSRC} \( -name '*.orig' -o -name '*.bak' \) -delete
|
|
|
|
|
2011-02-28 16:03:13 +00:00
|
|
|
check regression-test test: build
|
2011-05-07 03:29:59 +00:00
|
|
|
@(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} LANGUAGE=en \
|
|
|
|
LC_COLLATE=C LC_TIME=C ${MAKE} ${_MAKE_JOBS} ${MAKE_ARGS} \
|
|
|
|
check)
|
2008-07-29 14:13:14 +00:00
|
|
|
|
|
|
|
check-all: build
|
2011-05-07 03:29:59 +00:00
|
|
|
@(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} LANGUAGE=en \
|
|
|
|
LC_COLLATE=C LC_TIME=C ${MAKE} ${_MAKE_JOBS} ${MAKE_ARGS} \
|
|
|
|
check-all)
|
2008-07-29 14:13:14 +00:00
|
|
|
|
2006-04-29 12:08:28 +00:00
|
|
|
post-install:
|
2011-05-07 03:29:59 +00:00
|
|
|
.for L in R Rblas Rlapack
|
|
|
|
@(cd ${PREFIX}/lib/R/lib; if [ -f lib${L}.so ] ; then \
|
|
|
|
${LN} -sf lib${L}.so lib${L}.so.${${L:U}_SOVERSION} ; fi)
|
|
|
|
.endfor
|
2012-06-26 23:57:00 +00:00
|
|
|
.if ${PORT_OPTIONS:MINFO_MANUALS} && ${PORT_OPTIONS:MDOCS}
|
2009-08-27 09:16:19 +00:00
|
|
|
@(cd ${WRKSRC}/doc/manual; \
|
2006-04-29 12:08:28 +00:00
|
|
|
for infofile in ${INFO}; do \
|
|
|
|
${INSTALL_DATA} $${infofile}.info* ${PREFIX}/${INFO_PATH}/; \
|
|
|
|
done)
|
|
|
|
.endif
|
|
|
|
|
2011-07-28 04:19:58 +00:00
|
|
|
.endif # LIBR_SLAVEPORT
|
2010-02-02 16:04:22 +00:00
|
|
|
.else # !LIBRMATH_SLAVEPORT
|
|
|
|
do-install:
|
2011-05-07 03:29:59 +00:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/src/include/Rmath.h ${PREFIX}/include
|
2011-07-28 04:19:58 +00:00
|
|
|
@${INSTALL_DATA} ${BUILD_WRKSRC}/libRmath.a ${PREFIX}/lib
|
|
|
|
@${STRIP_CMD} ${BUILD_WRKSRC}/libRmath.so
|
|
|
|
@${INSTALL_DATA} ${BUILD_WRKSRC}/libRmath.so \
|
2011-05-07 03:29:59 +00:00
|
|
|
${PREFIX}/lib/libRmath.so.${RMATH_SOVERSION}
|
|
|
|
@(cd ${PREFIX}/lib; ${LN} -sf libRmath.so.${RMATH_SOVERSION} libRmath.so)
|
|
|
|
|
|
|
|
check regression-test test: build
|
|
|
|
@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} LANGUAGE=en \
|
|
|
|
LC_COLLATE=C LC_TIME=C ${MAKE} ${_MAKE_JOBS} ${MAKE_ARGS} test; \
|
|
|
|
${SETENV} LD_LIBRARY_PATH="${BUILD_WRKSRC}" ${BUILD_WRKSRC}/test)
|
2010-02-02 16:04:22 +00:00
|
|
|
|
|
|
|
.endif # !LIBRMATH_SLAVEPORT
|
|
|
|
|
2012-06-26 23:57:00 +00:00
|
|
|
.include <bsd.port.mk>
|