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'
pkgname=ghostscript
version=9.18
revision=3
version=9.19
revision=1
short_desc="An interpreter for the PostScript language"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://www.ghostscript.com/"
license="AGPL-3, CPL-1.0"
distfiles="http://downloads.ghostscript.com/public/old-gs-releases/ghostscript-${version}.tar.gz"
checksum=5fc93079749a250be5404c465943850e3ed5ffbc0d5c07e10c7c5ee8afbbdb1b
distfiles="https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${version/./}/ghostscript-${version}.tar.bz2"
checksum=f67acdcfcde1f86757ff3553cd719f12eac2d7681a0e96d8bdd1f40a0f47b45b
hostmakedepends="automake libtool pkg-config"
makedepends="
@ -18,7 +18,7 @@ depends="gsfonts"
pre_configure() {
# 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
sed -i 's/-L$(BINDIR)/& $(LDFLAGS)/g' base/unix-dll.mak
@ -28,18 +28,14 @@ pre_configure() {
}
do_configure() {
case "${XBPS_TARGET_MACHINE}" in
mips) configure_args+=" --enable-big-endian";;
*) configure_args+=" --enable-little-endian";;
esac
cd ${wrksrc}
# configure ghostscript
./configure ${configure_args} --enable-dynamic --with-ijs \
--with-jbig2dec --with-omni --with-x --with-drivers=ALL \
--with-fontpath=/usr/share/fonts/Type1:/usr/share/fonts \
--enable-fontconfig --enable-freetype --without-luratech \
--without-omni --with-system-libtiff --disable-compile-inits
--enable-fontconfig --enable-freetype --enable-openjpeg \
--with-libpaper --without-luratech --without-omni \
--with-system-libtiff --disable-compile-inits
# configure libijs
cd ijs
@ -70,7 +66,7 @@ do_install() {
make DESTDIR=${DESTDIR} cups_serverroot=${DESTDIR}/etc/cups \
cups_serverbin=${DESTDIR}/usr/lib/cups install install-so
# 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/
# install license
vinstall LICENSE 644 usr/share/licenses/${pkgname}
@ -111,7 +107,5 @@ ghostscript-devel_package() {
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/bin/ijs-config
vmove usr/share/man/man1/ijs-config.1
}
}