1 # Maintainer: josephgbr <rafael.f.f1 at gmail dot com>
4 pkgname=lib32-$_pkgbasename
7 pkgdesc="Library for reading several different image formats (32 bit)"
9 url="http://openil.sourceforge.net/"
10 depends=('lib32-allegro' 'lib32-libjpeg-turbo' 'lib32-libmng' 'lib32-libpng'
11 'lib32-libtiff' 'lib32-nvidia-utils' 'lib32-openexr'
12 'lib32-sdl' 'lib32-jasper')
13 makedepends=('gcc-multilib')
14 options=('!libtool' '!docs')
16 source=("http://downloads.sourceforge.net/openil/DevIL-$pkgver.tar.gz"
18 md5sums=('7918f215524589435e5ec2e8736d5e1d'
19 '0f839ccefd43b0ee8b4b3f99806147fc')
22 cd "${srcdir}/${_pkgbasename}-${pkgver}"
24 patch -Np1 -i ${srcdir}/libpng14.patch
25 ./configure --prefix=/usr --enable-ILU --enable-ILUT --enable-opengl \
26 --enable-sdl --libdir=/usr/lib32 CC='gcc -m32' CXX='g++ -m32'
31 cd "${srcdir}/${_pkgbasename}-${pkgver}"
33 make prefix=${pkgdir}/usr libdir=${pkgdir}/usr/lib32 install
34 rm -rf ${pkgdir}/usr/{bin,include,share}