--- /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_framerate.h
+-rw-r--r-- root/root usr/include/SDL/SDL_gfxPrimitives.h
+-rw-r--r-- root/root usr/include/SDL/SDL_gfxPrimitives_font.h
+-rw-r--r-- root/root usr/include/SDL/SDL_imageFilter.h
+-rw-r--r-- root/root usr/include/SDL/SDL_rotozoom.h
+drwxr-xr-x root/root usr/lib/
+-rw-r--r-- root/root usr/lib/libSDL_gfx.a
+-rwxr-xr-x root/root usr/lib/libSDL_gfx.la
+lrwxrwxrwx root/root usr/lib/libSDL_gfx.so -> libSDL_gfx.so.13.0.0
+lrwxrwxrwx root/root usr/lib/libSDL_gfx.so.13 -> libSDL_gfx.so.13.0.0
+-rwxr-xr-x root/root usr/lib/libSDL_gfx.so.13.0.0
--- /dev/null
+# Description: SDL graphics drawing primitives and other support functions.
+# URL: http://www.ferzkopp.net/Software/SDL_gfx-2.0/index.html
+# Packager: Simone Rota, sip at crux dot nu
+# 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: libsdl
+
+name=sdl_gfx
+version=2.0.13
+release=1
+source=(http://www.ferzkopp.net/Software/SDL_gfx-${version%.*}/SDL_gfx-$version.tar.gz)
+
+build() {
+ cd SDL_gfx-$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 \
+ --disable-mmx
+
+ sed -i Makefile \
+ -e "s|-I/usr|-I$CLFS/usr|g" \
+ -e "s|-L/usr|-L$CLFS/usr|g"
+
+ make
+ make DESTDIR=$PKG install
+}