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 4 4 5 5 set major 2 6 6 set minor 15 7 set point 27 set point 3 8 8 9 9 name R-framework 10 10 conflicts R 11 11 version ${major}.${minor}.${point} 12 revision 213 12 categories math science 14 13 maintainers me.com:kjell.konis 15 14 license {GPL-2 GPL-3} … … 35 34 distname R-${version} 36 35 dist_subdir R 37 36 38 checksums rmd160 ca20ed9d794df53906802eee2ca32e634f8e8708\39 sha256 292837ae259b7668509b8a5d4ec8be0aa50c327cfe7a534bac419b4ca766d66d37 checksums rmd160 d588100f075e3a370a2cd6400e3c61dcc5b7a09e \ 38 sha256 c583a38f8dad3bc012c08116f4ba1eb2182cadfad4b0f8d7bd3cdba24bc255d6 40 39 41 40 depends_build port:pkgconfig 42 41 … … 56 55 57 56 configure.pre_args --prefix=${frameworks_dir} 58 57 58 configure.cflags-append -DOS_OBJECT_USE_OBJC=0 59 59 60 configure.args --enable-R-framework \ 60 61 --enable-R-shlib \ 61 62 --enable-BLAS-shlib \ … … 100 101 configure.optflags-append -g 101 102 } 102 103 103 variant gcc45 conflicts gcc46 gcc47 llvm_gcc42description {build with gcc45} {104 variant gcc45 conflicts gcc46 gcc47 description {build with gcc45} { 104 105 depends_lib-append port:gcc45 105 106 configure.compiler macports-gcc-4.5 106 107 configure.objc /usr/bin/gcc 107 108 configure.env-append "OBJCXX=${configure.objc}" 108 109 } 109 110 110 variant gcc46 conflicts gcc45 gcc47 llvm_gcc42description {build with gcc46} {111 variant gcc46 conflicts gcc45 gcc47 description {build with gcc46} { 111 112 depends_lib-append port:gcc46 112 113 configure.compiler macports-gcc-4.6 113 114 configure.objc /usr/bin/gcc 114 115 configure.env-append "OBJCXX=${configure.objc}" 115 116 } 116 117 117 variant gcc47 conflicts gcc45 gcc46 llvm_gcc42description {build with gcc47} {118 variant gcc47 conflicts gcc45 gcc46 description {build with gcc47} { 118 119 depends_lib-append port:gcc47 119 120 configure.compiler macports-gcc-4.7 120 121 configure.objc /usr/bin/gcc 121 122 configure.env-append "OBJCXX=${configure.objc}" 122 123 } 123 124 124 variant llvm_gcc42 conflicts gcc45 gcc46 gcc47 description {build with llvm-gcc42} {125 depends_lib-append port:llvm-gcc42126 configure.compiler macports-llvm-gcc-4.2127 configure.ldflags-append -L${prefix}/lib/llvm-gcc42 -lgfortran128 }129 130 125 variant recommended description {Install recommended R packages} { 131 126 configure.args-delete --without-recommended-packages 132 127 configure.args-append --with-recommended-packages … … 160 155 --x-lib=${prefix}/lib 161 156 } 162 157 163 default_variants +cairo +recommended + tcltk +x11158 default_variants +cairo +recommended +x11 164 159 165 160 if {![variant_isset accelerate] && ![variant_isset atlas] && ![variant_isset builtin_lapack]} { 166 161 default_variants-append +accelerate 167 162 } 168 163 169 if {![variant_isset gcc45] && ![variant_isset gcc46] && ![variant_isset gcc47] && ![variant_isset llvm_gcc42]} {170 default_variants-append + llvm_gcc42164 if {![variant_isset gcc45] && ![variant_isset gcc46] && ![variant_isset gcc47]} { 165 default_variants-append +gcc47 171 166 } 172 167 173 168 destroot.destdir prefix=${destroot}${frameworks_dir} … … 185 180 186 181 reinplace "s|R_ARCH=/`arch`|R_ARCH=/${build_arch}|" "${destroot}${resources}/bin/R" 187 182 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" 188 185 189 186 file delete ${destroot}${resources}/lib/libR.dylib 190 187 file delete ${destroot}${resources}/lib/libRblas.dylib