source: trunk/dports/print/ghostscript/Portfile @ 1208

Last change on this file since 1208 was 1208, checked in by jkh, 18 years ago

Update to later version of ghostscript port.

Submitted by: Kevin Fyure <digdug@…>

  • Property svn:eol-style set to native
File size: 3.5 KB
Line 
1PortSystem 1.0
2
3name                    ghostscript
4version                 7.04
5revision                0
6
7categories              print
8maintainers             digdog@opendarwin.org
9platforms               darwin freebsd
10
11default_variants        +afpl +thirdparty +fonts
12
13variant afpl {
14    version             7.04
15    description         AFPL Ghostscript, An interpreter for PostScript and PDF
16    master_sites        ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/AFPL/gs704/:source
17    distfiles           ${distname}${extract.sufx}:source
18    checksums           ${distname}${extract.sufx} md5 03f287193d998c9cfaad3c25db9c7fa8
19    worksrcdir          gs7.04
20    pre-configure {
21        cd ${workpath}/${worksrcdir}
22        system "ln -sf src/configure.ac ."
23        system "ln -sf src/Makefile.in ."
24    }
25    use_autoconf        yes
26    autoconf.dir        ${workpath}/${worksrcdir}
27    build.target.all
28    include             afpl-contents
29}
30
31variant gnu {
32    version             7.05
33    description         GNU Ghostscript, An interpreter for PostScript and PDF
34    master_sites        ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/gnu/gs705/:source
35    distfiles           ${distname}${extract.sufx}:source
36    checksums           ${distname}${extract.sufx} md5 23e6cc8c4024c56a28479fad53f9bb80
37    worksrcdir          ${distname}
38    pre-configure {
39        cd ${workpath}/${worksrcdir}
40        system "ln -sf src/configure.ac ."
41        system "ln -sf src/Makefile.in ."
42    }
43    use_autoconf        yes
44    autoconf.dir        ${workpath}/${worksrcdir}
45    build.target.all
46    include             gnu-contents
47}
48
49variant devel {
50    version             7.30
51    description         AFPL Ghostscript, an interpreter for PostScript and PDF
52    fetch.type          cvs
53    cvs.root            pserver:anonymous@cvs.ghostscript.com:/cvs/ghostscript
54    cvs.module          gs7_30
55    worksrcdir          gs
56    use_autoconf        yes
57    autoconf.dir        ${workpath}/${worksrcdir}
58    build.target.all
59}
60
61# Ghostscript uses these packages when running configure & compiling. I just download and
62# extract them into the folder that Ghostscript required. Not sure if this could be done
63# by using depends_extract (I don't know how to use dependencies as sources), when users
64# already installed these pacakges, then we could just extract them directly from local
65# ${distpath} without download them everytime.
66variant thirdparty {
67    master_sites-append http://www.gzip.org/zlib/:zlib \
68                        http://www.libpng.org/pub/png/src/:libpng \
69                        http://www.ijg.org/files/:jpeg
70    distfiles-append    zlib-1.1.4${extract.sufx}:zlib \
71                        libpng-1.2.5${extract.sufx}:libpng \
72                        jpegsrc.v6b${extract.sufx}:jpeg
73    checksums-append    zlib-1.1.4${extract.sufx} md5 abc405d0bdd3ee22782d7aa20e440f08 \
74                        libpng-1.2.5${extract.sufx} md5 0cec860559f2f5f7145da3c6851bacb7 \
75                        jpegsrc.v6b${extract.sufx} md5 dbd5f3b47ed13132f04c685d608a7547
76    post-extract {
77        cd ${workpath}
78        system "mv zlib-1.1.4 ${worksrcdir}/zlib"
79        system "mv libpng-1.2.5 ${worksrcdir}/libpng"
80        system "mv jpeg-6b ${worksrcdir}/jpeg"
81    }
82}
83
84# Use AFPL fonts, cause they are same with GNU's.
85variant fonts {
86    master_sites-append http://mirror.cs.wisc.edu/pub/mirrors/ghost/AFPL/fonts/:fonts
87    distfiles-append    ghostscript-fonts-std-6.0${extract.sufx}:fonts \
88                        ghostscript-fonts-other-6.0${extract.sufx}:fonts
89    checksums-append    ghostscript-fonts-std-6.0${extract.sufx} md5 8250132d6fcc6eb1419f505f06c7690b \
90                        ghostscript-fonts-other-6.0${extract.sufx} md5 1a643ae62ef166562e4d422b1a601272
91    post-install {      if {![file exists ${prefix}/share/fonts]} {file mkdir ${prefix}/share/fonts}
92                        system "install -o root -m 644 ${workpath}/fonts/*.* ${prefix}/share/fonts/" }
93    include             fonts-contents
94}
Note: See TracBrowser for help on using the repository browser.