aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-10-03 14:24:32 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-10-03 14:24:32 +0000
commit6e405fba975af473b8564e23deeda18d60df83d6 (patch)
tree7477b1913be2bcd263d9573ca2a3e66dd4cf106c /main
parent2da35516d30e6e1634e3a04636d02c9cfaf797aa (diff)
downloadaports-6e405fba975af473b8564e23deeda18d60df83d6.tar.bz2
aports-6e405fba975af473b8564e23deeda18d60df83d6.tar.xz
main/ghostscript: enable gtk and ijs
Diffstat (limited to 'main')
-rw-r--r--main/ghostscript/APKBUILD39
1 files changed, 29 insertions, 10 deletions
diff --git a/main/ghostscript/APKBUILD b/main/ghostscript/APKBUILD
index ae9fc22704..a06102733c 100644
--- a/main/ghostscript/APKBUILD
+++ b/main/ghostscript/APKBUILD
@@ -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"