2012-05-16 13:32:41 +00:00
|
|
|
# Template file for 'ghostscript'
|
|
|
|
pkgname=ghostscript
|
2014-03-14 12:58:06 +00:00
|
|
|
version=9.10
|
|
|
|
revision=1
|
2012-05-16 13:32:41 +00: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 19:44:11 +00:00
|
|
|
distfiles="http://downloads.ghostscript.com/public/$pkgname-$version.tar.bz2"
|
2014-03-14 12:58:06 +00:00
|
|
|
checksum=6c8d9d1b23bd8ffd238274e342a40ab21762b0aab6355083ca0db673267dd580
|
2012-06-12 19:44:11 +00:00
|
|
|
|
2013-04-03 14:56:36 +00:00
|
|
|
hostmakedepends="automake libtool pkg-config"
|
2013-04-30 09:02:42 +00:00
|
|
|
makedepends="dbus-devel libXext-devel libXt-devel libpng-devel>=1.6
|
2014-03-14 12:58:06 +00:00
|
|
|
fontconfig-devel jasper-devel tiff-devel lcms2-devel jbig2dec-devel
|
|
|
|
cups-devel gsfonts"
|
2014-01-01 15:10:11 +00:00
|
|
|
depends="gsfonts"
|
2012-05-16 13:32:41 +00:00
|
|
|
|
|
|
|
pre_configure() {
|
|
|
|
# force it to use system libs.
|
2014-03-14 12:58:06 +00:00
|
|
|
rm -rf jpeg libpng zlib jasper expat tiff lcms lcms2 freetype cups/libs jbig2dec
|
2012-05-16 13:32:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_configure() {
|
|
|
|
# configure ghostscript
|
2013-05-26 08:41:55 +00:00
|
|
|
./configure ${configure_args} --enable-dynamic --with-ijs \
|
2012-05-16 13:32:41 +00: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 \
|
2014-03-14 12:58:06 +00:00
|
|
|
--without-luratech --without-omni --with-system-libtiff \
|
2012-05-16 13:32:41 +00:00
|
|
|
--disable-compile-inits
|
|
|
|
|
|
|
|
# configure libijs
|
2013-04-30 09:02:42 +00:00
|
|
|
cd ijs
|
2014-03-14 12:58:06 +00:00
|
|
|
sed -i -e "s|AM_PROG_CC_STDC|AC_PROG_CC|g" configure.ac
|
2013-04-30 09:02:42 +00:00
|
|
|
./autogen.sh
|
2013-05-26 08:41:55 +00:00
|
|
|
./configure ${configure_args} --enable-shared --disable-static
|
2012-05-16 13:32:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_build() {
|
|
|
|
# build ghostscript
|
2014-03-14 12:58:06 +00:00
|
|
|
make
|
|
|
|
make so
|
2012-05-16 13:32:41 +00:00
|
|
|
# build libijs
|
2013-04-30 09:02:42 +00:00
|
|
|
cd ijs
|
2014-03-14 12:58:06 +00:00
|
|
|
make
|
2012-05-16 13:32:41 +00: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}
|
2014-03-14 12:58:06 +00:00
|
|
|
|
|
|
|
# remove unwanted localized man-pages
|
|
|
|
rm -rf ${DESTDIR}/usr/share/man/[^man1]*
|
|
|
|
|
2012-05-16 13:32:41 +00:00
|
|
|
# install libijs
|
2013-04-30 09:02:42 +00:00
|
|
|
cd ijs
|
|
|
|
make DESTDIR=${DESTDIR} install
|
2014-03-14 12:58:06 +00:00
|
|
|
|
|
|
|
# Remove conflicting files with cups-filters.
|
|
|
|
rm -f ${DESTDIR}/usr/lib/cups/filter/{gstopxl,gstoraster}
|
2012-05-16 13:32:41 +00:00
|
|
|
}
|
|
|
|
|
2013-04-12 11:13:49 +00:00
|
|
|
|
|
|
|
libgs_package() {
|
2014-03-14 12:58:06 +00:00
|
|
|
short_desc+=" - runtime shared library"
|
2013-04-12 11:13:49 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/libgs.so*"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libijs_package() {
|
2014-03-14 12:58:06 +00:00
|
|
|
short_desc+=" - IJS runtime shared library"
|
2013-04-12 11:13:49 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/libijs*"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ghostscript-devel_package() {
|
2014-03-14 12:58:06 +00:00
|
|
|
depends="libijs>=${version}_${revision} libgs>=${version}_${revision}"
|
|
|
|
short_desc+=" - development files"
|
2013-04-12 11:13:49 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove usr/bin/ijs-config
|
|
|
|
vmove usr/share/man/man1/ijs-config.1
|
|
|
|
}
|
|
|
|
}
|