Ticket #18154: zlib-Portfile.diff

File zlib-Portfile.diff, 905 bytes (added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), 15 years ago)
  • Portfile

    old new  
    11# $Id: Portfile 42636 2008-11-27 09:27:39Z ryandesign@macports.org $
    22
    33PortSystem 1.0
     4PortGroup  merge_universal 1.0
    45
    56name            zlib
    67version         1.2.3
     
    2829
    2930patchfiles      patch-Makefile-static.diff
    3031
    31 post-configure {
    32     if {[variant_isset universal]} {
    33         reinplace -E "/^LDSHARED=/s|\$| ${configure.universal_cflags}|" ${worksrcpath}/Makefile
    34     }
    35 }
    36 
    3732configure.args  --shared
    3833configure.universal_args   
    3934
     
    5146    eval xinstall -m 0644 [glob ${worksrcpath}/example{.c,s/*}] ${destroot}${examplesdir}
    5247}
    5348
     49if { ${os.arch}=="i386" } {
     50    set universal_archs_supported  "i386 x86_64"
     51} else {
     52    set universal_archs_supported  "ppc ppc64"
     53}
     54
    5455livecheck.check regex
    5556livecheck.url   ${homepage}
    5657livecheck.regex ${name}-(\[0-9.\]+)\\.tar