Ticket #2859: Portfile.2

File Portfile.2, 1.3 KB (added by jmpp@…, 19 years ago)

New Portfile

Line 
1# $Id: Portfile,v 1.3 2004/09/20 16:30:23 mww Exp $
2PortSystem 1.0
3name            netpbm
4version         10.26.7
5categories      graphics
6maintainers     yves@gnu-darwin.org
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
15platforms       darwin
16
17depends_lib     lib:libz.1:zlib lib:libjpeg.6:jpeg lib:libtiff.3:tiff \
18                lib:libpng.1:libpng lib:libjasper:jasper
19
20extract.suffix  .tgz
21checksums       md5 ad584702b0f8893ee2b3a9a054f69188
22
23patchfiles      patch-lib-Makefile
24
25configure {
26        system "cd ${worksrcpath} &&
27                cat Makefile.config.in ../../files/Makefile.config.darwin |
28                    sed -e '/@PREFIX@/s@@${prefix}@' >Makefile.config";
29}
30
31build.target    ""
32
33destroot {
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}