Lines 3-8
Link Here
|
3 |
|
3 |
|
4 |
PORTNAME?= R |
4 |
PORTNAME?= R |
5 |
PORTVERSION= 3.3.0 |
5 |
PORTVERSION= 3.3.0 |
|
|
6 |
PORTREVISION= 1 |
6 |
CATEGORIES= math lang |
7 |
CATEGORIES= math lang |
7 |
MASTER_SITES= http://cran.r-project.org/%SUBDIR%/ \ |
8 |
MASTER_SITES= http://cran.r-project.org/%SUBDIR%/ \ |
8 |
ftp://cran.r-project.org/pub/R/%SUBDIR%/ \ |
9 |
ftp://cran.r-project.org/pub/R/%SUBDIR%/ \ |
Lines 34-42
Link Here
|
34 |
SED="${LOCALBASE}/bin/gsed" \ |
35 |
SED="${LOCALBASE}/bin/gsed" \ |
35 |
ac_cv_have_decl_powl=yes ac_cv_have_decl_log1pl=yes |
36 |
ac_cv_have_decl_powl=yes ac_cv_have_decl_log1pl=yes |
36 |
|
37 |
|
37 |
OPTIONS_DEFINE= MISSING DOCS |
38 |
OPTIONS_DEFINE= MISSING DOCS LTO OPENMP |
|
|
39 |
|
38 |
|
40 |
|
39 |
MISSING_DESC= use libmissing rather than libquadmath |
41 |
MISSING_DESC= use libmissing rather than libquadmath |
|
|
42 |
LTO_DESC= Try to produce faster code through LTO |
43 |
LTO_CONFIGURE_ENABLE= lto |
44 |
OPENMP_CONFIGURE_ENABLE= openmp |
45 |
|
46 |
OPTIONS_SINGLE= BLAS |
47 |
OPTIONS_SINGLE_BLAS= RBLAS ATLAS OPENBLAS NETLIB |
48 |
OPTIONS_DEFAULT= OPENBLAS |
49 |
|
50 |
RBLAS_DESC= Use internal blas implementation |
51 |
|
52 |
OPENBLAS_USES= blaslapack:openblas |
53 |
NETLIB_USES= blaslapack:netlib |
54 |
ATLAS_USES= blaslapack:atlas |
55 |
RBLAS_CONFIGURE_ON= --without-blas --without-lapack |
56 |
RBLAS_CONFIGURE_OFF= --with-blas="-L${LOCALBASE}/lib ${BLASLIB}" \ |
57 |
--with-lapack="${LAPACKLIB}" |
58 |
|
59 |
OPTIONS_SUB= RBLAS |
40 |
|
60 |
|
41 |
.if defined(LIBRMATH_SLAVEPORT) |
61 |
.if defined(LIBRMATH_SLAVEPORT) |
42 |
BUILD_WRKSRC= ${WRKSRC}/src/nmath/standalone |
62 |
BUILD_WRKSRC= ${WRKSRC}/src/nmath/standalone |
Lines 57-65
Link Here
|
57 |
CPPFLAGS+= -I${LOCALBASE}/include |
77 |
CPPFLAGS+= -I${LOCALBASE}/include |
58 |
LDFLAGS+= -L${LOCALBASE}/lib |
78 |
LDFLAGS+= -L${LOCALBASE}/lib |
59 |
|
79 |
|
60 |
OPTIONS_DEFINE+= ATLAS ICU PCRE_PORT THREADS |
80 |
OPTIONS_DEFINE+= ICU PCRE_PORT THREADS |
61 |
|
81 |
|
62 |
ATLAS_DESC= Use ATLAS instead of BLAS/LAPACK |
|
|
63 |
ICU_DESC= Use ICU for collation in multibyte locales |
82 |
ICU_DESC= Use ICU for collation in multibyte locales |
64 |
PCRE_PORT_DESC= Use devel/pcre instead of the bundled PCRE |
83 |
PCRE_PORT_DESC= Use devel/pcre instead of the bundled PCRE |
65 |
|
84 |
|
Lines 85-92
Link Here
|
85 |
TCLTK_DESC= tcltk package |
104 |
TCLTK_DESC= tcltk package |
86 |
X11_DESC= X11() graphics device |
105 |
X11_DESC= X11() graphics device |
87 |
|
106 |
|
88 |
OPTIONS_DEFAULT+= GHOSTSCRIPT INFO_MANUALS JPEG LIBR PANGOCAIRO PNG \ |
107 |
OPTIONS_DEFAULT+= GHOSTSCRIPT INFO_MANUALS JPEG LTO OPENMP \ |
89 |
TCLTK TIFF X11 |
108 |
PANGOCAIRO PNG TCLTK TIFF X11 |
90 |
|
109 |
|
91 |
OPTIONS_DEFAULT_armv6+= MISSING |
110 |
OPTIONS_DEFAULT_armv6+= MISSING |
92 |
OPTIONS_DEFAULT_powerpc+= MISSING |
111 |
OPTIONS_DEFAULT_powerpc+= MISSING |
Lines 144-163
Link Here
|
144 |
.endif |
163 |
.endif |
145 |
|
164 |
|
146 |
.if !defined(LIBRMATH_SLAVEPORT) |
165 |
.if !defined(LIBRMATH_SLAVEPORT) |
147 |
.if ${PORT_OPTIONS:MATLAS} |
|
|
148 |
LIB_DEPENDS+= libatlas.so:math/atlas |
149 |
BLAS?= ${LIBM} -lf77blas |
150 |
LAPACK?= ${LIBM} -lalapack -lcblas |
151 |
.else |
152 |
BLAS?= no |
153 |
LAPACK?= no |
154 |
.endif |
155 |
CONFIGURE_ARGS+= --with-blas="${BLAS}" --with-lapack="${LAPACK}" |
156 |
.if ${BLAS} == "no" || ${LAPACK} == "no" |
157 |
PLIST_SUB+= LAPACK="" |
158 |
.else |
159 |
PLIST_SUB+= LAPACK="@comment " |
160 |
.endif |
161 |
|
166 |
|
162 |
.if ${PORT_OPTIONS:MICU} |
167 |
.if ${PORT_OPTIONS:MICU} |
163 |
LIB_DEPENDS+= libicui18n.so:devel/icu |
168 |
LIB_DEPENDS+= libicui18n.so:devel/icu |
Lines 218-224
Link Here
|
218 |
|
223 |
|
219 |
.if ${PORT_OPTIONS:MPANGOCAIRO} |
224 |
.if ${PORT_OPTIONS:MPANGOCAIRO} |
220 |
USES+= pkgconfig |
225 |
USES+= pkgconfig |
221 |
USE_GNOME+= pango |
226 |
USE_GNOME+= pango cairo |
222 |
PLIST_SUB+= PANGOCAIRO="" |
227 |
PLIST_SUB+= PANGOCAIRO="" |
223 |
.else |
228 |
.else |
224 |
CONFIGURE_ARGS+= --without-cairo |
229 |
CONFIGURE_ARGS+= --without-cairo |
Lines 252-258
Link Here
|
252 |
|
257 |
|
253 |
.if ${PORT_OPTIONS:MX11} |
258 |
.if ${PORT_OPTIONS:MX11} |
254 |
CONFIGURE_ARGS+= --with-x |
259 |
CONFIGURE_ARGS+= --with-x |
255 |
USE_XORG= x11 xmu xt |
260 |
USE_XORG= ice sm x11 xext xmu xscrnsaver xt |
256 |
PLIST_SUB+= X11="" |
261 |
PLIST_SUB+= X11="" |
257 |
.else |
262 |
.else |
258 |
CONFIGURE_ARGS+= --without-x |
263 |
CONFIGURE_ARGS+= --without-x |
Lines 369-376
Link Here
|
369 |
|
374 |
|
370 |
post-install: |
375 |
post-install: |
371 |
.for L in R Rblas Rlapack |
376 |
.for L in R Rblas Rlapack |
372 |
@(cd ${STAGEDIR}${PREFIX}/lib/R/lib; if [ -f lib${L}.so ] ; then \ |
377 |
@if [ -d ${STAGEDIR}${PREFIX}/lib/R/lib ] ; then \ |
373 |
${LN} -sf lib${L}.so lib${L}.so.${${L:tu}_SOVERSION} ; fi) |
378 |
cd ${STAGEDIR}${PREFIX}/lib/R/lib; if [ -f lib${L}.so ] ; then \ |
|
|
379 |
${LN} -sf lib${L}.so lib${L}.so.${${L:tu}_SOVERSION} ; fi; fi |
374 |
.endfor |
380 |
.endfor |
375 |
.if ${PORT_OPTIONS:MINFO_MANUALS} && ${PORT_OPTIONS:MDOCS} |
381 |
.if ${PORT_OPTIONS:MINFO_MANUALS} && ${PORT_OPTIONS:MDOCS} |
376 |
@(cd ${WRKSRC}/doc/manual; \ |
382 |
@(cd ${WRKSRC}/doc/manual; \ |