mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-26 20:02:30 +01:00
main/ghostscript: enable gtk and ijs
This commit is contained in:
parent
2da35516d3
commit
6e405fba97
@ -2,21 +2,23 @@
|
||||
# Maintainer: Cameron Banta <cbanta@gmail.com>
|
||||
pkgname=ghostscript
|
||||
pkgver=9.06
|
||||
pkgrel=0
|
||||
pkgrel=1
|
||||
pkgdesc="An interpreter for the PostScript language and for PDF"
|
||||
url="http://ghostscript.com/"
|
||||
arch="all"
|
||||
license="GPL3"
|
||||
makedepends="autoconf automake jpeg-dev libpng-dev jasper-dev expat-dev zlib-dev tiff-dev
|
||||
freetype-dev libiconv-dev lcms-dev"
|
||||
subpackages="$pkgname-doc $pkgname-dev"
|
||||
makedepends="autoconf automake jpeg-dev libpng-dev jasper-dev expat-dev
|
||||
zlib-dev tiff-dev freetype-dev libiconv-dev lcms-dev gtk+3.0-dev
|
||||
libtool"
|
||||
subpackages="$pkgname-doc $pkgname-dev $pkgname-gtk"
|
||||
source="http://downloads.ghostscript.com/public/$pkgname-$pkgver.tar.gz"
|
||||
|
||||
_builddir="$srcdir/ghostscript-$pkgver"
|
||||
prepare() {
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
cd "$_builddir"
|
||||
|
||||
# force it to use system-libs
|
||||
rm -rf jpeg libpng zlib jasper expat tiff lcms
|
||||
rm -rf jpeg libpng zlib jasper expat tiff lcms cups/libs
|
||||
|
||||
# fix parallel builds
|
||||
sed -i -e 's/ECHO_XE/ECHOGS_XE/g' \
|
||||
@ -31,24 +33,35 @@ prepare() {
|
||||
--docdir=/usr/share/doc/"$pkgname" \
|
||||
--enable-dynamic \
|
||||
--with-system-libtiff \
|
||||
--without-ijs --without-x \
|
||||
--with-ijs \
|
||||
--with-jbig2dec \
|
||||
--without-omni \
|
||||
--enable-gtk \
|
||||
--with-drivers=FILES \
|
||||
--with-fontpath=/usr/share/fonts/Type1:/usr/share/fonts \
|
||||
--disable-cups --disable-gtk \
|
||||
--disable-compile-inits # needed for linking with system-zlib
|
||||
}
|
||||
|
||||
build(){
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
# build ijs
|
||||
cd "$_builddir"/ijs
|
||||
./autogen.sh --prefix=/usr --enable-shared --disable-static || return 1
|
||||
make
|
||||
|
||||
cd "$_builddir"
|
||||
make so all || return 1
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
cd "$_builddir"
|
||||
make -j1 DESTDIR="${pkgdir}" install soinstall || return 1
|
||||
|
||||
cd "$_builddir"/ijs
|
||||
make -j1 DESTDIR="${pkgdir}" install || return 1
|
||||
cd..
|
||||
|
||||
rm "$pkgdir"/usr/lib/*.la || return 1
|
||||
|
||||
#create empty dir for future fonts
|
||||
mkdir -p "${pkgdir}"/usr/share/fonts/Type1
|
||||
|
||||
@ -65,4 +78,10 @@ package() {
|
||||
mv "$pkgdir/usr/share/$pkgname/$pkgver/examples" "$pkgdir/usr/share/doc/$pkgname"
|
||||
}
|
||||
|
||||
gtk() {
|
||||
pkgdesc="A GTK-enabled PostScript interpreter and renderer"
|
||||
install -d "$subpkgdir"/usr/bin
|
||||
mv "$pkgdir"/usr/bin/gsx "$subpkgdir"/usr/bin/
|
||||
}
|
||||
|
||||
md5sums="153ddb0622cb155d2f600146f1e28d84 ghostscript-9.06.tar.gz"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user