0001-Update-to-version-8.71.patch
| b/main/ghostscript/APKBUILD | ||
|---|---|---|
| 1 | 1 |
# Contributor: Cameron Banta <cbanta@gmail.com> |
| 2 | 2 |
# Maintainer: Cameron Banta <cbanta@gmail.com> |
| 3 | 3 |
pkgname=ghostscript |
| 4 |
pkgver=8.70 |
|
| 4 |
pkgver=8.71 |
|
| 5 | 5 |
pkgrel=0 |
| 6 | 6 |
pkgdesc="An interpreter for the PostScript language and for PDF" |
| 7 | 7 |
url="http://ghostscript.com/" |
| 8 | 8 |
license="GPL" |
| 9 |
depends="uclibc" |
|
| 10 |
makedepends="" |
|
| 11 |
install= |
|
| 12 |
subpackages="$pkgname-doc" |
|
| 13 |
source="http://ghostscript.com/releases/$pkgname-$pkgver.tar.gz" |
|
| 9 |
makedepends="autoconf automake jpeg-dev libpng-dev jasper-dev expat-dev zlib-dev tiff-dev libiconv-dev" |
|
| 10 |
subpackages="$pkgname-doc $pkgname-dev" |
|
| 11 |
source="http://ghostscript.com/releases/$pkgname-$pkgver.tar.gz |
|
| 12 |
libpng14.patch |
|
| 13 |
ghostscript-system-jasper.patch" |
|
| 14 | 14 | |
| 15 |
build() {
|
|
| 15 |
prepare() {
|
|
| 16 | 16 |
cd "$srcdir/$pkgname-$pkgver" |
| 17 | 17 | |
| 18 |
./configure --prefix=/usr \ |
|
| 18 |
# force it to use system-libs |
|
| 19 |
rm -rf jpeg libpng jasper expat tiff |
|
| 20 | ||
| 21 |
patch -Np1 -i "${srcdir}"/libpng14.patch || return 1
|
|
| 22 | ||
| 23 |
# fix build with systems jasper |
|
| 24 |
patch -Np1 -i "${srcdir}"/ghostscript-system-jasper.patch || return 1
|
|
| 25 |
|
|
| 26 |
./autogen.sh \ |
|
| 27 |
--prefix=/usr \ |
|
| 19 | 28 |
--sysconfdir=/etc \ |
| 20 | 29 |
--mandir=/usr/share/man \ |
| 21 | 30 |
--infodir=/usr/share/info \ |
| 31 |
--docdir=/usr/share/doc/"$pkgname" \ |
|
| 32 |
--enable-dynamic \ |
|
| 33 |
--with-system-libtiff \ |
|
| 34 |
--without-ijs --without-x \ |
|
| 35 |
--with-jbig2dec \ |
|
| 36 |
--without-omni \ |
|
| 22 | 37 |
--with-drivers=FILES \ |
| 38 |
--with-fontpath=/usr/share/fonts/Type1:/usr/share/fonts \ |
|
| 23 | 39 |
--disable-cups --disable-gtk --disable-cairo \ |
| 24 |
--docdir=/usr/share/doc/"$pkgname" |
|
| 40 |
--disable-compile-inits # needed for linking with system-zlib |
|
| 41 |
} |
|
| 42 | ||
| 43 |
build(){
|
|
| 44 |
cd "$srcdir/$pkgname-$pkgver" |
|
| 25 | 45 |
make || return 1 |
| 26 |
make DESTDIR="$pkgdir" install |
|
| 46 |
} |
|
| 47 | ||
| 48 |
package() {
|
|
| 49 |
cd "$srcdir/$pkgname-$pkgver" |
|
| 50 |
make -j1 DESTDIR="${pkgdir}" install soinstall || return 1
|
|
| 51 | ||
| 52 |
#create empty dir for future fonts |
|
| 53 |
mkdir -p "${pkgdir}"/usr/share/fonts/Type1
|
|
| 27 | 54 | |
| 28 | 55 |
# license and copying |
| 29 | 56 |
install -m644 -D "$srcdir/$pkgname-$pkgver/LICENSE" \ |
| 30 | 57 |
"$pkgdir/usr/share/licenses/$pkgname/LICENSE" |
| 31 | 58 |
install -m644 -D "$srcdir/$pkgname-$pkgver/doc/COPYING" \ |
| 32 | 59 |
"$pkgdir/usr/share/licenses/$pkgname/COPYING" |
| 33 |
|
|
| 34 | ||
| 35 | 60 | |
| 36 | 61 |
# make the doc and examples more alpine like |
| 37 | 62 |
# (the --docdir above doesn't seem to work so good) |
| 38 | 63 |
mkdir -p "$pkgdir/usr/share/doc/$pkgname" |
| 39 | 64 |
mv "$pkgdir/usr/share/$pkgname/$pkgver/doc" "$pkgdir/usr/share/doc/$pkgname" |
| 40 | 65 |
mv "$pkgdir/usr/share/$pkgname/$pkgver/examples" "$pkgdir/usr/share/doc/$pkgname" |
| 41 |
|
|
| 42 | ||
| 43 | 66 |
} |
| 44 | 67 | |
| 45 |
md5sums="be2581eb1ba9e4ab67c2eda95144d564 ghostscript-8.70.tar.gz" |
|
| 68 |
md5sums="51a522a5b4818bd3dc7c1c0e9dd22bad ghostscript-8.71.tar.gz |
|
| 69 |
be94ee357986f7f63d1b470da5bdc99e libpng14.patch |
|
| 70 |
03e27cd02471ab3b642c344fa06b623e ghostscript-system-jasper.patch" |
|
| b/main/ghostscript/ghostscript-system-jasper.patch | ||
|---|---|---|
| 1 |
diff -up ghostscript-8.64/base/sjpx.c.system-jasper ghostscript-8.64/base/sjpx.c |
|
| 2 |
--- ghostscript-8.64/base/sjpx.c.system-jasper 2008-08-21 00:22:49.000000000 +0100 |
|
| 3 |
+++ ghostscript-8.64/base/sjpx.c 2009-02-04 11:35:56.000000000 +0000 |
|
| 4 |
@@ -34,14 +34,6 @@ static void s_jpxd_set_defaults(stream_s |
|
| 5 |
private_st_jpxd_state(); /* creates a gc object for our state, |
|
| 6 |
defined in sjpx.h */ |
|
| 7 |
|
|
| 8 |
-/* error reporting callback for the jpx library */ |
|
| 9 |
-static void |
|
| 10 |
-s_jpx_jas_error_cb(jas_error_t err, char *msg) |
|
| 11 |
-{
|
|
| 12 |
- dprintf2("jasper (code %d) %s", (int)err, msg);
|
|
| 13 |
-} |
|
| 14 |
- |
|
| 15 |
- |
|
| 16 |
/* initialize the steam. |
|
| 17 |
this involves allocating the stream and image structures, and |
|
| 18 |
initializing the decoder. |
|
| 19 |
@@ -59,7 +51,6 @@ s_jpxd_init(stream_state * ss) |
|
| 20 |
} |
|
| 21 |
|
|
| 22 |
status = jas_init(); |
|
| 23 |
- jas_set_error_cb(s_jpx_jas_error_cb); |
|
| 24 |
#ifdef JPX_DEBUG |
|
| 25 |
/* raise the error reporting threshold from the default (0) */ |
|
| 26 |
jas_setdbglevel(1); |
|
| b/main/ghostscript/libpng14.patch | ||
|---|---|---|
| 1 |
diff -Nur ghostscript-8.70.orig/base/configure.ac ghostscript-8.70/base/configure.ac |
|
| 2 |
--- ghostscript-8.70.orig/base/configure.ac 2009-07-27 19:59:50.000000000 +0300 |
|
| 3 |
+++ ghostscript-8.70/base/configure.ac 2010-01-17 02:20:52.000000000 +0200 |
|
| 4 |
@@ -402,7 +402,7 @@ |
|
| 5 |
PNGDEVS="$PNGDEVS_ALL" |
|
| 6 |
else |
|
| 7 |
AC_MSG_RESULT([no]) |
|
| 8 |
- AC_CHECK_LIB(png, png_check_sig, [ |
|
| 9 |
+ AC_CHECK_LIB(png, png_sig_cmp, [ |
|
| 10 |
AC_CHECK_HEADERS(png.h, [ |
|
| 11 |
SHARE_LIBPNG=1 |
|
| 12 |
PNGDEVS="$PNGDEVS_ALL" |
|
| 13 |
diff -Nur ghostscript-8.70.orig/jbig2dec/configure.ac ghostscript-8.70/jbig2dec/configure.ac |
|
| 14 |
--- ghostscript-8.70.orig/jbig2dec/configure.ac 2009-05-29 09:48:44.000000000 +0300 |
|
| 15 |
+++ ghostscript-8.70/jbig2dec/configure.ac 2010-01-17 02:21:25.000000000 +0200 |
|
| 16 |
@@ -34,7 +34,7 @@ |
|
| 17 |
fi |
|
| 18 |
dnl libpng requires pow() which may be in libm |
|
| 19 |
AC_SEARCH_LIBS([pow], [m]) |
|
| 20 |
- AC_CHECK_LIB([png], [png_check_sig], [ |
|
| 21 |
+ AC_CHECK_LIB([png], [png_sig_cmp], [ |
|
| 22 |
AC_CHECK_LIB([z], [deflate], [ |
|
| 23 |
AC_DEFINE(HAVE_LIBPNG, 1, [Define if libpng is available (-lpng)]) |
|
| 24 |
LIBS="-lpng -lz $LIBS" |
|
| 0 |
- |
|