diff options
author | root <root@rshg054.dnsready.net> | 2013-08-13 01:33:19 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-08-13 01:33:19 -0700 |
commit | 7a65a910b77ad191d69881098c47f9b0c852d92e (patch) | |
tree | 9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/jbig2dec | |
parent | 60da6abff6c9577a783d72865f11de7a585e912e (diff) |
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/jbig2dec')
-rw-r--r-- | community/jbig2dec/PKGBUILD | 33 | ||||
-rw-r--r-- | community/jbig2dec/jbig2dec-0.11-libpng15.patch | 31 |
2 files changed, 64 insertions, 0 deletions
diff --git a/community/jbig2dec/PKGBUILD b/community/jbig2dec/PKGBUILD new file mode 100644 index 000000000..9ea0595f9 --- /dev/null +++ b/community/jbig2dec/PKGBUILD @@ -0,0 +1,33 @@ +# $Id: PKGBUILD 90049 2013-05-06 19:37:57Z foutrelis $ +# Maintainer: Bartłomiej Piotrowski +# Contributor: Stefan Husmann <stefan-husmann@t-online.de> + +pkgname=jbig2dec +pkgver=0.11 +pkgrel=6 +pkgdesc="decoder implementation of the JBIG2 image compression format" +arch=('x86_64' 'i686') +url="http://jbig2dec.sourceforge.net/" +license=('GPL3') +depends=('glibc' 'libpng') +options=('!libtool') +source=(https://github.com/rillian/jbig2dec/archive/$pkgver.tar.gz + $pkgname-$pkgver-libpng15.patch) +sha256sums=('8af7b94b6026aff718d4b41ad990f2702f8fd4a348d565c4b48a695988ca0e9a' + 'ed871abd9419dbf35ba7f38d4835098d3838fd9400856ac4ec029e63bb42d859') +prepare() { + cd $pkgname-$pkgver + patch -Np0 -i "$srcdir"/$pkgname-$pkgver-libpng15.patch + sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADER/' configure.ac +} + +build() { + cd $pkgname-$pkgver + ./autogen.sh --prefix=/usr + make +} + +package() { + cd $pkgname-$pkgver + make DESTDIR="$pkgdir/" install +} diff --git a/community/jbig2dec/jbig2dec-0.11-libpng15.patch b/community/jbig2dec/jbig2dec-0.11-libpng15.patch new file mode 100644 index 000000000..c18ccb7af --- /dev/null +++ b/community/jbig2dec/jbig2dec-0.11-libpng15.patch @@ -0,0 +1,31 @@ +--- configure.ac ++++ configure.ac +@@ -45,7 +45,7 @@ + fi + dnl libpng requires pow() which may be in libm + AC_SEARCH_LIBS([pow], [m]) +- AC_CHECK_LIB([png], [png_check_sig], [ ++ AC_CHECK_LIB([png], [png_sig_cmp], [ + AC_CHECK_LIB([z], [deflate], [ + AC_DEFINE(HAVE_LIBPNG, 1, [Define if libpng is available (-lpng)]) + LIBS="-lpng -lz $LIBS" +--- jbig2_image_png.c ++++ jbig2_image_png.c +@@ -33,7 +33,7 @@ + { + png_size_t check; + +- check = fwrite(data, 1, length, (png_FILE_p)png_ptr->io_ptr); ++ check = fwrite(data, 1, length, (png_FILE_p)png_get_io_ptr(png_ptr)); + if (check != length) { + png_error(png_ptr, "Write Error"); + } +@@ -43,7 +43,7 @@ + jbig2_png_flush(png_structp png_ptr) + { + png_FILE_p io_ptr; +- io_ptr = (png_FILE_p)CVT_PTR((png_ptr->io_ptr)); ++ io_ptr = (png_FILE_p)png_get_io_ptr(png_ptr); + if (io_ptr != NULL) + fflush(io_ptr); + } |