Ticket #39818: pgplot-x11.patch

File pgplot-x11.patch, 1.9 KB (added by mojca (Mojca Miklavec), 11 years ago)

patch to add +x11 variant to pgplot

  • Portfile

     
    4141                    port:pkgconfig
    4242
    4343depends_lib         port:libpng \
    44                     port:zlib \
    45                     port:xorg-libX11
     44                    port:zlib
    4645
    4746patchfiles          patch-makemake.diff \
    4847                    patch-drivers.list.patch \
     
    7271
    7372    set drivers "GIF VGIF LATEX PNG TPNG PS VPS CPS VCPS"
    7473
    75     if {![variant_isset no_x11]} {
     74    if {[variant_isset x11]} {
    7675        # XDISP does not work because the program figdisp can not be found.
    7776        lappend drivers XWINDOW XSERVE
    7877    }
     
    9089    set shlib_opts \
    9190        "-dynamiclib -single_module -current_version ${version} -compatibility_version ${compat_version}"
    9291
    93     if {![variant_isset no_x11]} {
     92    if {[variant_isset x11]} {
    9493        # XQuartz or MacPorts X11 (pkg-config gives precedence to MacPorts X11)
    9594        eval configure.ldflags-append   [exec pkg-config x11 --libs-only-L]
    9695        set x11Libs                     [exec pkg-config x11 --libs-only-l]
     
    210209
    211210universal_variant   no
    212211
    213 variant no_x11 {
    214     depends_lib-delete      port:xorg-libX11
    215     depends_build-delete    port:pkgconfig
     212variant x11 conflicts no_x11 {
     213    depends_lib-append      port:xorg-libX11
     214    depends_build-append    port:pkgconfig
    216215}
    217216
     217variant no_x11 conflicts x11 description {Legacy compatibility variant} {}
     218
     219if {[variant_isset no_x11]} {
     220    default_variants    -x11
     221} else {
     222    default_variants    +x11
     223}
     224
    218225variant aquaterm description {install driver for aquaterm} {
    219226    depends_lib-append  port:aquaterm
    220227
     
    254261}
    255262
    256263if {![variant_isset g95] && ![variant_isset gcc43] && ![variant_isset gcc44] && ![variant_isset gcc45] && ![variant_isset gcc46]} {
    257     default_variants +gcc47
     264    default_variants-append +gcc47
    258265}
    259266
    260267variant docs description {Create and install docs} {