Ticket #47162: R-Portfile.diff

File R-Portfile.diff, 4.5 KB (added by kjellpk (Kjell Konis), 9 years ago)
  • Portfile

    old new  
    88
    99set major 3
    1010set minor 1
    11 set point 2
     11set point 3
    1212
    1313#Remember to remove revision line when bumping version
    1414version                     ${major}.${minor}.${point}
     
    3232master_sites                http://cran.rstudio.com/src/base/R-3/ \
    3333                            http://cran.r-project.org/src/base/R-3/
    3434
    35 checksums                   rmd160  b2aaa42daac1ae5d114995de514d211d78a4e0a6 \
    36                             sha256  bcd150afcae0e02f6efb5f35a6ab72432be82e849ec52ce0bb89d8c342a8fa7a
     35checksums                   rmd160  742a20d8c0d515434c36d1913f001f838e4dd431 \
     36                            sha256  07e98323935baa38079204bfb9414a029704bb9c0ca5ab317020ae521a377312
    3737
    3838depends_build               port:pkgconfig
    3939
    4040depends_lib                 port:readline \
    4141                            port:icu \
    42                             port:libiconv
     42                            port:libiconv \
     43                            port:xz \
     44                            port:zlib
    4345
    4446universal_variant           no
    4547
     
    5153
    5254configure.pre_args          --prefix=${frameworks_dir}
    5355
    54 configure.args              --enable-R-framework \
     56configure.args              --enable-memory-profiling \
    5557                            --enable-R-shlib \
    5658                            --enable-BLAS-shlib \
    57                             --disable-openmp \
    58                             --with-readline \
    59                             --with-aqua \
    6059                            --without-tcltk \
    6160                            --without-cairo \
    62                             --with-libpng \
    63                             --without-jpeglib \
     61                            --with-system-zlib \
     62                            --without-internal-tzcode \
    6463                            --without-recommended-packages \
    65                             --with-ICU \
    6664                            --without-x \
    67                             --with-included-gettext \
    68                             --without-internal-tzcode
     65                            --with-included-gettext
     66
     67if {${os.major} < 13} {
     68    configure.args-append --disable-openmp
     69}
    6970
    7071platform darwin 13 {
    7172    configure.cflags-append -flax-vector-conversions
    7273}
    7374
    74 variant accelerate conflicts builtin_lapack description {build using the BLAS and Lapack in Apple's Accelerate framework} {
    75     configure.args-append   --with-blas="-framework Accelerate" \
    76                             --with-lapack="-framework Accelerate"
     75variant accelerate conflicts atlas builtin_lapack description {build using the BLAS and Lapack in Apple's Accelerate framework} {
     76    configure.args-append   --with-blas="-framework Accelerate" --with-lapack
    7777}
    7878
    7979variant atlas conflicts accelerate builtin_lapack description {build using the BLAS in the atlas port} {
     
    8282    #See A.3.2 in R Installation and Administration for why atlas LAPACK not used
    8383}
    8484
    85 variant builtin_lapack conflicts accelerate description {build using reference BLAS and Lapack} {
     85variant builtin_lapack conflicts accelerate atlas description {build using reference BLAS and Lapack} {
    8686    configure.args-append   --without-blas --without-lapack
    8787}
    8888
     
    9292                            path:lib/pkgconfig/glib-2.0.pc:glib2 \
    9393                            port:freetype \
    9494                            port:fontconfig \
    95                             port:gettext
     95                            port:gettext \
     96                            port:libpng \
     97                            port:tiff \
     98                            port:jpeg
    9699    configure.args-delete   --without-cairo
    97100    configure.args-append   --with-cairo
    98101}
     
    173176                            port:xorg-libXt \
    174177                            port:tiff \
    175178                            port:jpeg \
    176                             port:libpng \
    177                             port:zlib
     179                            port:libpng
    178180    configure.args-delete   --without-x \
    179181                            --without-jpeglib
    180182    configure.args-append   --with-x \
     
    191193}
    192194
    193195if {![variant_isset accelerate] && ![variant_isset atlas] && ![variant_isset builtin_lapack]} {
    194     default_variants-append +accelerate
     196    default_variants-append +builtin_lapack
    195197}
    196198
    197199test.run                    yes
     
    248250livecheck.type      regex
    249251livecheck.url       [lindex ${master_sites} 0]
    250252livecheck.regex     >${name}-(\[0-9.\]+)${extract.suffix}<
     253
     254
     255