updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / lib32-devil / PKGBUILD
blob2a57e9f315137efb46387f9419651d0452e0832c
1 # Maintainer: josephgbr <rafael.f.f1 at gmail dot com>
3 _pkgbasename=devil
4 pkgname=lib32-$_pkgbasename
5 pkgver=1.7.8
6 pkgrel=4
7 pkgdesc="Library for reading several different image formats (32 bit)"
8 arch=('x86_64')
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')
15 license=('LGPL')
16 source=("http://downloads.sourceforge.net/openil/DevIL-$pkgver.tar.gz"
17         'libpng14.patch')
18 md5sums=('7918f215524589435e5ec2e8736d5e1d'
19          '0f839ccefd43b0ee8b4b3f99806147fc')
20          
21 build() {
22    cd "${srcdir}/${_pkgbasename}-${pkgver}"
23    
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'
27    make
30 package() {
31    cd "${srcdir}/${_pkgbasename}-${pkgver}"
32      
33    make prefix=${pkgdir}/usr libdir=${pkgdir}/usr/lib32 install
34    rm -rf ${pkgdir}/usr/{bin,include,share}