Ticket #1628: Portfile

File Portfile, 1.9 KB (added by digdog@…, 17 years ago)

Portfile

Line 
1# $Id: $
2
3PortSystem 1.0
4name            ghostscript
5version         8.14
6homepage        http://www.cs.wisc.edu/~ghost/
7description     AFPL Ghostscript, An interpreter for PostScript and PDF
8categories      print
9platforms       darwin freebsd
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
17distfiles       ${distname}${extract.suffix}:source \
18                ghostscript-fonts-std-8.11${extract.suffix}:fonts \
19                jpegsrc.v6b${extract.suffix}:jpeg \
20                libpng-1.2.5${extract.suffix}:libpng \
21                zlib-1.1.4${extract.suffix}:libpng
22
23checksums       ${distname}${extract.suffix} md5 3872d34765492e2892fed04eeabc8b0f \
24                ghostscript-fonts-std-8.11${extract.suffix} md5 6865682b095f8c4500c54b285ff05ef6 \
25                jpegsrc.v6b${extract.suffix} md5 dbd5f3b47ed13132f04c685d608a7547 \
26                libpng-1.2.5${extract.suffix} md5 0cec860559f2f5f7145da3c6851bacb7 \
27                zlib-1.1.4${extract.suffix} md5 abc405d0bdd3ee22782d7aa20e440f08
28
29# Should be depends_extract, but that isn't implemented
30# To understand why doing this, please check official document:
31# http://www.ghostscript.com/doc/AFPL/8.00/Make.htm#Third-party_libraries
32post-extract    {cd ${workpath}
33                system "mv jpeg-6b ${distname}/jpeg"
34                system "mv libpng-1.2.5 ${distname}/libpng"
35                system "mv zlib-1.1.4 ${distname}/zlib" }
36
37build.target
38
39destroot.destdir        prefix=${destroot}/${prefix}
40post-destroot   {
41                        system "mkdir -p ${destroot}/${prefix}/share/ghostscript/"
42                        system "mv ${workpath}/fonts ${destroot}/${prefix}/share/ghostscript" }
43                               
44long_description        Ghostscript is the well-known PostScript interpreter which \
45                        is available for Ghostscript is the well-known PostScript \
46                        interpreter which is available for all common and most \
47                        esoteric platforms and supports many different printers \
48                        and some displays. \
49                        Versions entitled "AFPL Ghostscript" are distributed with \
50                        a licence different from the GPL.