summaryrefslogtreecommitdiffstats
path: root/sdl_image/Pkgfile
blob: c6077d559b9e2a0ffbe037f045768d67c3c02c90 (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
# Description: Librairie pour charger des images.
# URL: http://www.libsdl.org/projects/SDL_image
# Maintainer: Danny Rawlins, monster dot romster at gmail dot com
# Packager: thierryn1 at hispeed dot ch
# Depends on: libtiff, libpng, sdl
# Run on: libtiff,libpng,sdl

name=sdl_image
version=1.2.10
release=5
source=(http://www.libsdl.org/projects/SDL_image/release/SDL_image-$version.tar.gz
	sdl-image-1.2.10-libpng15.patch)

build() {
	cd SDL_image-$version
	patch -p0 < ../sdl-image-1.2.10-libpng15.patch
	./configure --prefix=/usr \
		--enable-bmp \
		--enable-gif \
		--enable-jpg \
		--enable-pcx \
		--enable-png \
		--enable-tif \
		--enable-xpm \
		--disable-jpg-shared \
		--disable-png-shared \
		--disable-tif-shared
	make
	make DESTDIR=$PKG install
}