1 | # $Id: Portfile,v 1.3 2004/09/20 16:30:23 mww Exp $ |
---|
2 | PortSystem 1.0 |
---|
3 | name netpbm |
---|
4 | version 10.26.7 |
---|
5 | categories graphics |
---|
6 | maintainers yves@gnu-darwin.org |
---|
7 | description Image manipulation |
---|
8 | long_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. |
---|
13 | homepage http://netpbm.sourceforge.net/ |
---|
14 | master_sites sourceforge:netpbm |
---|
15 | platforms darwin |
---|
16 | |
---|
17 | depends_lib lib:libz.1:zlib lib:libjpeg.6:jpeg lib:libtiff.3:tiff \ |
---|
18 | lib:libpng.1:libpng lib:libjasper:jasper |
---|
19 | |
---|
20 | extract.suffix .tgz |
---|
21 | checksums md5 ad584702b0f8893ee2b3a9a054f69188 |
---|
22 | |
---|
23 | patchfiles patch-lib-Makefile |
---|
24 | |
---|
25 | configure { |
---|
26 | system "cd ${worksrcpath} && |
---|
27 | cat Makefile.config.in ../../files/Makefile.config.darwin | |
---|
28 | sed -e '/@PREFIX@/s@@${prefix}@' >Makefile.config"; |
---|
29 | } |
---|
30 | |
---|
31 | build.target "" |
---|
32 | |
---|
33 | destroot { |
---|
34 | # netpbm has its own destroot-ish procedure. |
---|
35 | system "rm -rf ${destroot}${prefix} && |
---|
36 | cd ${worksrcpath} && |
---|
37 | make package pkgdir=${destroot}${prefix}" |
---|
38 | system "cd ${destroot}${prefix} && |
---|
39 | rm -rf README VERSION link man/web pkginfo && |
---|
40 | mkdir -p share/netpbm && |
---|
41 | mv misc/* share/netpbm && |
---|
42 | mv man share" |
---|
43 | } |
---|