Ticket #487: Portfile.2

File Portfile.2, 1.2 KB (added by fenner@…, 18 years ago)

New Portfile for 10.11.10

Line 
1# $Id: $
2PortSystem 1.0
3name            netpbm
4version         10.11.10
5categories      graphics
6maintainers     norume@aps.anl.gov
7description     Image manipulation
8long_description    A whole bunch of utilities for primitive manipulation \
9                    of graphic images.  Wide array of converters from one \
10                    graphics format to another.  E.g. from g3 fax format to \
11                    jpeg.  Many basic graphics editing tools such as \
12                    magnifying and cropping.
13homepage        http://netpbm.sourceforge.net/
14master_sites    sourceforge:netpbm
15depends_lib     lib:libzlib.1:zlib lib:libjpeg.6:jpeg lib:libtiff.3:tiff lib:libpng.1:libpng
16extract.sufx    .tgz
17checksums       md5 4c057801d3c5bd116fda88a57cedb057
18configure {
19        system "cd ${worksrcpath} &&
20                cat Makefile.config.in ../../files/Makefile.config.darwin |
21                    sed -e '/@PREFIX@/s@@${prefix}@' >Makefile.config";
22}
23install {
24        system "rm -rf ${worksrcpath}/insttmp &&
25                cd ${worksrcpath} &&
26                make package pkgdir=${worksrcpath}/insttmp &&
27                ( cd ${worksrcpath}/insttmp/lib ;
28                          ln -s libnetpbm.${version}.dylib libnetpbm.dylib ) &&
29                ( cd ${worksrcpath}/insttmp ;
30                  tar cf - bin lib include man ) | ( cd ${destroot}${prefix} ;
31                                                     tar xf - )";
32}