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 9 9 name R-framework 10 10 conflicts R 11 11 version ${major}.${minor}.${point} 12 revision 1 12 13 categories math science 13 14 maintainers me.com:kjell.konis 14 15 license {GPL-2 GPL-3} … … 55 56 56 57 configure.pre_args --prefix=${frameworks_dir} 57 58 59 configure.cflags-append -DOS_OBJECT_USE_OBJC=0 60 58 61 configure.args --enable-R-framework \ 59 62 --enable-R-shlib \ 60 63 --enable-BLAS-shlib \ … … 99 102 configure.optflags-append -g 100 103 } 101 104 102 variant gcc45 conflicts gcc46 gcc47 llvm_gcc42description {build with gcc45} {105 variant gcc45 conflicts gcc46 gcc47 description {build with gcc45} { 103 106 depends_lib-append port:gcc45 104 107 configure.compiler macports-gcc-4.5 105 108 configure.objc /usr/bin/gcc 106 109 configure.env-append "OBJCXX=${configure.objc}" 107 110 } 108 111 109 variant gcc46 conflicts gcc45 gcc47 llvm_gcc42description {build with gcc46} {112 variant gcc46 conflicts gcc45 gcc47 description {build with gcc46} { 110 113 depends_lib-append port:gcc46 111 114 configure.compiler macports-gcc-4.6 112 115 configure.objc /usr/bin/gcc 113 116 configure.env-append "OBJCXX=${configure.objc}" 114 117 } 115 118 116 variant gcc47 conflicts gcc45 gcc46 llvm_gcc42description {build with gcc47} {119 variant gcc47 conflicts gcc45 gcc46 description {build with gcc47} { 117 120 depends_lib-append port:gcc47 118 121 configure.compiler macports-gcc-4.7 119 122 configure.objc /usr/bin/gcc 120 123 configure.env-append "OBJCXX=${configure.objc}" 121 124 } 122 125 123 variant llvm_gcc42 conflicts gcc45 gcc46 gcc47 description {build with llvm-gcc42} {124 depends_lib-append port:llvm-gcc42125 configure.compiler macports-llvm-gcc-4.2126 configure.ldflags-append -L${prefix}/lib/llvm-gcc42 -lgfortran127 }128 129 126 variant recommended description {Install recommended R packages} { 130 127 configure.args-delete --without-recommended-packages 131 128 configure.args-append --with-recommended-packages … … 159 156 --x-lib=${prefix}/lib 160 157 } 161 158 162 default_variants +cairo +recommended + tcltk +x11159 default_variants +cairo +recommended +x11 163 160 164 161 if {![variant_isset accelerate] && ![variant_isset atlas] && ![variant_isset builtin_lapack]} { 165 162 default_variants-append +accelerate 166 163 } 167 164 168 if {![variant_isset gcc45] && ![variant_isset gcc46] && ![variant_isset gcc47] && ![variant_isset llvm_gcc42]} {169 default_variants-append + llvm_gcc42165 if {![variant_isset gcc45] && ![variant_isset gcc46] && ![variant_isset gcc47]} { 166 default_variants-append +gcc45 170 167 } 171 168 172 169 destroot.destdir prefix=${destroot}${frameworks_dir} … … 184 181 185 182 reinplace "s|R_ARCH=/`arch`|R_ARCH=/${build_arch}|" "${destroot}${resources}/bin/R" 186 183 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" 187 186 188 187 file delete ${destroot}${resources}/lib/libR.dylib 189 188 file delete ${destroot}${resources}/lib/libRblas.dylib