Ticket #2252: Portfile

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

Portfile

Line 
1# $Id: Portfile,v 1.12 2004/06/28 15:43:57 rshaw Exp $
2
3PortSystem 1.0
4name            ghostscript
5version         8.14
6revision        1
7categories      print
8platforms       darwin freebsd
9maintainers     digdog@opendarwin.org
10description     AFPL Ghostscript, An interpreter for PostScript and PDF
11
12long_description        \
13        Ghostscript is the well-known PostScript interpreter which \
14        is available for all common and most esoteric platforms and \
15        supports many different printers and some displays. \
16        Versions entitled "AFPL Ghostscript" are distributed with \
17        a licence different from the GPL.
18homepage        http://www.cs.wisc.edu/~ghost/
19
20master_sites    sourceforge:${name}:source \
21                sourceforge:gs-fonts:fonts \
22                http://www.ijg.org/files/:jpeg \
23                sourceforge:libpng:libpng
24
25distfiles       ${distname}${extract.suffix}:source \
26                ghostscript-fonts-std-8.11${extract.suffix}:fonts \
27                jpegsrc.v6b${extract.suffix}:jpeg \
28                libpng-1.2.5${extract.suffix}:libpng \
29                zlib-1.1.4${extract.suffix}:libpng
30
31checksums       ${distname}${extract.suffix} md5 \
32                        3872d34765492e2892fed04eeabc8b0f \
33                ghostscript-fonts-std-8.11${extract.suffix} md5 \
34                        6865682b095f8c4500c54b285ff05ef6 \
35                jpegsrc.v6b${extract.suffix} md5 \
36                        dbd5f3b47ed13132f04c685d608a7547 \
37                libpng-1.2.5${extract.suffix} md5 \
38                        0cec860559f2f5f7145da3c6851bacb7 \
39                zlib-1.1.4${extract.suffix} md5 \
40                        abc405d0bdd3ee22782d7aa20e440f08
41
42# Should be depends_extract, but that isn't implemented
43# To understand why doing this, please check official document:
44# http://www.ghostscript.com/doc/AFPL/8.00/Make.htm#Third-party_libraries
45post-extract    {
46        cd ${workpath}
47        system "mv jpeg-6b ${distname}/jpeg"
48        system "mv libpng-1.2.5 ${distname}/libpng"
49        system "mv zlib-1.1.4 ${distname}/zlib"
50}
51
52configure.args          --mandir='\${prefix}/share/man'
53
54build.target
55
56destroot.destdir        prefix=${destroot}/${prefix}
57post-destroot   {
58        system "mkdir -p ${destroot}/${prefix}/share/ghostscript/"
59        system "mv ${workpath}/fonts ${destroot}/${prefix}/share/ghostscript"
60}