--- /dev/null
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/include/
+drwxr-xr-x root/root usr/include/SDL/
+-rw-r--r-- root/root usr/include/SDL/SDL_image.h
+drwxr-xr-x root/root usr/lib/
+lrwxrwxrwx root/root usr/lib/libSDL_image-1.2.so.0 -> libSDL_image-1.2.so.0.1.6
+-rwxr-xr-x root/root usr/lib/libSDL_image-1.2.so.0.1.6
+-rw-r--r-- root/root usr/lib/libSDL_image.a
+-rwxr-xr-x root/root usr/lib/libSDL_image.la
+lrwxrwxrwx root/root usr/lib/libSDL_image.so -> libSDL_image-1.2.so.0.1.6
--- /dev/null
+# Description: SDL_image is an image file loading library.
+# URL: http://www.libsdl.org/projects/SDL_image
+# Packager: Jay Dolan, jdolan at jdolan dot dyndns dot org
+# Maintainer: Danny Rawlins, monster dot romster at gmail dot com
+# Arch Maintainer: CRUX-ARM System Team, crux-arm at mikeux dot dyndns dot org
+# Depends on: libtiff libpng libsdl
+
+name=sdl_image
+version=1.2.7
+release=1
+source=(http://www.libsdl.org/projects/SDL_image/release/SDL_image-$version.tar.gz)
+
+build() {
+ cd SDL_image-$version
+
+ export DEFAULT_LIBS="-L$CLFS/usr/lib"
+ export DEFAULT_CFLAGS="-I$CLFS/usr/include"
+ export SDL_LIBS="$DEFAULT_LIBS -lSDL -lpthread"
+ export SDL_CFLAGS="$DEFAULT_CFLAGS -I$CLFS/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT"
+
+ ./configure --build=$CHOST \
+ --host=$CTARGET \
+ --prefix=/usr \
+ --with-sdl-prefix=$CLFS/usr \
+ --disable-sdltest \
+ --enable-png \
+ --enable-tif
+
+ sed -i Makefile \
+ -e "s|-I/usr|-I$CLFS/usr|g" \
+ -e "s|-L/usr|-L$CLFS/usr|g"
+
+ make
+ make DESTDIR=$PKG install
+}