diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-10-04 08:27:42 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-10-04 08:27:42 +0000 |
commit | f0433bbf020bbda6f8f1e67c1d4099cd4aa54a70 (patch) | |
tree | 9871f519f818048ac726eb43ad95da8666ca64da /main | |
parent | b36fde10f700b5cee730a6406f122649ef0c07c8 (diff) | |
download | aports-f0433bbf020bbda6f8f1e67c1d4099cd4aa54a70.tar.bz2 aports-f0433bbf020bbda6f8f1e67c1d4099cd4aa54a70.tar.xz |
main/libpng: enable animated png
Diffstat (limited to 'main')
-rw-r--r-- | main/libpng/APKBUILD | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/main/libpng/APKBUILD b/main/libpng/APKBUILD index 3fc9f96825..0f0c01eeab 100644 --- a/main/libpng/APKBUILD +++ b/main/libpng/APKBUILD @@ -2,23 +2,30 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=libpng pkgver=1.5.5 -pkgrel=0 +pkgrel=1 pkgdesc="Portable Network Graphics library" url="http://www.libpng.org/" arch="all" license="GPL" depends= -makedepends="zlib-dev gawk" +depends_dev="zlib-dev" +makedepends="$depends_dev gawk" subpackages="$pkgname-doc $pkgname-dev" -source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz" +source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz + http://downloads.sourceforge.net/project/libpng-apng/libpng-devel/$pkgver/libpng-$pkgver-apng.patch.gz + " + +_builddir="$srcdir/$pkgname-$pkgver" + +prepare() { + cd "$_builddir" + gunzip -c "$srcdir"/libpng-$pkgver-apng.patch.gz | patch -p1 || return 1 +} -depends_dev="zlib-dev" build() { - cd "$srcdir/$pkgname-$pkgver" + cd "$_builddir" ./configure --prefix=/usr \ - --sysconfdir=/etc \ - --mandir=/usr/share/man \ - --infodir=/usr/share/info + || return 1 make } @@ -29,4 +36,5 @@ package() { rm -f "$pkgdir"/usr/lib/*.la } -md5sums="003bcac022125029bae4818d74c42a94 libpng-1.5.5.tar.gz" +md5sums="003bcac022125029bae4818d74c42a94 libpng-1.5.5.tar.gz +4c4e8c1b5beacc3e0cf8caa84489d223 libpng-1.5.5-apng.patch.gz" |