Ticket #19498: optipng-Portfile.diff
File optipng-Portfile.diff, 1.5 KB (added by jmroot (Joshua Root), 16 years ago) |
---|
-
Portfile
4 4 5 5 name optipng 6 6 version 0.6.2 7 revision 1 7 8 categories graphics 8 9 maintainers vincent-opdarw@vinc17.org 9 10 description PNG file optimizer … … 26 27 27 28 # Doesn't depend on libpng or zlib since it uses its own, modified versions 28 29 29 worksrcdir ${name}-${version}/src 30 patch.pre_args -p1 31 patchfiles optipng-0.6.2.1.diff 30 32 31 use_configure no32 33 33 # Make sure gmake 3.81+ is used, as scripts/gcc.mak needs POSIX 34 34 # backslash-newline sequence compatibility. 35 35 depends_build port:gmake 36 36 37 build.cmd gmake -f scripts/gcc.mak 38 build.target "" 37 configure.pre_args 39 38 39 build.cmd ${prefix}/bin/gmake 40 40 41 destroot { 41 42 xinstall -m 755 -d ${destroot}${prefix}/bin \ 42 43 ${destroot}${prefix}/share/doc/${name} \ 43 44 ${destroot}${prefix}/share/man/man1 44 xinstall -m 755 -W ${worksrcpath} optipng ${destroot}${prefix}/bin45 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 \ 48 49 ${destroot}${prefix}/share/man/man1 49 50 } 50 51