Ticket #37647: Portfile.R-framework.diff

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

    old new  
    99name                        R-framework
    1010conflicts                   R
    1111version                     ${major}.${minor}.${point}
     12revision                    1
    1213categories                  math science
    1314maintainers                 me.com:kjell.konis
    1415license                     {GPL-2 GPL-3}
     
    99100    configure.optflags-append -g
    100101}
    101102
    102 variant gcc45 conflicts gcc46 gcc47 llvm_gcc42 description {build with gcc45} {
     103variant gcc45 conflicts gcc46 gcc47 description {build with gcc45} {
    103104    depends_lib-append      port:gcc45
    104105    configure.compiler      macports-gcc-4.5
    105106    configure.objc          /usr/bin/gcc
    106107    configure.env-append    "OBJCXX=${configure.objc}"
    107108}
    108109
    109 variant gcc46 conflicts gcc45 gcc47 llvm_gcc42 description {build with gcc46} {
     110variant gcc46 conflicts gcc45 gcc47 description {build with gcc46} {
    110111    depends_lib-append      port:gcc46
    111112    configure.compiler      macports-gcc-4.6
    112113    configure.objc          /usr/bin/gcc
    113114    configure.env-append    "OBJCXX=${configure.objc}"
    114115}
    115116
    116 variant gcc47 conflicts gcc45 gcc46 llvm_gcc42 description {build with gcc47} {
     117variant gcc47 conflicts gcc45 gcc46 description {build with gcc47} {
    117118    depends_lib-append      port:gcc47
    118119    configure.compiler      macports-gcc-4.7
    119120    configure.objc          /usr/bin/gcc
    120121    configure.env-append    "OBJCXX=${configure.objc}"
    121122}
    122123
    123 variant llvm_gcc42 conflicts gcc45 gcc46 gcc47 description {build with llvm-gcc42} {
    124     depends_lib-append          port:llvm-gcc42
    125     configure.compiler          macports-llvm-gcc-4.2
    126     configure.ldflags-append    -L${prefix}/lib/llvm-gcc42 -lgfortran
    127 }
    128 
    129124variant recommended description {Install recommended R packages} {
    130125    configure.args-delete   --without-recommended-packages
    131126    configure.args-append   --with-recommended-packages
     
    159154                            --x-lib=${prefix}/lib
    160155}
    161156
    162 default_variants +cairo +recommended +tcltk +x11
     157default_variants +cairo +recommended +x11
    163158
    164159if {![variant_isset accelerate] && ![variant_isset atlas] && ![variant_isset builtin_lapack]} {
    165160    default_variants-append +accelerate
    166161}
    167162
    168 if {![variant_isset gcc45] && ![variant_isset gcc46] && ![variant_isset gcc47] && ![variant_isset llvm_gcc42]} {
    169     default_variants-append +llvm_gcc42
     163if {![variant_isset gcc45] && ![variant_isset gcc46] && ![variant_isset gcc47]} {
     164    default_variants-append +gcc45
    170165}
    171166
    172167destroot.destdir prefix=${destroot}${frameworks_dir}
     
    184179
    185180    reinplace "s|R_ARCH=/`arch`|R_ARCH=/${build_arch}|" "${destroot}${resources}/bin/R"
    186181    reinplace "s|-F${destroot}|-F|" "${destroot}${resources}/etc/${build_arch}/Makeconf"
     182    reinplace "s|OBJCXX = |OBJCXX = /usr/bin/g++|" "${destroot}${resources}/etc/${build_arch}/Makeconf"
     183    reinplace "s|OBJC_LIBS = none |OBJC_LIBS = -lobjc |" "${destroot}${resources}/etc/${build_arch}/Makeconf"
    187184
    188185    file delete ${destroot}${resources}/lib/libR.dylib
    189186    file delete ${destroot}${resources}/lib/libRblas.dylib