ghostscript: update to 9.10.

This commit is contained in:
Juan RP 2014-03-14 13:58:06 +01:00
parent 4dd3eb3d71
commit 58dd980daa
1 changed files with 22 additions and 16 deletions

View File

@ -1,23 +1,23 @@
# Template file for 'ghostscript'
pkgname=ghostscript
version=9.06
revision=5
version=9.10
revision=1
short_desc="An interpreter for the PostScript language"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.ghostscript.com/"
license="GPL-3, custom"
distfiles="http://downloads.ghostscript.com/public/$pkgname-$version.tar.bz2"
checksum=05acd1b576899572ef8ecbc25637cf73cbd0be267e651732db3012db33088e04
checksum=6c8d9d1b23bd8ffd238274e342a40ab21762b0aab6355083ca0db673267dd580
disable_parallel_build=yes
hostmakedepends="automake libtool pkg-config"
makedepends="dbus-devel libXext-devel libXt-devel libpng-devel>=1.6
fontconfig-devel jasper-devel tiff-devel lcms2-devel cups-devel"
fontconfig-devel jasper-devel tiff-devel lcms2-devel jbig2dec-devel
cups-devel gsfonts"
depends="gsfonts"
pre_configure() {
# force it to use system libs.
rm -rf jpeg libpng zlib jasper expat tiff lcms lcms2 freetype
rm -rf jpeg libpng zlib jasper expat tiff lcms lcms2 freetype cups/libs jbig2dec
}
do_configure() {
@ -26,23 +26,23 @@ do_configure() {
--with-jbig2dec --with-omni --with-x --with-drivers=ALL \
--with-fontpath=/usr/share/fonts/Type1:/usr/share/fonts \
--with-install-cups --enable-fontconfig --enable-freetype \
--without-luratech --with-system-libtiff \
--without-luratech --without-omni --with-system-libtiff \
--disable-compile-inits
# configure libijs
sed -i -e "s|AM_PROG_CC_STDC|AC_PROG_CC|g" ijs/configure.ac
cd ijs
sed -i -e "s|AM_PROG_CC_STDC|AC_PROG_CC|g" configure.ac
./autogen.sh
./configure ${configure_args} --enable-shared --disable-static
}
do_build() {
# build ghostscript
make ${makejobs}
make ${makejobs} so
make
make so
# build libijs
cd ijs
make ${makejobs}
make
}
do_install() {
@ -54,30 +54,36 @@ do_install() {
${DESTDIR}/usr/share/ghostscript/$version/doc/
# install license
vinstall LICENSE 644 usr/share/licenses/${pkgname}
# remove unwanted localized man-pages
rm -rf ${DESTDIR}/usr/share/man/[^man1]*
# install libijs
cd ijs
make DESTDIR=${DESTDIR} install
# Remove conflicting files with cups-filters.
rm -f ${DESTDIR}/usr/lib/cups/filter/{gstopxl,gstoraster}
}
libgs_package() {
short_desc+=" -- runtime shared library"
short_desc+=" - runtime shared library"
pkg_install() {
vmove "usr/lib/libgs.so*"
}
}
libijs_package() {
short_desc+=" -- IJS runtime shared library"
short_desc+=" - IJS runtime shared library"
pkg_install() {
vmove "usr/lib/libijs*"
}
}
ghostscript-devel_package() {
depends="libijs>=${version} libgs>=${version}"
short_desc+=" -- development files"
depends="libijs>=${version}_${revision} libgs>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig