updated on Sun Jan 22 12:09:12 UTC 2012
[aur-mirror.git] / mingw32-libpng14 / PKGBUILD
blobbce7a87ff971022a0d1a0194d6d20dc8942b6342
1 # Maintainer: Mikael Eriksson <mikael_eriksson@miffe.org>
3 pkgname=mingw32-libpng14
4 pkgver=1.4.8
5 pkgrel=1
6 arch=('any')
7 pkgdesc="A collection of routines used to create PNG format graphics (mingw32)"
8 depends=('mingw32-runtime' 'mingw32-zlib')
9 makedepends=('mingw32-gcc')
10 license=('custom')
11 url="http://www.libpng.org/pub/png/libpng.html"
12 options=(!strip !buildflags)
13 provides=(mingw32-libpng)
14 conflicts=(mingw32-libpng)
15 source=("http://downloads.sourceforge.net/sourceforge/libpng/libpng-$pkgver.tar.bz2"
16         "http://downloads.sourceforge.net/project/libpng-apng/libpng-master/$pkgver/libpng-$pkgver-apng.patch.gz")
17 md5sums=('063f9e369c2470d3dd1c69a71afb7f16'
18          'aab15558cfd7d6c50a431ef91f126f0a')
20 build() {
21   cd "$srcdir/libpng-$pkgver"
23   # Add animated PNG (apng) support
24   # see http://sourceforge.net/projects/libpng-apng/
25   patch -p1 -i "${srcdir}/libpng-$pkgver-apng.patch" || return 1
27   ./configure --host=i486-mingw32 --prefix=/usr/i486-mingw32
28   #make -f scripts/makefile.mingw \
29     #CC=i486-mingw32-gcc \
30     #LD=i486-mingw32-ld \
31     #AR=i486-mingw32-ar \
32     #RANLIB=i486-mingw32-ranlib \
33     #prefix=/usr/i486-mingw32 \
34     #DESTDIR=$pkgdir \
35     #install
37   make
38   make install DESTDIR=$pkgdir
40   install -D -m644 LICENSE "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
43 # vim:set ts=2 sw=2 et: