Ticket #3204: Portfile

File Portfile, 1.7 KB (added by digdog@…, 19 years ago)

Portfile

Line 
1# $Id: Portfile,v 1.14 2005/05/02 07:49:42 toby Exp $
2
3PortSystem 1.0
4name            ghostscript
5version         8.51
6homepage        http://www.cs.wisc.edu/~ghost/
7description     AFPL Ghostscript, An interpreter for PostScript and PDF
8categories      print
9platforms       darwin
10maintainers     digdog@opendarwin.org
11
12master_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
18distfiles       ${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
24checksums       ${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
33post-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
39build.target
40
41destroot.destdir        prefix=${destroot}/${prefix}
42post-destroot   {
43                file copy ${workpath}/fonts ${destroot}/${prefix}/share/ghostscript
44                }
45
46long_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.