ghostscript: update to 9.19

- download location moved to github
- enable openjpeg support (using bundled patched version)
- custom endian checks are gone
- ijs-config is gone
This commit is contained in:
Alessio Sergi 2016-09-23 00:19:19 +02:00
parent 3726e50ed5
commit afb0d81038

View file

@ -1,13 +1,13 @@
# Template file for 'ghostscript' # Template file for 'ghostscript'
pkgname=ghostscript pkgname=ghostscript
version=9.18 version=9.19
revision=3 revision=1
short_desc="An interpreter for the PostScript language" short_desc="An interpreter for the PostScript language"
maintainer="Juan RP <xtraeme@voidlinux.eu>" maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://www.ghostscript.com/" homepage="http://www.ghostscript.com/"
license="AGPL-3, CPL-1.0" license="AGPL-3, CPL-1.0"
distfiles="http://downloads.ghostscript.com/public/old-gs-releases/ghostscript-${version}.tar.gz" distfiles="https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${version/./}/ghostscript-${version}.tar.bz2"
checksum=5fc93079749a250be5404c465943850e3ed5ffbc0d5c07e10c7c5ee8afbbdb1b checksum=f67acdcfcde1f86757ff3553cd719f12eac2d7681a0e96d8bdd1f40a0f47b45b
hostmakedepends="automake libtool pkg-config" hostmakedepends="automake libtool pkg-config"
makedepends=" makedepends="
@ -18,7 +18,7 @@ depends="gsfonts"
pre_configure() { pre_configure() {
# force it to use system libs. # force it to use system libs.
rm -rf jpeg{,xr} libpng jasper expat tiff lcms{,2} freetype cups/libs jbig2dec rm -rf zlib jpeg libpng jasper expat tiff lcms2 freetype cups/libs jbig2dec
# add missing LDFLAGS # add missing LDFLAGS
sed -i 's/-L$(BINDIR)/& $(LDFLAGS)/g' base/unix-dll.mak sed -i 's/-L$(BINDIR)/& $(LDFLAGS)/g' base/unix-dll.mak
@ -28,18 +28,14 @@ pre_configure() {
} }
do_configure() { do_configure() {
case "${XBPS_TARGET_MACHINE}" in
mips) configure_args+=" --enable-big-endian";;
*) configure_args+=" --enable-little-endian";;
esac
cd ${wrksrc} cd ${wrksrc}
# configure ghostscript # configure ghostscript
./configure ${configure_args} --enable-dynamic --with-ijs \ ./configure ${configure_args} --enable-dynamic --with-ijs \
--with-jbig2dec --with-omni --with-x --with-drivers=ALL \ --with-jbig2dec --with-omni --with-x --with-drivers=ALL \
--with-fontpath=/usr/share/fonts/Type1:/usr/share/fonts \ --with-fontpath=/usr/share/fonts/Type1:/usr/share/fonts \
--enable-fontconfig --enable-freetype --without-luratech \ --enable-fontconfig --enable-freetype --enable-openjpeg \
--without-omni --with-system-libtiff --disable-compile-inits --with-libpaper --without-luratech --without-omni \
--with-system-libtiff --disable-compile-inits
# configure libijs # configure libijs
cd ijs cd ijs
@ -70,7 +66,7 @@ do_install() {
make DESTDIR=${DESTDIR} cups_serverroot=${DESTDIR}/etc/cups \ make DESTDIR=${DESTDIR} cups_serverroot=${DESTDIR}/etc/cups \
cups_serverbin=${DESTDIR}/usr/lib/cups install install-so cups_serverbin=${DESTDIR}/usr/lib/cups install install-so
# install missing doc files # http://bugs.archlinux.org/task/18023 # install missing doc files # http://bugs.archlinux.org/task/18023
install -m644 doc/{Ps2ps2.htm,gs-vms.hlp,gsdoc.el,pscet_status.txt} \ install -m644 doc/{VectorDevices.htm,gs-vms.hlp,gsdoc.el,pscet_status.txt} \
${DESTDIR}/usr/share/ghostscript/$version/doc/ ${DESTDIR}/usr/share/ghostscript/$version/doc/
# install license # install license
vinstall LICENSE 644 usr/share/licenses/${pkgname} vinstall LICENSE 644 usr/share/licenses/${pkgname}
@ -111,7 +107,5 @@ ghostscript-devel_package() {
pkg_install() { pkg_install() {
vmove usr/include vmove usr/include
vmove usr/lib/pkgconfig vmove usr/lib/pkgconfig
vmove usr/bin/ijs-config
vmove usr/share/man/man1/ijs-config.1
} }
} }