Ticket #3104: Portfile

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

Portfile

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