summaryrefslogtreecommitdiff
path: root/community/devil/PKGBUILD
blob: 42b0688a163c2579143d90412849960891dfdb0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# $Id: PKGBUILD 57890 2011-11-04 08:33:14Z lcarlier $
# Maintainer: damir <damir@archlinux.org>
# Contributor: TheHoff <forums>

pkgname=devil
pkgver=1.7.8
pkgrel=8
pkgdesc="Library for reading several different image formats"
arch=('i686' 'x86_64')
url="http://openil.sourceforge.net/"
depends=('allegro4' 'sdl' 'libpng' 'libmng' 'freeglut'
         'jasper' 'lcms' 'openexr')
makedepends=('bash')
options=('!libtool' '!docs')
license=('GPL')
source=(http://downloads.sourceforge.net/openil/DevIL-$pkgver.tar.gz libpng14.patch)
md5sums=('7918f215524589435e5ec2e8736d5e1d'
         '0f839ccefd43b0ee8b4b3f99806147fc')

build() {
   cd ${srcdir}/devil-$pkgver

   patch -Np1 -i ${srcdir}/libpng14.patch

   ./configure --prefix=/usr --enable-ILU --enable-ILUT --enable-opengl --enable-sdl
   make
}

package() {
   cd ${srcdir}/devil-$pkgver

   make prefix=${pkgdir}/usr install
}