Ticket #43566: Portfile.2.diff
File Portfile.2.diff, 1.4 KB (added by mthomas+macports@…, 11 years ago) |
---|
-
Portfile
old new 34 34 port:libpng \ 35 35 port:libxml2 \ 36 36 port:tiff \ 37 port:xorg-libX11 \38 37 port:zlib 39 38 40 39 fetch.type svn … … 44 43 patchfiles patch-pm_config.in.h.diff \ 45 44 patch-lib-Makefile.diff \ 46 45 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 48 48 49 49 post-patch { 50 50 reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/pm_config.in.h 51 51 } 52 52 53 variant x11 description {Build the pamx image viewer} { 54 depends_lib-append port:xorg-libX11 55 } 56 53 57 variant universal {} 54 58 59 default_variants +x11 60 55 61 configure.cflags-append -fno-common 56 62 57 63 set jasperlib -ljasper … … 61 67 set netpbmlibtype unixshared 62 68 set netpbmlibsuffix so 63 69 set want_sse N 70 if {[variant_isset x11]} { 71 set macports_x11 Y 72 } else { 73 set macports_x11 N 74 } 64 75 65 76 configure { 66 77 # The netpbm configure script is interactive, and appends its results to … … 78 89 LDRELOC = ${ldreloc} 79 90 LDSHLIB = ${ldshlib} 80 91 LINKER_CAN_DO_EXPLICIT_LIBRARY = ${linker_can_do_explicit_library} 92 MACPORTS_X11 = ${macports_x11} 81 93 NETPBMLIBTYPE = ${netpbmlibtype} 82 94 NETPBMLIBSUFFIX = ${netpbmlibsuffix} 83 95 PNGLIB = -lpng