summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 733d64311f62c459a0b051db7fc45eba4117d010 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Contributor: Anton Leontiev <bunder /at/ t-25.ru>
# Contributor: Clemens John <clemens-john@gmx.de>
# Contributor: damir <damir@archlinux.org>
# Contributor: TheHoff <forums>

pkgname=devil-ilut
pkgver=1.7.8
pkgrel=3
pkgdesc='Library for reading several different image formats (includes ILUT)'
arch=('i686' 'x86_64')
url='http://openil.sourceforge.net/'
depends=('libpng' 'libmng' 'jasper' 'lcms' 'openexr') # libjpeg & libtiff are implicitly satisfied
install=devil.install
options=('!docs' '!emptydirs')
license=('GPL')
provides=('devil')
conflicts=('devil')
source=(http://downloads.sourceforge.net/openil/DevIL-$pkgver.tar.gz
	libpng14.patch gcc-5.0.patch)
md5sums=('7918f215524589435e5ec2e8736d5e1d'
         '0f839ccefd43b0ee8b4b3f99806147fc'
         '8d1b5d973c93927f60f775aecb448e77')

prepare() {
	cd devil-$pkgver

	patch -Np1 -i ../libpng14.patch
	patch -Np1 -i ../gcc-5.0.patch
}

build() {
	cd devil-$pkgver

	if [[ $CARCH != x86_64 ]]; then
		OPTIMIZATION=--disable-sse3
	fi

	./configure --prefix=/usr --enable-ILU --enable-ILUT \
		--enable-jpeg --enable-tiff --disable-squish --disable-lcms \
		--disable-sdl --disable-x11 --disable-opengl --disable-shm --disable-render $OPTIMIZATION

	make
}

package() {
	cd devil-$pkgver

	make prefix="${pkgdir}/usr" install
}