Ticket #19498: optipng-Portfile.diff

File optipng-Portfile.diff, 1.5 KB (added by jmroot (Joshua Root), 15 years ago)
  • Portfile

     
    44
    55name            optipng
    66version         0.6.2
     7revision        1
    78categories      graphics
    89maintainers     vincent-opdarw@vinc17.org
    910description     PNG file optimizer
     
    2627
    2728# Doesn't depend on libpng or zlib since it uses its own, modified versions
    2829
    29 worksrcdir      ${name}-${version}/src
     30patch.pre_args  -p1
     31patchfiles      optipng-0.6.2.1.diff
    3032
    31 use_configure   no
    32 
    3333# Make sure gmake 3.81+ is used, as scripts/gcc.mak needs POSIX
    3434# backslash-newline sequence compatibility.
    3535depends_build   port:gmake
    3636
    37 build.cmd       gmake -f scripts/gcc.mak
    38 build.target    ""
     37configure.pre_args
    3938
     39build.cmd       ${prefix}/bin/gmake
     40
    4041destroot {
    4142        xinstall -m 755 -d ${destroot}${prefix}/bin \
    4243          ${destroot}${prefix}/share/doc/${name} \
    4344          ${destroot}${prefix}/share/man/man1
    44         xinstall -m 755 -W ${worksrcpath} optipng ${destroot}${prefix}/bin
    45         eval xinstall -m 644 [glob ${worksrcpath}/../doc/*] \
    46           ${worksrcpath}/../README.txt ${destroot}${prefix}/share/doc/${name}
    47         xinstall -m 644 ${worksrcpath}/../man/optipng.1 \
     45        xinstall -m 755 -W ${worksrcpath}/src optipng ${destroot}${prefix}/bin
     46        eval xinstall -m 644 [glob ${worksrcpath}/doc/*] \
     47          ${worksrcpath}/README.txt ${destroot}${prefix}/share/doc/${name}
     48        xinstall -m 644 ${worksrcpath}/man/optipng.1 \
    4849          ${destroot}${prefix}/share/man/man1
    4950}
    5051