Ticket #38249: R-framework.Portfile.diff

File R-framework.Portfile.diff, 4.0 KB (added by kjellpk (Kjell Konis), 12 years ago)
  • Portfile

    old new  
    44
    55set major 2
    66set minor 15
    7 set point 2
     7set point 3
    88
    99name                        R-framework
    1010conflicts                   R
    1111version                     ${major}.${minor}.${point}
    12 revision                    2
    1312categories                  math science
    1413maintainers                 me.com:kjell.konis
    1514license                     {GPL-2 GPL-3}
     
    3534distname                    R-${version}
    3635dist_subdir                 R
    3736
    38 checksums                   rmd160  ca20ed9d794df53906802eee2ca32e634f8e8708 \
    39                             sha256  292837ae259b7668509b8a5d4ec8be0aa50c327cfe7a534bac419b4ca766d66d
     37checksums                   rmd160  d588100f075e3a370a2cd6400e3c61dcc5b7a09e \
     38                            sha256  c583a38f8dad3bc012c08116f4ba1eb2182cadfad4b0f8d7bd3cdba24bc255d6
    4039
    4140depends_build               port:pkgconfig
    4241
     
    5655
    5756configure.pre_args          --prefix=${frameworks_dir}
    5857
     58configure.cflags-append     -DOS_OBJECT_USE_OBJC=0
     59
    5960configure.args              --enable-R-framework \
    6061                            --enable-R-shlib \
    6162                            --enable-BLAS-shlib \
     
    100101    configure.optflags-append -g
    101102}
    102103
    103 variant gcc45 conflicts gcc46 gcc47 llvm_gcc42 description {build with gcc45} {
     104variant gcc45 conflicts gcc46 gcc47 description {build with gcc45} {
    104105    depends_lib-append      port:gcc45
    105106    configure.compiler      macports-gcc-4.5
    106107    configure.objc          /usr/bin/gcc
    107108    configure.env-append    "OBJCXX=${configure.objc}"
    108109}
    109110
    110 variant gcc46 conflicts gcc45 gcc47 llvm_gcc42 description {build with gcc46} {
     111variant gcc46 conflicts gcc45 gcc47 description {build with gcc46} {
    111112    depends_lib-append      port:gcc46
    112113    configure.compiler      macports-gcc-4.6
    113114    configure.objc          /usr/bin/gcc
    114115    configure.env-append    "OBJCXX=${configure.objc}"
    115116}
    116117
    117 variant gcc47 conflicts gcc45 gcc46 llvm_gcc42 description {build with gcc47} {
     118variant gcc47 conflicts gcc45 gcc46 description {build with gcc47} {
    118119    depends_lib-append      port:gcc47
    119120    configure.compiler      macports-gcc-4.7
    120121    configure.objc          /usr/bin/gcc
    121122    configure.env-append    "OBJCXX=${configure.objc}"
    122123}
    123124
    124 variant llvm_gcc42 conflicts gcc45 gcc46 gcc47 description {build with llvm-gcc42} {
    125     depends_lib-append          port:llvm-gcc42
    126     configure.compiler          macports-llvm-gcc-4.2
    127     configure.ldflags-append    -L${prefix}/lib/llvm-gcc42 -lgfortran
    128 }
    129 
    130125variant recommended description {Install recommended R packages} {
    131126    configure.args-delete   --without-recommended-packages
    132127    configure.args-append   --with-recommended-packages
     
    160155                            --x-lib=${prefix}/lib
    161156}
    162157
    163 default_variants +cairo +recommended +tcltk +x11
     158default_variants +cairo +recommended +x11
    164159
    165160if {![variant_isset accelerate] && ![variant_isset atlas] && ![variant_isset builtin_lapack]} {
    166161    default_variants-append +accelerate
    167162}
    168163
    169 if {![variant_isset gcc45] && ![variant_isset gcc46] && ![variant_isset gcc47] && ![variant_isset llvm_gcc42]} {
    170     default_variants-append +llvm_gcc42
     164if {![variant_isset gcc45] && ![variant_isset gcc46] && ![variant_isset gcc47]} {
     165    default_variants-append +gcc47
    171166}
    172167
    173168destroot.destdir prefix=${destroot}${frameworks_dir}
     
    185180
    186181    reinplace "s|R_ARCH=/`arch`|R_ARCH=/${build_arch}|" "${destroot}${resources}/bin/R"
    187182    reinplace "s|-F${destroot}|-F|" "${destroot}${resources}/etc/${build_arch}/Makeconf"
     183    reinplace "s|OBJCXX = |OBJCXX = /usr/bin/g++|" "${destroot}${resources}/etc/${build_arch}/Makeconf"
     184    reinplace "s|OBJC_LIBS = none |OBJC_LIBS = -lobjc |" "${destroot}${resources}/etc/${build_arch}/Makeconf"
    188185
    189186    file delete ${destroot}${resources}/lib/libR.dylib
    190187    file delete ${destroot}${resources}/lib/libRblas.dylib