2009-09-26 14:35:50 +00:00
|
|
|
# Maintainer: dorphell <dorphell@archlinux.org>
|
|
|
|
# Maintainer: Travis Willard <travis@archlinux.org>
|
|
|
|
# Maintainer: Douglas Soares de Andrade <douglas@archlinux.org>
|
|
|
|
|
|
|
|
pkgname=libpng
|
|
|
|
pkgver=1.2.37
|
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="A collection of routines used to create PNG format graphics files"
|
2009-11-16 19:07:36 +00:00
|
|
|
arch=('arm')
|
2009-09-26 14:35:50 +00:00
|
|
|
url="http://www.libpng.org/pub/png/libpng.html"
|
|
|
|
license=('custom')
|
|
|
|
depends=('zlib')
|
|
|
|
options=('!libtool')
|
2009-11-16 19:07:36 +00:00
|
|
|
source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.bz2
|
|
|
|
http://hp.vector.co.jp/authors/VA013651/lib/libpng-1.2.37-apng.patch.gz)
|
|
|
|
md5sums=('6d1ee0888dbb711214943cb19c294b49'
|
|
|
|
'b68c5b29e3b34f2ed73b3897b8a6c2b2')
|
2009-09-26 14:35:50 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd ${startdir}/src/${pkgname}-${pkgver}
|
|
|
|
|
|
|
|
# Add animated PNG (apng) support
|
|
|
|
# see http://hp.vector.co.jp/authors/VA013651/freeSoftware/apng.html
|
|
|
|
patch -p1 -i $srcdir/libpng-1.2.37-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=${startdir}/pkg install || return 1
|
|
|
|
|
|
|
|
cd contrib/pngminus
|
|
|
|
make ECHO=echo PNGLIB="-L${startdir}/pkg/usr/lib -lpng" -f makefile.std png2pnm pnm2png
|
|
|
|
install -m755 png2pnm pnm2png ${startdir}/pkg/usr/bin/
|
|
|
|
install -m755 -d ${startdir}/pkg/usr/share/licenses/${pkgname}
|
|
|
|
install -m644 ../../LICENSE ${startdir}/pkg/usr/share/licenses/${pkgname}/ || return 1
|
|
|
|
}
|
2009-11-16 19:07:36 +00:00
|
|
|
|