Ticket #3104: Portfile.2

File Portfile.2, 2.0 KB (added by yves@…, 19 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
8long_description        Ghostscript is the well-known PostScript interpreter \
9                        which is available for Ghostscript is the well-known \
10                        PostScript interpreter which is available for all \
11                        common and most esoteric platforms and supports many \
12                        different printers and some displays. This provides \
13                        the GPL version.
14
15categories      print
16platforms       darwin
17maintainers     blb@pobox.com
18
19master_sites    sourceforge:ghostscript:source \
20                                sourceforge:gs-fonts:fonts \
21                http://www.ijg.org/files/:jpeg
22
23distname        ghostscript-${version}
24distfiles       ${distname}.tar.gz:source \
25                        ghostscript-fonts-std-8.11.tar.gz:fonts \
26                        jpegsrc.v6b.tar.gz:jpeg
27
28checksums       ${distname}.tar.gz \
29                                md5 742dfdb324cc2bb66b116a74577a99f6 \
30                        ghostscript-fonts-std-8.11.tar.gz \
31                                md5 6865682b095f8c4500c54b285ff05ef6 \
32                        jpegsrc.v6b.tar.gz \
33                                md5 dbd5f3b47ed13132f04c685d608a7547
34
35post-extract    {
36                cd ${workpath}
37                system "mv jpeg-6b ${distname}/jpeg"
38                cd ${worksrcpath}
39                system "ln -s src/unix-gcc.mak makefile"
40}
41
42patchfiles      patch-src-unix-dll.mak
43
44use_configure   no
45
46build.target    so
47build.args      SHARE_LIBPNG=1 \
48                SHARE_ZLIB=1 \
49                XCFLAGS="-I${prefix}/include -no-cpp-precomp" \
50                XLDFLAGS="-L${prefix}/lib" \
51                prefix=${prefix} \
52                mandir=${prefix}/share/man
53
54destroot.target soinstall
55destroot.destdir        prefix=${destroot}/${prefix}
56destroot.args   SHARE_LIBPNG=1 \
57                SHARE_ZLIB=1 \
58                XCFLAGS="-I${prefix}/include -no-cpp-precomp" \
59                XLDFLAGS="-L${prefix}/lib" \
60                mandir=${destroot}/${prefix}/share/man
61
62post-destroot   {
63        file mkdir ${destroot}/${prefix}/share/ghostscript/ \
64                ${destroot}/${prefix}/include/ps
65        file copy ${workpath}/fonts ${destroot}/${prefix}/share/ghostscript
66        file copy ${worksrcpath}/src/iapi.h ${worksrcpath}/src/errors.h \
67                ${worksrcpath}/src/gdevdsp.h ${destroot}/${prefix}/include/ps
68        system "ln -s gsc ${destroot}/${prefix}/bin/gs"
69}