Ticket #19391: Portfile.diff
File Portfile.diff, 2.7 KB (added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), 16 years ago) |
---|
-
Portfile
old new 1 1 # $Id: Portfile 47297 2009-02-25 11:59:08Z ryandesign@macports.org $ 2 2 3 3 PortSystem 1.0 4 PortGroup muniversal 1.0 4 5 5 6 name gd2 6 7 version 2.0.35 7 revision 48 revision 5 8 9 categories graphics 9 10 maintainers ryandesign 10 11 homepage http://www.libgd.org/ … … 54 55 port:xpm 55 56 56 57 patchfiles \ 57 patch-gdft.c.diff \ 58 patch-Makefile.in.diff \ 59 patch-config-gdlib-config.in.diff 58 patch-gdft.c.diff 60 59 61 60 post-patch { 62 61 if {[file exists ${prefix}/share/libtool/config/ltmain.sh]} { … … 68 67 69 68 use_autoreconf yes 70 69 71 post- destroot{70 post-build { 72 71 if {[variant_isset universal]} { 73 reinplace "s|${configure.universal_ldflags}||" \ 74 ${destroot}${prefix}/bin/gdlib-config 72 foreach arch ${universal_archs_to_use} { 73 reinplace "s| ${configure.universal_ldflags}||" \ 74 ${worksrcpath}-${arch}/config/gdlib-config 75 reinplace "s| [muniversal_get_arch_flag ${arch}]||" \ 76 ${worksrcpath}-${arch}/config/gdlib-config 77 } 75 78 } 76 79 } 77 80 … … 79 82 depends_lib lib:libdl:dlcompat 80 83 } 81 84 82 platform darwin { 83 post-configure { 84 reinplace "s/^\\(hardcode_direct=\\)yes/\\1no/" ${worksrcpath}/libtool 85 # AC_X_PATH blindly asks xmkmf where X11 is, and it always uses /usr/X11R6. 86 # This block helps us link correctly when we are +system_x11 and x11prefix 87 # is somewhere non-standard and should cause AC_X_PATH to let us setup our 88 # CPPFLAGS and LDFLAGS without interference 89 pre-configure { 90 if { ! [variant_isset no_x11] } { 91 configure.args-append --x-includes=${prefix}/include --x-libraries=${prefix}/lib 92 if { ![file exists ${prefix}/lib/pkgconfig/x11.pc] } { 93 configure.cppflags-append -I${x11prefix}/include 94 configure.ldflags-append -L${x11prefix}/lib 95 } 85 96 } 86 97 } 87 98 … … 89 100 depends_lib-delete \ 90 101 port:xpm 91 102 configure.args-append \ 92 --without-x 103 --without-x \ 104 --without-xpm 93 105 } 94 106 107 #platform darwin { 108 # post-configure { 109 # if { ! [variant_isset universal] } { 110 # reinplace "s/^\\(hardcode_direct=\\)yes/\\1no/" ${worksrcpath}/libtool 111 # } else { 112 # foreach arch ${universal_archs_to_use} { 113 # reinplace "s/^\\(hardcode_direct=\\)yes/\\1no/" ${worksrcpath}-${arch}/libtool 114 # } 115 # } 116 # } 117 #} 118 95 119 livecheck.check regex 96 120 livecheck.url ${homepage}Downloads 97 121 livecheck.regex gd-(\[0-9.\]+)\\.tar