From a7e5ce05430e701198f1804401be3c81178562cc Mon Sep 17 00:00:00 2001
From: Cecil <knoppmyth@gmail.com>
Date: Thu, 20 Jan 2011 19:52:28 -0800
Subject: libpng12:Needed for feh.

---
 abs/core/libpng12/PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)
 create mode 100644 abs/core/libpng12/PKGBUILD

diff --git a/abs/core/libpng12/PKGBUILD b/abs/core/libpng12/PKGBUILD
new file mode 100644
index 0000000..17ff1d0
--- /dev/null
+++ b/abs/core/libpng12/PKGBUILD
@@ -0,0 +1,45 @@
+# $Id: PKGBUILD 58551 2009-11-08 22:37:12Z eric $
+# Maintainer: dorphell <dorphell@archlinux.org>
+# Maintainer: Travis Willard <travis@archlinux.org>
+# Maintainer: Douglas Soares de Andrade <douglas@archlinux.org>
+
+pkgname=libpng12
+_realname=libpng
+pkgver=1.2.44
+pkgrel=1
+pkgdesc="A collection of routines used to create PNG format graphics files"
+arch=('i686' 'x86_64')
+url="http://www.libpng.org/pub/png/libpng.html"
+license=('custom')
+depends=('zlib')
+options=('!libtool')
+source=("http://downloads.sourceforge.net/sourceforge/${_realname}/${_realname}-${pkgver}.tar.bz2"
+        "http://littlesvr.ca/apng/diff/libpng-1.2.44-apng.patch")
+
+md5sums=('e3ac7879d62ad166a6f0c7441390d12b'
+         '8cb91087fd91000d2e35823587a2e7ef')
+
+build() {
+  cd "${srcdir}/${_realname}-${pkgver}"
+
+  # Add animated PNG (apng) support
+  # see http://hp.vector.co.jp/authors/VA013651/freeSoftware/apng.html
+  patch -Np0 -i "${srcdir}/libpng-1.2.44-apng.patch" || return 1
+
+  libtoolize --force --copy || return 1
+  aclocal || return 1
+  autoconf || return 1
+  automake --add-missing || return 1
+
+  ./configure --prefix=/usr || return 1
+  make ECHO=echo || return 1
+  make ECHO=echo DESTDIR="${pkgdir}" install || return 1
+
+  #cd contrib/pngminus
+  #make ECHO=echo PNGLIB="-L${pkgdir}/usr/lib -lpng" -f makefile.std png2pnm pnm2png
+  #install -m755 png2pnm pnm2png "${pkgdir}/usr/bin/"
+  #install -D -m644 ../../LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" || return 1
+  # only libs needed
+  rm -rf ${pkgdir}/usr/lib/{libpng.so,libpng.a,pkgconfig}
+  rm -rf ${pkgdir}/usr/{include,share,bin}
+}
-- 
cgit v0.12

