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 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} … … 99 100 configure.optflags-append -g 100 101 } 101 102 102 variant gcc45 conflicts gcc46 gcc47 llvm_gcc42description {build with gcc45} {103 variant gcc45 conflicts gcc46 gcc47 description {build with gcc45} { 103 104 depends_lib-append port:gcc45 104 105 configure.compiler macports-gcc-4.5 105 106 configure.objc /usr/bin/gcc 106 107 configure.env-append "OBJCXX=${configure.objc}" 107 108 } 108 109 109 variant gcc46 conflicts gcc45 gcc47 llvm_gcc42description {build with gcc46} {110 variant gcc46 conflicts gcc45 gcc47 description {build with gcc46} { 110 111 depends_lib-append port:gcc46 111 112 configure.compiler macports-gcc-4.6 112 113 configure.objc /usr/bin/gcc 113 114 configure.env-append "OBJCXX=${configure.objc}" 114 115 } 115 116 116 variant gcc47 conflicts gcc45 gcc46 llvm_gcc42description {build with gcc47} {117 variant gcc47 conflicts gcc45 gcc46 description {build with gcc47} { 117 118 depends_lib-append port:gcc47 118 119 configure.compiler macports-gcc-4.7 119 120 configure.objc /usr/bin/gcc 120 121 configure.env-append "OBJCXX=${configure.objc}" 121 122 } 122 123 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 124 variant recommended description {Install recommended R packages} { 130 125 configure.args-delete --without-recommended-packages 131 126 configure.args-append --with-recommended-packages … … 159 154 --x-lib=${prefix}/lib 160 155 } 161 156 162 default_variants +cairo +recommended + tcltk +x11157 default_variants +cairo +recommended +x11 163 158 164 159 if {![variant_isset accelerate] && ![variant_isset atlas] && ![variant_isset builtin_lapack]} { 165 160 default_variants-append +accelerate 166 161 } 167 162 168 if {![variant_isset gcc45] && ![variant_isset gcc46] && ![variant_isset gcc47] && ![variant_isset llvm_gcc42]} {169 default_variants-append + llvm_gcc42163 if {![variant_isset gcc45] && ![variant_isset gcc46] && ![variant_isset gcc47]} { 164 default_variants-append +gcc45 170 165 } 171 166 172 167 destroot.destdir prefix=${destroot}${frameworks_dir} … … 184 179 185 180 reinplace "s|R_ARCH=/`arch`|R_ARCH=/${build_arch}|" "${destroot}${resources}/bin/R" 186 181 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" 187 184 188 185 file delete ${destroot}${resources}/lib/libR.dylib 189 186 file delete ${destroot}${resources}/lib/libRblas.dylib