Ticket #37647: R-framework_1.Portfile.diff

File R-framework_1.Portfile.diff, 3.4 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}
     
    5556
    5657configure.pre_args          --prefix=${frameworks_dir}
    5758
     59configure.cflags-append     -DOS_OBJECT_USE_OBJC=0
     60
    5861configure.args              --enable-R-framework \
    5962                            --enable-R-shlib \
    6063                            --enable-BLAS-shlib \
     
    99102    configure.optflags-append -g
    100103}
    101104
    102 variant gcc45 conflicts gcc46 gcc47 llvm_gcc42 description {build with gcc45} {
     105variant gcc45 conflicts gcc46 gcc47 description {build with gcc45} {
    103106    depends_lib-append      port:gcc45
    104107    configure.compiler      macports-gcc-4.5
    105108    configure.objc          /usr/bin/gcc
    106109    configure.env-append    "OBJCXX=${configure.objc}"
    107110}
    108111
    109 variant gcc46 conflicts gcc45 gcc47 llvm_gcc42 description {build with gcc46} {
     112variant gcc46 conflicts gcc45 gcc47 description {build with gcc46} {
    110113    depends_lib-append      port:gcc46
    111114    configure.compiler      macports-gcc-4.6
    112115    configure.objc          /usr/bin/gcc
    113116    configure.env-append    "OBJCXX=${configure.objc}"
    114117}
    115118
    116 variant gcc47 conflicts gcc45 gcc46 llvm_gcc42 description {build with gcc47} {
     119variant gcc47 conflicts gcc45 gcc46 description {build with gcc47} {
    117120    depends_lib-append      port:gcc47
    118121    configure.compiler      macports-gcc-4.7
    119122    configure.objc          /usr/bin/gcc
    120123    configure.env-append    "OBJCXX=${configure.objc}"
    121124}
    122125
    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 
    129126variant recommended description {Install recommended R packages} {
    130127    configure.args-delete   --without-recommended-packages
    131128    configure.args-append   --with-recommended-packages
     
    159156                            --x-lib=${prefix}/lib
    160157}
    161158
    162 default_variants +cairo +recommended +tcltk +x11
     159default_variants +cairo +recommended +x11
    163160
    164161if {![variant_isset accelerate] && ![variant_isset atlas] && ![variant_isset builtin_lapack]} {
    165162    default_variants-append +accelerate
    166163}
    167164
    168 if {![variant_isset gcc45] && ![variant_isset gcc46] && ![variant_isset gcc47] && ![variant_isset llvm_gcc42]} {
    169     default_variants-append +llvm_gcc42
     165if {![variant_isset gcc45] && ![variant_isset gcc46] && ![variant_isset gcc47]} {
     166    default_variants-append +gcc45
    170167}
    171168
    172169destroot.destdir prefix=${destroot}${frameworks_dir}
     
    184181
    185182    reinplace "s|R_ARCH=/`arch`|R_ARCH=/${build_arch}|" "${destroot}${resources}/bin/R"
    186183    reinplace "s|-F${destroot}|-F|" "${destroot}${resources}/etc/${build_arch}/Makeconf"
     184    reinplace "s|OBJCXX = |OBJCXX = /usr/bin/g++|" "${destroot}${resources}/etc/${build_arch}/Makeconf"
     185    reinplace "s|OBJC_LIBS = none |OBJC_LIBS = -lobjc |" "${destroot}${resources}/etc/${build_arch}/Makeconf"
    187186
    188187    file delete ${destroot}${resources}/lib/libR.dylib
    189188    file delete ${destroot}${resources}/lib/libRblas.dylib