diff options
author | Mike Sampson | 2015-06-21 20:15:23 +1000 |
---|---|---|
committer | Mike Sampson | 2015-06-21 20:15:23 +1000 |
commit | 15cf333b40a64f2b802a7b90ffd55548d78c366c (patch) | |
tree | 1733ca0b10149d5188a59570c56d20c3875ee702 | |
download | aur-15cf333b40a64f2b802a7b90ffd55548d78c366c.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 35 | ||||
-rw-r--r-- | libafterimage-libpng15.patch | 31 |
3 files changed, 85 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..7bbb4ba83359 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = libafterimage + pkgdesc = Generic image manipulation library + pkgver = 1.20 + pkgrel = 2 + url = http://www.afterstep.org/afterimage + arch = i686 + arch = x86_64 + license = GPL + depends = libpng + depends = libtiff + depends = freetype2 + depends = libxext + source = ftp://ftp.afterstep.org/stable/libAfterImage/libAfterImage-1.20.tar.bz2 + source = libafterimage-libpng15.patch + md5sums = 17a0ab8a2e6b253f222934418705963e + md5sums = bdb49e626cb91b2c218193f3d36c9f91 + +pkgname = libafterimage + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..5da035361f2b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Mike Sampson <mike at sambodata dot com> +# Contributor: Bernhard Walle <bernhard.walle@gmx.de> +# AUR Category: lib +pkgname=libafterimage +pkgver=1.20 +pkgrel=2 +pkgdesc="Generic image manipulation library" +url="http://www.afterstep.org/afterimage" +license=('GPL') +depends=('libpng' 'libtiff' 'freetype2' 'libxext') +arch=('i686' 'x86_64') +source=(ftp://ftp.afterstep.org/stable/libAfterImage/libAfterImage-${pkgver}.tar.bz2 + libafterimage-libpng15.patch) +md5sums=('17a0ab8a2e6b253f222934418705963e' + 'bdb49e626cb91b2c218193f3d36c9f91') + +build() { + cd $srcdir/libAfterImage-$pkgver + # Apply Gentoo's libpng15 patch + patch < $srcdir/libafterimage-libpng15.patch + ./configure --prefix=/usr --mandir=/usr/share/man \ + --enable-sharedlibs --disable-staticlibs --without-svg + + # don't run ldconfig + sed -i -e 's/`uname`/"hack"/g' $srcdir/libAfterImage-$pkgver/Makefile + + make +} + +package() { + cd $srcdir/libAfterImage-$pkgver + make DESTDIR=$pkgdir install +} + +# :mode=shellscript: diff --git a/libafterimage-libpng15.patch b/libafterimage-libpng15.patch new file mode 100644 index 000000000000..44d5b944007c --- /dev/null +++ b/libafterimage-libpng15.patch @@ -0,0 +1,31 @@ +--- export.c ++++ export.c +@@ -496,7 +496,7 @@ + png_ptr = png_create_write_struct( PNG_LIBPNG_VER_STRING, NULL, NULL, NULL ); + if ( png_ptr != NULL ) + if( (info_ptr = png_create_info_struct(png_ptr)) != NULL ) +- if( setjmp(png_ptr->jmpbuf) ) ++ if( setjmp(png_jmpbuf(png_ptr)) ) + { + png_destroy_info_struct(png_ptr, (png_infopp) &info_ptr); + info_ptr = NULL ; +--- import.c ++++ import.c +@@ -1251,7 +1251,7 @@ + * the normal method of doing things with libpng). REQUIRED unless you + * set up your own error handlers in the png_create_read_struct() earlier. + */ +- if ( !setjmp (png_ptr->jmpbuf)) ++ if ( !setjmp (png_jmpbuf(png_ptr))) + { + ASFlagType rgb_flags = ASStorage_RLEDiffCompress|ASStorage_32Bit ; + +@@ -1468,7 +1468,7 @@ + + static void asim_png_read_data(png_structp png_ptr, png_bytep data, png_size_t length) + { +- ASImPNGReadBuffer *buf = (ASImPNGReadBuffer *)png_ptr->io_ptr; ++ ASImPNGReadBuffer *buf = (ASImPNGReadBuffer *)png_get_io_ptr(png_ptr); + memcpy(data, buf->buffer, length); + buf->buffer += length; + } |