Ticket #23125: libpng-1.4.1-libpng12.diff

File libpng-1.4.1-libpng12.diff, 4.3 KB (added by jmroot (Joshua Root), 14 years ago)
  • libpng/Portfile

     
    11# $Id$
    22
    33PortSystem              1.0
    4 PortGroup               muniversal 1.0
    54PortGroup               archcheck 1.0
    65
    76name                    libpng
    8 version                 1.2.43
     7version                 1.4.1
    98categories              graphics
    109maintainers             ryandesign waqar
    1110license                 libpng
    1211platforms               darwin openbsd freebsd sunos linux
    1312homepage                http://www.libpng.org/pub/png/libpng.html
    1413use_bzip2               yes
    15 use_parallel_build      yes
    1614master_sites            sourceforge
    1715
    1816description             Library for manipulating PNG images
     
    2826                        understand. Currently, this library only supports C. \
    2927                        Support for other languages is being considered.
    3028
    31 checksums               md5     976909556e6613804d810405c1f72ce6 \
    32                         sha1    28ea29305d233669ce565894a95151e4427d1f34 \
    33                         rmd160  6c108f06ae32a86ddd8571e9031f143932f19531
     29checksums               md5     e1767bf290ded9fda9ee05bd23ae4cff \
     30                        sha1    a29310db901f8d9b79a80ca85fd51fa48b243c31 \
     31                        rmd160  55b210afa675ee735e59241fb7dac10b9d7877ad
    3432
    35 depends_lib             port:zlib
     33depends_lib             port:zlib port:libpng12
    3634
    37 archcheck.files         lib/libz.dylib
     35archcheck.files         lib/libz.dylib lib/libpng12.dylib
    3836
    3937use_parallel_build      yes
    4038
     
    4745    xinstall -m 0644 -W ${worksrcpath} \
    4846        ANNOUNCE \
    4947        CHANGES \
    50         KNOWNBUG \
    5148        LICENSE \
    5249        README \
    5350        TODO \
  • libpng12/Portfile

     
    11# $Id$
    22
    33PortSystem              1.0
    4 PortGroup               muniversal 1.0
    54PortGroup               archcheck 1.0
    65
    7 name                    libpng
     6name                    libpng12
    87version                 1.2.43
    98categories              graphics
    109maintainers             ryandesign waqar
     
    1211platforms               darwin openbsd freebsd sunos linux
    1312homepage                http://www.libpng.org/pub/png/libpng.html
    1413use_bzip2               yes
    15 use_parallel_build      yes
    1614master_sites            sourceforge
    1715
    1816description             Library for manipulating PNG images
     
    2826                        understand. Currently, this library only supports C. \
    2927                        Support for other languages is being considered.
    3028
     29distname                libpng-${version}
     30dist_subdir             libpng
    3131checksums               md5     976909556e6613804d810405c1f72ce6 \
    3232                        sha1    28ea29305d233669ce565894a95151e4427d1f34 \
    3333                        rmd160  6c108f06ae32a86ddd8571e9031f143932f19531
     
    4242test.target             check
    4343
    4444post-destroot {
    45     set docdir ${prefix}/share/doc/${name}-${version}
    46     xinstall -d ${destroot}${docdir}/examples
    47     xinstall -m 0644 -W ${worksrcpath} \
    48         ANNOUNCE \
    49         CHANGES \
    50         KNOWNBUG \
    51         LICENSE \
    52         README \
    53         TODO \
    54         ${destroot}${docdir}
    55     xinstall -m 0644 ${worksrcpath}/example.c ${destroot}${docdir}/examples
     45    foreach f {bin/libpng-config include/png.h include/pngconf.h lib/libpng.a
     46               lib/libpng.dylib lib/libpng.la lib/pkgconfig/libpng.pc share/man} {
     47        delete ${destroot}${prefix}/${f}
     48    }
    5649}
    5750
     51pre-activate {
     52    if {[file exists ${prefix}/lib/libpng12.dylib]
     53        && ![catch {set vers [lindex [registry_active libpng] 0]}]
     54        && [rpm-vercomp [lindex $vers 1] 1.4] < 0} {
     55        # check for an arbitrary 1.9 feature (upgrade will fail if we deactivate here in 1.8)
     56        if {[info exists negated_variants]} {
     57            registry_deactivate libpng "" [list ports_nodepcheck 1]
     58        } else {
     59            return -code error "libpng [lindex $vers 1] conflicts with $name, please deactivate it first."
     60        }
     61    }
     62}
     63
    5864livecheck.type          regexm
    59 livecheck.regex         {Current.+?version.+?<B>([0-9.]+)</B>}
     65livecheck.regex         {Previous<BR>series:.+?<B>(1\.2[0-9.]+)</B>}