Ticket #40304: Portfile.diff
File Portfile.diff, 4.8 KB (added by kjellpk (Kjell Konis), 11 years ago) |
---|
-
Portfile
old new 1 1 # $Id: Portfile 110215 2013-08-28 21:26:41Z jeremyhu@macports.org $ 2 2 3 3 PortSystem 1.0 4 PortGroup active_variants 1.1 4 5 5 6 set major 3 6 7 set minor 0 … … 8 9 9 10 name R 10 11 version ${major}.${minor}.${point} 11 revision 212 revision 3 12 13 categories math science 13 14 maintainers me.com:kjell.konis 14 15 license {GPL-2 GPL-3} … … 53 54 configure.args --enable-R-framework \ 54 55 --enable-R-shlib \ 55 56 --enable-BLAS-shlib \ 56 -- enable-openmp \57 --disable-openmp \ 57 58 --with-readline \ 58 59 --with-aqua \ 59 60 --without-tcltk \ … … 69 70 configure.cflags-append -flax-vector-conversions 70 71 } 71 72 72 variant cairo requires x11 description {Use cairo and pango} {73 depends_lib-append path:lib/pkgconfig/cairo.pc:cairo \74 path:lib/pkgconfig/pango.pc:pango \75 path:lib/pkgconfig/glib-2.0.pc:glib2 \76 port:freetype \77 port:fontconfig \78 port:gettext79 configure.args-delete --without-cairo80 configure.args-append --with-cairo81 }82 83 73 variant accelerate conflicts builtin_lapack description {build using the BLAS and Lapack in Apple's Accelerate framework} { 84 74 configure.args-append --with-blas="-framework vecLib" \ 85 75 --with-lapack="-framework vecLib" … … 89 79 configure.args-append --without-blas --without-lapack 90 80 } 91 81 82 variant cairo requires x11 description {Include cairo support in R's x11 graphics device} { 83 depends_lib-append path:lib/pkgconfig/cairo.pc:cairo \ 84 path:lib/pkgconfig/pango.pc:pango \ 85 path:lib/pkgconfig/glib-2.0.pc:glib2 \ 86 port:freetype \ 87 port:fontconfig \ 88 port:gettext 89 require_active_variants path:lib/pkgconfig/cairo.pc:cairo x11 90 require_active_variants path:lib/pkgconfig/pango.pc:pango x11 91 configure.args-delete --without-cairo 92 configure.args-append --with-cairo 93 } 94 92 95 variant debug description {build with debug symbols} { 93 96 configure.optflags-append -g 94 97 } 95 98 96 99 set gcc_versions {4.5 4.6 4.7 4.8 4.9} 97 set default_fortran_variant +g cc48100 set default_fortran_variant +gfortran48 98 101 99 102 foreach ver ${gcc_versions} { 100 103 set ver_no_dot [join [split ${ver} "."] ""] 101 104 102 set variant_line {variant g cc${ver_no_dot} description "build with gfortran from gcc${ver_no_dot}"}105 set variant_line {variant gfortran${ver_no_dot} description "build with gfortran from gcc${ver_no_dot}"} 103 106 104 107 foreach over ${gcc_versions} { 105 108 if {${ver} == ${over}} { … … 107 110 } 108 111 109 112 set over_no_dot [join [split ${over} "."] ""] 110 append variant_line " conflicts g cc${over_no_dot}"113 append variant_line " conflicts gfortran${over_no_dot}" 111 114 } 112 115 append variant_line { {}} 113 116 114 117 eval $variant_line 115 118 116 if {[variant_isset g cc${ver_no_dot}]} {117 if {${default_fortran_variant} != "+g cc${ver_no_dot}"} {119 if {[variant_isset gfortran${ver_no_dot}]} { 120 if {${default_fortran_variant} != "+gfortran${ver_no_dot}"} { 118 121 set default_fortran_variant "" 119 122 } 120 123 } … … 127 130 foreach ver ${gcc_versions} { 128 131 set ver_no_dot [join [split ${ver} "."] ""] 129 132 130 if {[variant_isset g cc${ver_no_dot}]} {133 if {[variant_isset gfortran${ver_no_dot}]} { 131 134 depends_lib-append path:lib/libgcc/libgcc_s.1.dylib:libgcc 132 135 depends_build-append port:gcc${ver_no_dot} 133 136 … … 147 150 port:tk \ 148 151 port:xorg-libXScrnSaver \ 149 152 port:xorg-libXext 153 require_active_variants path:lib/pkgconfig/tk.pc:tk x11 150 154 configure.args-delete --without-tcltk 151 155 configure.args-append --with-tcltk \ 152 156 --with-tcl-config=${prefix}/lib/tclConfig.sh \ … … 170 174 --x-lib=${prefix}/lib 171 175 } 172 176 173 default_variants +cairo +recommended +x11 177 default_variants +recommended +x11 178 179 if {[variant_isset x11]} { 180 default_variants-append +cairo 181 } 174 182 175 183 if {![variant_isset accelerate] && ![variant_isset builtin_lapack]} { 176 184 default_variants-append +accelerate … … 227 235 livecheck.type regex 228 236 livecheck.url [lindex ${master_sites} 0] 229 237 livecheck.regex >${name}-(\[0-9.\]+)${extract.suffix}< 238 239 240