Ticket #37035: plplot.diff

File plplot.diff, 1.6 KB (added by ryandesign (Ryan Carsten Schmidt), 11 years ago)
  • Portfile

     
    66
    77name            plplot
    88version         5.9.9
    9 revision        8
     9revision        9
    1010platforms       darwin
    1111maintainers     takeshi openmaintainer
    1212categories      science
     
    3434                port:libiconv \
    3535                port:libLASi \
    3636                port:libpng \
    37                 path:lib/pkgconfig/pango.pc:pango \
    3837                port:swig-tcl \
    3938                port:tcl \
    40                 port:tk \
    4139                port:zlib
    4240
    4341post-patch {
     
    121119if {${os.platform}=="darwin"} {
    122120    default_variants    +aquaterm
    123121}
    124 default_variants-append +x11
    125122
    126123subport ${name}-single {
    127124    configure.pre_args      -DCMAKE_INSTALL_PREFIX=${prefix}/lib/${subport}
     
    201198                            -DAQT_FRAMEWORK=${frameworks_dir}/AquaTerm.framework
    202199}
    203200
    204 variant no_x11 conflicts x11 description {Deprecated dummy variant} {
    205 }
     201variant no_x11 conflicts x11 description {Legacy compatibility variant} {}
    206202
    207203variant x11 conflicts no_x11 {
     204    depends_lib-append      path:lib/pkgconfig/pango.pc:pango \
     205                            port:tk
    208206    configure.args-append   -DPLD_xcairo=ON  \
    209207                            -DPLD_xwin=ON \
    210208                            -DPLD_xfig=ON
     
    212210                            -DPLD_xwin=OFF \
    213211                            -DPLD_xfig=OFF
    214212}
     213
     214if {[variant_isset no_x11]} {
     215    default_variants -x11
     216} else {
     217    default_variants +x11
     218}