Ticket #2859: Portfile.3

File Portfile.3, 1.3 KB (added by yves@…, 19 years ago)

Another Portfile

Line 
1# $Id: Portfile,v 1.4 2005/04/05 02:44:20 jmpp Exp $
2PortSystem 1.0
3name            netpbm
4version                 10.26.7
5categories      graphics
6maintainers     yves@gnu-darwin.org
7description     Image manipulation
8long_description \
9        A whole bunch of utilities for primitive manipulation   \
10    of graphic images.  Wide array of converters from one       \
11    graphics format to another.  E.g. from g3 fax format to \
12    jpeg.  Many basic graphics editing tools such as            \
13    magnifying and cropping.
14homepage        http://netpbm.sourceforge.net/
15master_sites    sourceforge:netpbm
16platforms               darwin
17depends_lib     lib:libz.1:zlib lib:libjpeg.6:jpeg lib:libtiff.3:tiff \
18                                lib:libpng.1:libpng lib:libjasper:jasper
19extract.suffix  .tgz
20checksums               md5 ad584702b0f8893ee2b3a9a054f69188
21
22patchfiles              patch-lib-Makefile
23
24configure {
25        system "cd ${worksrcpath} &&
26                cat Makefile.config.in ../../files/Makefile.config.darwin |
27                    sed -e '/@PREFIX@/s@@${prefix}@' >Makefile.config";
28}
29
30build.target    ""
31
32destroot {
33        # netpbm has its own destroot-ish procedure.
34        system "rm -rf ${destroot}${prefix} &&
35                cd ${worksrcpath} &&
36                make package pkgdir=${destroot}${prefix}"
37        system  "cd ${destroot}${prefix} &&
38                mkdir -p share/netpbm &&
39                mv misc/* share/netpbm &&
40                mv man share &&
41                rm -rf README VERSION link misc pkginfo share/man/web"
42}