2012-05-16 15:32:41 +02:00
|
|
|
# Template file for 'ghostscript'
|
|
|
|
pkgname=ghostscript
|
2012-08-09 14:02:52 +02:00
|
|
|
version=9.06
|
2013-04-30 11:02:42 +02:00
|
|
|
revision=5
|
2012-05-16 15:32:41 +02:00
|
|
|
short_desc="An interpreter for the PostScript language"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
homepage="http://www.ghostscript.com/"
|
|
|
|
license="GPL-3, custom"
|
2012-06-12 21:44:11 +02:00
|
|
|
distfiles="http://downloads.ghostscript.com/public/$pkgname-$version.tar.bz2"
|
2012-08-09 14:02:52 +02:00
|
|
|
checksum=05acd1b576899572ef8ecbc25637cf73cbd0be267e651732db3012db33088e04
|
2012-06-12 21:44:11 +02:00
|
|
|
|
2013-01-08 10:10:40 +01:00
|
|
|
disable_parallel_build=yes
|
2013-04-03 16:56:36 +02:00
|
|
|
hostmakedepends="automake libtool pkg-config"
|
2013-04-30 11:02:42 +02:00
|
|
|
makedepends="dbus-devel libXext-devel libXt-devel libpng-devel>=1.6
|
2013-04-03 16:56:36 +02:00
|
|
|
fontconfig-devel jasper-devel tiff-devel lcms2-devel cups-devel"
|
2014-01-01 16:10:11 +01:00
|
|
|
depends="gsfonts"
|
2012-05-16 15:32:41 +02:00
|
|
|
|
|
|
|
pre_configure() {
|
|
|
|
# force it to use system libs.
|
|
|
|
rm -rf jpeg libpng zlib jasper expat tiff lcms lcms2 freetype
|
|
|
|
}
|
|
|
|
|
|
|
|
do_configure() {
|
|
|
|
# configure ghostscript
|
2013-05-26 10:41:55 +02:00
|
|
|
./configure ${configure_args} --enable-dynamic --with-ijs \
|
2012-05-16 15:32:41 +02:00
|
|
|
--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 \
|
|
|
|
--disable-compile-inits
|
|
|
|
|
|
|
|
# configure libijs
|
2013-01-08 10:35:38 +01:00
|
|
|
sed -i -e "s|AM_PROG_CC_STDC|AC_PROG_CC|g" ijs/configure.ac
|
2013-04-30 11:02:42 +02:00
|
|
|
cd ijs
|
|
|
|
./autogen.sh
|
2013-05-26 10:41:55 +02:00
|
|
|
./configure ${configure_args} --enable-shared --disable-static
|
2012-05-16 15:32:41 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
do_build() {
|
|
|
|
# build ghostscript
|
2013-04-30 11:02:42 +02:00
|
|
|
make ${makejobs}
|
|
|
|
make ${makejobs} so
|
2012-05-16 15:32:41 +02:00
|
|
|
# build libijs
|
2013-04-30 11:02:42 +02:00
|
|
|
cd ijs
|
|
|
|
make ${makejobs}
|
2012-05-16 15:32:41 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
# install ghostscript
|
|
|
|
make DESTDIR=${DESTDIR} cups_serverroot=${DESTDIR}/etc/cups \
|
|
|
|
cups_serverbin=${DESTDIR}/usr/lib/cups install soinstall
|
|
|
|
# install missing doc files # http://bugs.archlinux.org/task/18023
|
|
|
|
install -m644 doc/{Ps2ps2.htm,gs-vms.hlp,gsdoc.el,pscet_status.txt} \
|
|
|
|
${DESTDIR}/usr/share/ghostscript/$version/doc/
|
|
|
|
# install license
|
|
|
|
vinstall LICENSE 644 usr/share/licenses/${pkgname}
|
|
|
|
|
|
|
|
# install libijs
|
2013-04-30 11:02:42 +02:00
|
|
|
cd ijs
|
|
|
|
make DESTDIR=${DESTDIR} install
|
2012-05-16 15:32:41 +02:00
|
|
|
}
|
|
|
|
|
2013-04-12 13:13:49 +02:00
|
|
|
|
|
|
|
libgs_package() {
|
2013-04-30 11:02:42 +02:00
|
|
|
short_desc+=" -- runtime shared library"
|
2013-04-12 13:13:49 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/libgs.so*"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libijs_package() {
|
2013-04-30 11:02:42 +02:00
|
|
|
short_desc+=" -- IJS runtime shared library"
|
2013-04-12 13:13:49 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/libijs*"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ghostscript-devel_package() {
|
|
|
|
depends="libijs>=${version} libgs>=${version}"
|
2013-04-30 11:02:42 +02:00
|
|
|
short_desc+=" -- development files"
|
2013-04-12 13:13:49 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove usr/bin/ijs-config
|
|
|
|
vmove usr/share/man/man1/ijs-config.1
|
|
|
|
}
|
|
|
|
}
|