1 | # $Id: Portfile,v 1.14 2005/05/02 07:49:42 toby Exp $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name ghostscript |
---|
5 | version 8.51 |
---|
6 | homepage http://www.cs.wisc.edu/~ghost/ |
---|
7 | description AFPL Ghostscript, An interpreter for PostScript and PDF |
---|
8 | categories print |
---|
9 | platforms darwin |
---|
10 | maintainers digdog@opendarwin.org |
---|
11 | |
---|
12 | master_sites sourceforge:${name}:source \ |
---|
13 | sourceforge:gs-fonts:fonts \ |
---|
14 | http://www.ijg.org/files/:jpeg \ |
---|
15 | sourceforge:libpng:libpng \ |
---|
16 | http://www.zlib.net/:zlib |
---|
17 | |
---|
18 | distfiles ${distname}.tar.gz:source \ |
---|
19 | ghostscript-fonts-std-8.11.tar.gz:fonts \ |
---|
20 | jpegsrc.v6b.tar.gz:jpeg \ |
---|
21 | libpng-1.2.8.tar.gz:libpng \ |
---|
22 | zlib-1.2.2.tar.gz:zlib |
---|
23 | |
---|
24 | checksums ${distname}.tar.gz md5 882a4cbe1704256f906e18e02c7b877b \ |
---|
25 | ghostscript-fonts-std-8.11.tar.gz md5 6865682b095f8c4500c54b285ff05ef6 \ |
---|
26 | jpegsrc.v6b.tar.gz md5 dbd5f3b47ed13132f04c685d608a7547 \ |
---|
27 | libpng-1.2.8.tar.gz md5 cac1512878fb98f2456df6dc50bc9bc7 \ |
---|
28 | zlib-1.2.2.tar.gz md5 68bd51aaa6558c3bc3fd4890e53413de |
---|
29 | |
---|
30 | # Should be depends_extract, but that isn't implemented |
---|
31 | # To understand why doing this, please check official document: |
---|
32 | # http://www.ghostscript.com/doc/AFPL/8.00/Make.htm#Third-party_libraries |
---|
33 | post-extract { |
---|
34 | file copy ${workpath}/jpeg-6b ${workpath}/${distname}/jpeg |
---|
35 | file copy ${workpath}/libpng-1.2.8 ${workpath}/${distname}/libpng |
---|
36 | file copy ${workpath}/zlib-1.2.2 ${workpath}/${distname}/zlib |
---|
37 | } |
---|
38 | |
---|
39 | build.target |
---|
40 | |
---|
41 | destroot.destdir prefix=${destroot}/${prefix} |
---|
42 | post-destroot { |
---|
43 | file copy ${workpath}/fonts ${destroot}/${prefix}/share/ghostscript |
---|
44 | } |
---|
45 | |
---|
46 | long_description Ghostscript is the well-known PostScript interpreter which \ |
---|
47 | is available for all common and most esoteric platforms and \ |
---|
48 | supports many different printers and some displays. Versions \ |
---|
49 | entitled "AFPL Ghostscript" are distributed with a licence \ |
---|
50 | different from the GPL. |
---|