Skip to content
Permalink
Browse files

Update to later version of ghostscript port.

Submitted by:	Kevin Fyure <digdug@mac.com>

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@1208 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Jordan K. Hubbard
Jordan K. Hubbard committed Nov 9, 2002
1 parent c99bf53 commit c18b2fc0a31f91d3b7399d4bcdb52db820eb91e1
Showing with 947 additions and 34 deletions.
  1. +92 −34 print/ghostscript/Portfile
  2. +330 −0 print/ghostscript/afpl-contents
  3. +168 −0 print/ghostscript/fonts-contents
  4. +357 −0 print/ghostscript/gnu-contents
@@ -1,36 +1,94 @@
PortSystem 1.0

name ghostscript
version 7.04
revision 0

categories print
maintainers digdog@mac.com
description AFPL Ghostscript, An interpreter for PostScript and PDF

platforms darwin freebsd
master_sites ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/AFPL/gs704/:source \
http://www.gzip.org/zlib/:zlib \
http://www.libpng.org/pub/png/src/:libpng \
http://www.ijg.org/files/:jpeg
dist_subdir ${name}
distfiles ${distname}${extract.sufx}:source \
zlib-1.1.4${extract.sufx}:zlib \
libpng-1.2.5${extract.sufx}:libpng \
jpegsrc.v6b${extract.sufx}:jpeg
checksums ${distname}${extract.sufx} md5 03f287193d998c9cfaad3c25db9c7fa8 \
zlib-1.1.4${extract.sufx} md5 abc405d0bdd3ee22782d7aa20e440f08 \
libpng-1.2.5${extract.sufx} md5 0cec860559f2f5f7145da3c6851bacb7 \
jpegsrc.v6b${extract.sufx} md5 dbd5f3b47ed13132f04c685d608a7547

worksrcdir gs${version}
pre-configure { system "mv ${workpath}/zlib-1.1.4 ${workpath}/${worksrcdir}/zlib &&
mv ${workpath}/libpng-1.2.5 ${workpath}/${worksrcdir}/libpng &&
mv ${workpath}/jpeg-6b ${workpath}/${worksrcdir}/jpeg "
system "cd ${workpath}/${worksrcdir} &&
ln -sf src/configure.ac . &&
ln -sf src/Makefile.in ." }
use_autoconf yes
autoconf.dir ${workpath}/${worksrcdir}
build.target.all {}
include contents
name ghostscript
version 7.04
revision 0

categories print
maintainers digdog@opendarwin.org
platforms darwin freebsd

default_variants +afpl +thirdparty +fonts

variant afpl {
version 7.04
description AFPL Ghostscript, An interpreter for PostScript and PDF
master_sites ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/AFPL/gs704/:source
distfiles ${distname}${extract.sufx}:source
checksums ${distname}${extract.sufx} md5 03f287193d998c9cfaad3c25db9c7fa8
worksrcdir gs7.04
pre-configure {
cd ${workpath}/${worksrcdir}
system "ln -sf src/configure.ac ."
system "ln -sf src/Makefile.in ."
}
use_autoconf yes
autoconf.dir ${workpath}/${worksrcdir}
build.target.all
include afpl-contents
}

variant gnu {
version 7.05
description GNU Ghostscript, An interpreter for PostScript and PDF
master_sites ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/gnu/gs705/:source
distfiles ${distname}${extract.sufx}:source
checksums ${distname}${extract.sufx} md5 23e6cc8c4024c56a28479fad53f9bb80
worksrcdir ${distname}
pre-configure {
cd ${workpath}/${worksrcdir}
system "ln -sf src/configure.ac ."
system "ln -sf src/Makefile.in ."
}
use_autoconf yes
autoconf.dir ${workpath}/${worksrcdir}
build.target.all
include gnu-contents
}

variant devel {
version 7.30
description AFPL Ghostscript, an interpreter for PostScript and PDF
fetch.type cvs
cvs.root pserver:anonymous@cvs.ghostscript.com:/cvs/ghostscript
cvs.module gs7_30
worksrcdir gs
use_autoconf yes
autoconf.dir ${workpath}/${worksrcdir}
build.target.all
}

# Ghostscript uses these packages when running configure & compiling. I just download and
# extract them into the folder that Ghostscript required. Not sure if this could be done
# by using depends_extract (I don't know how to use dependencies as sources), when users
# already installed these pacakges, then we could just extract them directly from local
# ${distpath} without download them everytime.
variant thirdparty {
master_sites-append http://www.gzip.org/zlib/:zlib \
http://www.libpng.org/pub/png/src/:libpng \
http://www.ijg.org/files/:jpeg
distfiles-append zlib-1.1.4${extract.sufx}:zlib \
libpng-1.2.5${extract.sufx}:libpng \
jpegsrc.v6b${extract.sufx}:jpeg
checksums-append zlib-1.1.4${extract.sufx} md5 abc405d0bdd3ee22782d7aa20e440f08 \
libpng-1.2.5${extract.sufx} md5 0cec860559f2f5f7145da3c6851bacb7 \
jpegsrc.v6b${extract.sufx} md5 dbd5f3b47ed13132f04c685d608a7547
post-extract {
cd ${workpath}
system "mv zlib-1.1.4 ${worksrcdir}/zlib"
system "mv libpng-1.2.5 ${worksrcdir}/libpng"
system "mv jpeg-6b ${worksrcdir}/jpeg"
}
}

# Use AFPL fonts, cause they are same with GNU's.
variant fonts {
master_sites-append http://mirror.cs.wisc.edu/pub/mirrors/ghost/AFPL/fonts/:fonts
distfiles-append ghostscript-fonts-std-6.0${extract.sufx}:fonts \
ghostscript-fonts-other-6.0${extract.sufx}:fonts
checksums-append ghostscript-fonts-std-6.0${extract.sufx} md5 8250132d6fcc6eb1419f505f06c7690b \
ghostscript-fonts-other-6.0${extract.sufx} md5 1a643ae62ef166562e4d422b1a601272
post-install { if {![file exists ${prefix}/share/fonts]} {file mkdir ${prefix}/share/fonts}
system "install -o root -m 644 ${workpath}/fonts/*.* ${prefix}/share/fonts/" }
include fonts-contents
}

0 comments on commit c18b2fc

Please sign in to comment.
You can’t perform that action at this time.