Ticket #12648: libpng-1.2.20.diff

File libpng-1.2.20.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.20
    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 8c186d9da3d011e2c3076b28f9c6be7b \
     27                        sha1 3fc27faf224ea31a43771c214f2f903ea2e98b0d \
     28                        rmd160 0934f9f304756e011c4f0d73ad95506e8663ccee
    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