1 | # $Id: Portfile,v 1.14 2005/05/02 07:49:42 toby Exp $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name gplghostscript |
---|
5 | version 8.15 |
---|
6 | homepage http://www.cs.wisc.edu/~ghost/ |
---|
7 | description GPL Ghostscript, An interpreter for PostScript and PDF |
---|
8 | long_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 | |
---|
15 | categories print |
---|
16 | platforms darwin |
---|
17 | maintainers blb@pobox.com |
---|
18 | |
---|
19 | master_sites sourceforge:ghostscript:source \ |
---|
20 | sourceforge:gs-fonts:fonts \ |
---|
21 | http://www.ijg.org/files/:jpeg |
---|
22 | |
---|
23 | distname ghostscript-${version} |
---|
24 | distfiles ${distname}.tar.gz:source \ |
---|
25 | ghostscript-fonts-std-8.11.tar.gz:fonts \ |
---|
26 | jpegsrc.v6b.tar.gz:jpeg |
---|
27 | |
---|
28 | checksums ${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 | |
---|
35 | post-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 | |
---|
42 | patchfiles patch-src-unix-dll.mak |
---|
43 | |
---|
44 | use_configure no |
---|
45 | |
---|
46 | build.target so |
---|
47 | build.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 | |
---|
54 | destroot.target soinstall |
---|
55 | destroot.destdir prefix=${destroot}/${prefix} |
---|
56 | destroot.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 | |
---|
62 | post-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 | } |
---|