aboutsummaryrefslogtreecommitdiffstats
path: root/main/ghostscript/APKBUILD
diff options
context:
space:
mode:
authorCameron Banta <cbanta@gmail.com>2010-03-06 21:35:26 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-03-08 14:30:47 +0000
commit7b767145b591d4d81ce05f3af078278460258dd5 (patch)
treea9b06be3ec0fce44675ff7520a0970b1c50b4109 /main/ghostscript/APKBUILD
parent2e9f2610e8718044c7718061c65226867e14f179 (diff)
downloadaports-7b767145b591d4d81ce05f3af078278460258dd5.tar.bz2
aports-7b767145b591d4d81ce05f3af078278460258dd5.tar.xz
Update to version 8.71. Create dev package. Split build into separate build and package parts. Force libraries to use system libraries instead of bundled ones.
Diffstat (limited to 'main/ghostscript/APKBUILD')
-rw-r--r--main/ghostscript/APKBUILD55
1 files changed, 40 insertions, 15 deletions
diff --git a/main/ghostscript/APKBUILD b/main/ghostscript/APKBUILD
index 51c37016fd..ad414e5832 100644
--- a/main/ghostscript/APKBUILD
+++ b/main/ghostscript/APKBUILD
@@ -1,45 +1,70 @@
# Contributor: Cameron Banta <cbanta@gmail.com>
# Maintainer: Cameron Banta <cbanta@gmail.com>
pkgname=ghostscript
-pkgver=8.70
+pkgver=8.71
pkgrel=0
pkgdesc="An interpreter for the PostScript language and for PDF"
url="http://ghostscript.com/"
license="GPL"
-depends="uclibc"
-makedepends=""
-install=
-subpackages="$pkgname-doc"
-source="http://ghostscript.com/releases/$pkgname-$pkgver.tar.gz"
+makedepends="autoconf automake jpeg-dev libpng-dev jasper-dev expat-dev zlib-dev tiff-dev libiconv-dev"
+subpackages="$pkgname-doc $pkgname-dev"
+source="http://ghostscript.com/releases/$pkgname-$pkgver.tar.gz
+ libpng14.patch
+ ghostscript-system-jasper.patch"
-build() {
+prepare() {
cd "$srcdir/$pkgname-$pkgver"
- ./configure --prefix=/usr \
+ # force it to use system-libs
+ rm -rf jpeg libpng jasper expat tiff
+
+ patch -Np1 -i "${srcdir}"/libpng14.patch || return 1
+
+ # fix build with systems jasper
+ patch -Np1 -i "${srcdir}"/ghostscript-system-jasper.patch || return 1
+
+ ./autogen.sh \
+ --prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
+ --docdir=/usr/share/doc/"$pkgname" \
+ --enable-dynamic \
+ --with-system-libtiff \
+ --without-ijs --without-x \
+ --with-jbig2dec \
+ --without-omni \
--with-drivers=FILES \
+ --with-fontpath=/usr/share/fonts/Type1:/usr/share/fonts \
--disable-cups --disable-gtk --disable-cairo \
- --docdir=/usr/share/doc/"$pkgname"
+ --disable-compile-inits # needed for linking with system-zlib
+}
+
+build(){
+ cd "$srcdir/$pkgname-$pkgver"
make || return 1
- make DESTDIR="$pkgdir" install
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make -j1 DESTDIR="${pkgdir}" install soinstall || return 1
+
+ #create empty dir for future fonts
+ mkdir -p "${pkgdir}"/usr/share/fonts/Type1
# license and copying
install -m644 -D "$srcdir/$pkgname-$pkgver/LICENSE" \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -m644 -D "$srcdir/$pkgname-$pkgver/doc/COPYING" \
"$pkgdir/usr/share/licenses/$pkgname/COPYING"
-
-
# make the doc and examples more alpine like
# (the --docdir above doesn't seem to work so good)
mkdir -p "$pkgdir/usr/share/doc/$pkgname"
mv "$pkgdir/usr/share/$pkgname/$pkgver/doc" "$pkgdir/usr/share/doc/$pkgname"
mv "$pkgdir/usr/share/$pkgname/$pkgver/examples" "$pkgdir/usr/share/doc/$pkgname"
-
-
}
-md5sums="be2581eb1ba9e4ab67c2eda95144d564 ghostscript-8.70.tar.gz"
+md5sums="51a522a5b4818bd3dc7c1c0e9dd22bad ghostscript-8.71.tar.gz
+be94ee357986f7f63d1b470da5bdc99e libpng14.patch
+03e27cd02471ab3b642c344fa06b623e ghostscript-system-jasper.patch"