FreeBSD Bugzilla – Attachment 170792 Details for
Bug 207425
math/R Add some optimization related options to Makefile
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Add new options to math/R
R.perf.patch (text/plain), 4.08 KB, created by
Fernando Herrero Carrón
on 2016-05-29 15:08:40 UTC
(
hide
)
Description:
Add new options to math/R
Filename:
MIME Type:
Creator:
Fernando Herrero Carrón
Created:
2016-05-29 15:08:40 UTC
Size:
4.08 KB
patch
obsolete
>diff -ruN math/R/Makefile /usr/local/poudriere/ports/default/math/R/Makefile >--- math/R/Makefile 2016-05-22 20:07:03.000000000 +0200 >+++ /usr/local/poudriere/ports/default/math/R/Makefile 2016-05-29 17:02:48.845938639 +0200 >@@ -3,6 +3,7 @@ > > PORTNAME?= R > PORTVERSION= 3.3.0 >+PORTREVISION= 1 > CATEGORIES= math lang > MASTER_SITES= http://cran.r-project.org/%SUBDIR%/ \ > ftp://cran.r-project.org/pub/R/%SUBDIR%/ \ >@@ -34,9 +35,28 @@ > SED="${LOCALBASE}/bin/gsed" \ > ac_cv_have_decl_powl=yes ac_cv_have_decl_log1pl=yes > >-OPTIONS_DEFINE= MISSING DOCS >+OPTIONS_DEFINE= MISSING DOCS LTO OPENMP >+ > > MISSING_DESC= use libmissing rather than libquadmath >+LTO_DESC= Try to produce faster code through LTO >+LTO_CONFIGURE_ENABLE= lto >+OPENMP_CONFIGURE_ENABLE= openmp >+ >+OPTIONS_SINGLE= BLAS >+OPTIONS_SINGLE_BLAS= RBLAS ATLAS OPENBLAS NETLIB >+OPTIONS_DEFAULT= OPENBLAS >+ >+RBLAS_DESC= Use internal blas implementation >+ >+OPENBLAS_USES= blaslapack:openblas >+NETLIB_USES= blaslapack:netlib >+ATLAS_USES= blaslapack:atlas >+RBLAS_CONFIGURE_ON= --without-blas --without-lapack >+RBLAS_CONFIGURE_OFF= --with-blas="-L${LOCALBASE}/lib ${BLASLIB}" \ >+ --with-lapack="${LAPACKLIB}" >+ >+OPTIONS_SUB= RBLAS > > .if defined(LIBRMATH_SLAVEPORT) > BUILD_WRKSRC= ${WRKSRC}/src/nmath/standalone >@@ -57,9 +77,8 @@ > CPPFLAGS+= -I${LOCALBASE}/include > LDFLAGS+= -L${LOCALBASE}/lib > >-OPTIONS_DEFINE+= ATLAS ICU PCRE_PORT THREADS >+OPTIONS_DEFINE+= ICU PCRE_PORT THREADS > >-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 > >@@ -85,8 +104,8 @@ > TCLTK_DESC= tcltk package > X11_DESC= X11() graphics device > >-OPTIONS_DEFAULT+= GHOSTSCRIPT INFO_MANUALS JPEG LIBR PANGOCAIRO PNG \ >- TCLTK TIFF X11 >+OPTIONS_DEFAULT+= GHOSTSCRIPT INFO_MANUALS JPEG LTO OPENMP \ >+ PANGOCAIRO PNG TCLTK TIFF X11 > > OPTIONS_DEFAULT_armv6+= MISSING > OPTIONS_DEFAULT_powerpc+= MISSING >@@ -144,20 +163,6 @@ > .endif > > .if !defined(LIBRMATH_SLAVEPORT) >-.if ${PORT_OPTIONS:MATLAS} >-LIB_DEPENDS+= libatlas.so:math/atlas >-BLAS?= ${LIBM} -lf77blas >-LAPACK?= ${LIBM} -lalapack -lcblas >-.else >-BLAS?= no >-LAPACK?= no >-.endif >-CONFIGURE_ARGS+= --with-blas="${BLAS}" --with-lapack="${LAPACK}" >-.if ${BLAS} == "no" || ${LAPACK} == "no" >-PLIST_SUB+= LAPACK="" >-.else >-PLIST_SUB+= LAPACK="@comment " >-.endif > > .if ${PORT_OPTIONS:MICU} > LIB_DEPENDS+= libicui18n.so:devel/icu >@@ -218,7 +223,7 @@ > > .if ${PORT_OPTIONS:MPANGOCAIRO} > USES+= pkgconfig >-USE_GNOME+= pango >+USE_GNOME+= pango cairo > PLIST_SUB+= PANGOCAIRO="" > .else > CONFIGURE_ARGS+= --without-cairo >@@ -252,7 +257,7 @@ > > .if ${PORT_OPTIONS:MX11} > CONFIGURE_ARGS+= --with-x >-USE_XORG= x11 xmu xt >+USE_XORG= ice sm x11 xext xmu xscrnsaver xt > PLIST_SUB+= X11="" > .else > CONFIGURE_ARGS+= --without-x >@@ -369,8 +374,9 @@ > > post-install: > .for L in R Rblas Rlapack >- @(cd ${STAGEDIR}${PREFIX}/lib/R/lib; if [ -f lib${L}.so ] ; then \ >- ${LN} -sf lib${L}.so lib${L}.so.${${L:tu}_SOVERSION} ; fi) >+ @if [ -d ${STAGEDIR}${PREFIX}/lib/R/lib ] ; then \ >+ cd ${STAGEDIR}${PREFIX}/lib/R/lib; if [ -f lib${L}.so ] ; then \ >+ ${LN} -sf lib${L}.so lib${L}.so.${${L:tu}_SOVERSION} ; fi; fi > .endfor > .if ${PORT_OPTIONS:MINFO_MANUALS} && ${PORT_OPTIONS:MDOCS} > @(cd ${WRKSRC}/doc/manual; \ >diff -ruN math/R/pkg-plist /usr/local/poudriere/ports/default/math/R/pkg-plist >--- math/R/pkg-plist 2016-05-22 20:07:03.000000000 +0200 >+++ /usr/local/poudriere/ports/default/math/R/pkg-plist 2016-05-29 01:05:30.086105870 +0200 >@@ -99,10 +99,10 @@ > lib/R/include/Rmath.h > lib/R/include/Rversion.h > lib/R/include/S.h >-%%LAPACK%%lib/R/lib/libRblas.so >-%%LAPACK%%lib/R/lib/libRblas.so.%%RBLAS_SOVERSION%% >-%%LAPACK%%lib/R/lib/libRlapack.so >-%%LAPACK%%lib/R/lib/libRlapack.so.%%RLAPACK_SOVERSION%% >+%%RBLAS%%lib/R/lib/libRblas.so >+%%RBLAS%%lib/R/lib/libRblas.so.%%RBLAS_SOVERSION%% >+%%RBLAS%%lib/R/lib/libRlapack.so >+%%RBLAS%%lib/R/lib/libRlapack.so.%%RLAPACK_SOVERSION%% > %%LIBR%%lib/R/lib/libR.so > %%LIBR%%lib/R/lib/libR.so.%%R_SOVERSION%% > lib/R/library/KernSmooth/DESCRIPTION
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 207425
:
167306
|
170792
|
171764