[arch-commits] Commit in (5 files)
Felix Yan
felixonmars at archlinux.org
Sat Sep 29 16:20:04 UTC 2018
Date: Saturday, September 29, 2018 @ 16:20:03
Author: felixonmars
Revision: 387899
addpkg: libafterimage 1.20-3
Added:
libafterimage/
libafterimage/repos/
libafterimage/trunk/
libafterimage/trunk/PKGBUILD
libafterimage/trunk/libafterimage-libpng15.patch
------------------------------+
PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++
libafterimage-libpng15.patch | 31 +++++++++++++++++++++++++++++++
2 files changed, 67 insertions(+)
Added: libafterimage/trunk/PKGBUILD
===================================================================
--- libafterimage/trunk/PKGBUILD (rev 0)
+++ libafterimage/trunk/PKGBUILD 2018-09-29 16:20:03 UTC (rev 387899)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Mike Sampson <mike at sambodata dot com>
+# Contributor: Bernhard Walle <bernhard.walle at gmx.de>
+
+pkgname=libafterimage
+pkgver=1.20
+pkgrel=3
+pkgdesc="Generic image manipulation library"
+url="http://www.afterstep.org/afterimage"
+license=('GPL')
+depends=('librsvg')
+arch=('i686' 'x86_64')
+source=("https://downloads.sourceforge.net/project/afterstep/libAfterImage/$pkgver/libAfterImage-$pkgver.tar.bz2"
+ libafterimage-libpng15.patch)
+md5sums=('17a0ab8a2e6b253f222934418705963e'
+ 'bdb49e626cb91b2c218193f3d36c9f91')
+
+build() {
+ cd libAfterImage-$pkgver
+ # Apply Gentoo's libpng15 patch
+ patch < ../libafterimage-libpng15.patch
+ ./configure --prefix=/usr --mandir=/usr/share/man \
+ --enable-sharedlibs --disable-staticlibs
+
+ # don't run ldconfig
+ sed -i -e 's/`uname`/"hack"/g' Makefile
+
+ make
+}
+
+package() {
+ cd libAfterImage-$pkgver
+ make DESTDIR="$pkgdir" install
+}
+
+# :mode=shellscript:
Added: libafterimage/trunk/libafterimage-libpng15.patch
===================================================================
--- libafterimage/trunk/libafterimage-libpng15.patch (rev 0)
+++ libafterimage/trunk/libafterimage-libpng15.patch 2018-09-29 16:20:03 UTC (rev 387899)
@@ -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;
+ }
More information about the arch-commits
mailing list