Ticket #43566: Portfile.2.diff

File Portfile.2.diff, 1.4 KB (added by mthomas+macports@…, 11 years ago)

Portfile patch version 2 that uses +x11 instead of no_x11

  • Portfile

    old new  
    3434                port:libpng \
    3535                port:libxml2 \
    3636                port:tiff \
    37                 port:xorg-libX11 \
    3837                port:zlib
    3938
    4039fetch.type      svn
     
    4443patchfiles      patch-pm_config.in.h.diff \
    4544                patch-lib-Makefile.diff \
    4645                patch-converter-other-giftopnm.c-strcaseeq.diff \
    47                 patch-converter-other-jpeg2000.diff
     46                patch-converter-other-jpeg2000.diff \
     47                patch-other-pamx-Makefile.diff
    4848
    4949post-patch {
    5050    reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/pm_config.in.h
    5151}
    5252
     53variant x11 description {Build the pamx image viewer} {
     54    depends_lib-append       port:xorg-libX11
     55}
     56
    5357variant universal {}
    5458
     59default_variants +x11
     60
    5561configure.cflags-append -fno-common
    5662
    5763set jasperlib -ljasper
     
    6167set netpbmlibtype unixshared
    6268set netpbmlibsuffix so
    6369set want_sse N
     70if {[variant_isset x11]} {
     71    set macports_x11 Y
     72} else {
     73    set macports_x11 N
     74}
    6475
    6576configure {
    6677    # The netpbm configure script is interactive, and appends its results to
     
    7889LDRELOC = ${ldreloc}
    7990LDSHLIB = ${ldshlib}
    8091LINKER_CAN_DO_EXPLICIT_LIBRARY = ${linker_can_do_explicit_library}
     92MACPORTS_X11 = ${macports_x11}
    8193NETPBMLIBTYPE = ${netpbmlibtype}
    8294NETPBMLIBSUFFIX = ${netpbmlibsuffix}
    8395PNGLIB = -lpng