# $Id$ PortSystem 1.0 name netpbm version 10.26.47 categories graphics maintainers mas openmaintainer description Image manipulation long_description \ A whole bunch of utilities for primitive manipulation \ of graphic images. Wide array of converters from one \ graphics format to another. E.g. from g3 fax format to \ jpeg. Many basic graphics editing tools such as \ magnifying and cropping. homepage http://netpbm.sourceforge.net/ master_sites sourceforge:netpbm platforms darwin freebsd linux depends_lib port:zlib port:jpeg port:tiff \ port:libpng port:jasper extract.suffix .tgz checksums sha1 9e4d9e90cafada5fb31caa98d719e1a0a93518ca set gcc-suffix "" patchfiles patch-lib-Makefile configure { system "cd ${worksrcpath} && cat Makefile.config.in ${filespath}/Makefile.config.${os.platform} | sed -e '/@PREFIX@/s@@${prefix}@' -e '/@GCC_SUFFIX@/s@@${gcc-suffix}@' \ > Makefile.config"; } build.args "messages=yes" build.target "" build.type gnu destroot { file delete -force ${destroot}${prefix} system "cd ${worksrcpath} && ${build.cmd} package pkgdir=${destroot}${prefix}" xinstall -m 755 -d ${destroot}${prefix}/share/netpbm system "cd ${destroot}${prefix} && mv bin/doc.url misc/* share/netpbm && mv man share && rm -rf README VERSION config_template link misc pkginfo share/man/web" } # "Netpbm has a sophisticated, rather novel system of releasing source code" livecheck.distname super stable # work around bug in Apple's gcc build 4061 platform darwin 8 { set fl [open "| gcc --version"] set data [read $fl] close $fl if {[regexp "build 4061" $data]} { set gcc-suffix "-3.3" } else { set gcc-suffix "-4.0" } } platform freebsd { patchfiles-append patch-libopt.c depends_build port:libtool }