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
1 1 # $Id$ 2 2 3 3 PortSystem 1.0 4 PortGroup muniversal 1.05 4 PortGroup archcheck 1.0 6 5 7 6 name libpng 8 version 1. 2.437 version 1.4.1 9 8 categories graphics 10 9 maintainers ryandesign waqar 11 10 license libpng 12 11 platforms darwin openbsd freebsd sunos linux 13 12 homepage http://www.libpng.org/pub/png/libpng.html 14 13 use_bzip2 yes 15 use_parallel_build yes16 14 master_sites sourceforge 17 15 18 16 description Library for manipulating PNG images … … 28 26 understand. Currently, this library only supports C. \ 29 27 Support for other languages is being considered. 30 28 31 checksums md5 976909556e6613804d810405c1f72ce6\32 sha1 28ea29305d233669ce565894a95151e4427d1f34\33 rmd160 6c108f06ae32a86ddd8571e9031f143932f1953129 checksums md5 e1767bf290ded9fda9ee05bd23ae4cff \ 30 sha1 a29310db901f8d9b79a80ca85fd51fa48b243c31 \ 31 rmd160 55b210afa675ee735e59241fb7dac10b9d7877ad 34 32 35 depends_lib port:zlib 33 depends_lib port:zlib port:libpng12 36 34 37 archcheck.files lib/libz.dylib 35 archcheck.files lib/libz.dylib lib/libpng12.dylib 38 36 39 37 use_parallel_build yes 40 38 … … 47 45 xinstall -m 0644 -W ${worksrcpath} \ 48 46 ANNOUNCE \ 49 47 CHANGES \ 50 KNOWNBUG \51 48 LICENSE \ 52 49 README \ 53 50 TODO \ -
libpng12/Portfile
1 1 # $Id$ 2 2 3 3 PortSystem 1.0 4 PortGroup muniversal 1.05 4 PortGroup archcheck 1.0 6 5 7 name libpng 6 name libpng12 8 7 version 1.2.43 9 8 categories graphics 10 9 maintainers ryandesign waqar … … 12 11 platforms darwin openbsd freebsd sunos linux 13 12 homepage http://www.libpng.org/pub/png/libpng.html 14 13 use_bzip2 yes 15 use_parallel_build yes16 14 master_sites sourceforge 17 15 18 16 description Library for manipulating PNG images … … 28 26 understand. Currently, this library only supports C. \ 29 27 Support for other languages is being considered. 30 28 29 distname libpng-${version} 30 dist_subdir libpng 31 31 checksums md5 976909556e6613804d810405c1f72ce6 \ 32 32 sha1 28ea29305d233669ce565894a95151e4427d1f34 \ 33 33 rmd160 6c108f06ae32a86ddd8571e9031f143932f19531 … … 42 42 test.target check 43 43 44 44 post-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 } 56 49 } 57 50 51 pre-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 58 64 livecheck.type regexm 59 livecheck.regex { Current.+?version.+?<B>([0-9.]+)</B>}65 livecheck.regex {Previous<BR>series:.+?<B>(1\.2[0-9.]+)</B>}