Ticket #12648: libpng-1.2.19.diff

File libpng-1.2.19.diff, 1.8 KB (added by nox@…, 17 years ago)
  • Portfile

     
    11# $Id$
    22
    3 PortSystem 1.0
     3PortSystem      1.0
     4
    45name            libpng
    5 version         1.2.18
     6version         1.2.19
    67categories      graphics
    78maintainers     ryandesign waqar@macports.org
    89description     Library for manipulating PNG images
     10
    911long_description        \
    1012        Libpng was written as a companion to the PNG specification, as a  \
    1113        way to reduce the amount of time and effort it takes to support   \
     
    1517        attempts were made to make it as complete as possible, while      \
    1618        keeping the code easy to understand.  Currently, this library     \
    1719        only supports C.  Support for other languages is being considered.
     20
    1821platforms       darwin openbsd freebsd sunos linux
    1922homepage        http://www.libpng.org/pub/png/
    2023use_bzip2       yes
    2124master_sites    sourceforge
    22 checksums       md5 25a7f2f101eaaf2eb18c4987e0fbe39d \
    23                         sha1 42156e45fa999b242dc63c261e9253ce0dd810ab \
    24                         rmd160 ea81056a896eb038fa5d7fde2b7fa626c1a2e31e
    2525
    26 depends_lib     port:zlib
     26checksums       md5 02aac1f1aecc096f6045676e977ec641 \
     27                        sha1 681e94e43d2799715b7888fb495200f9b204849a \
     28                        rmd160 f0e4facbc037f9259dedfe6eafc1f58f8cedc6a5
    2729
    28 configure.args  --mandir=${prefix}/share/man
     30depends_lib     port:zlib
    2931
    3032test.run        yes
    3133test.target     check
    3234
    3335post-destroot   {
    34         system "ranlib ${destroot}${prefix}/lib/libpng12.a"
    35         xinstall -d -m 755 ${destroot}${prefix}/share/${name}
    36         file copy ${worksrcpath}/example.c ${destroot}${prefix}/share/${name}
     36        set docdir ${prefix}/share/doc/${name}-${version}
     37        xinstall -d ${destroot}${docdir}/examples
     38        xinstall -m 0644 -W ${worksrcpath} ANNOUNCE CHANGES KNOWNBUG LICENSE README \
     39                TODO ${destroot}${docdir}
     40        xinstall -m 0644 ${worksrcpath}/example.c ${destroot}${docdir}/examples
    3741}
    3842
    3943platform darwin 8 {
    4044        configure.compiler      gcc-4.0
    4145}
     46