Ticket #3107: Portfile

File Portfile, 1.3 KB (added by yves@…, 20 years ago)

Portfile

Line 
1# $Id: Portfile,v 1.5 2005/04/09 22:29:11 jmpp Exp $
2PortSystem 1.0
3name            netpbm
4version                 10.27
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     port:zlib port:jpeg port:tiff \
18                                port:libpng port:jasper
19extract.suffix  .tgz
20checksums               md5 c5efd105d1b7fb4685f60a39b230e880
21
22patchfiles              patch-converter-other-Makefile patch-lib-Makefile
23
24configure {
25        system "cd ${worksrcpath} &&
26                cat Makefile.config.in ${filespath}/Makefile.config.darwin |
27                    sed -e '/@PREFIX@/s@@${prefix}@' >Makefile.config";
28}
29
30build.target    ""
31
32destroot {
33        system "rm -rf ${destroot}${prefix} &&
34                cd ${worksrcpath} &&
35                make package pkgdir=${destroot}${prefix}"
36        system  "cd ${destroot}${prefix} &&
37                mkdir -p share/netpbm &&
38                mv misc/* share/netpbm &&
39                mv man share &&
40                rm -rf README VERSION config_template link misc pkginfo share/man/web"
41}