CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
sdl_image: initial import (verified compilation)
authorJose V Beneyto <sepen@crux.nu>
Fri, 8 Jan 2010 12:21:54 +0000 (13:21 +0100)
committerJose V Beneyto <sepen@crux.nu>
Fri, 8 Jan 2010 12:21:54 +0000 (13:21 +0100)
sdl_image/.footprint [new file with mode: 0644]
sdl_image/.md5sum [new file with mode: 0644]
sdl_image/Pkgfile [new file with mode: 0644]

diff --git a/sdl_image/.footprint b/sdl_image/.footprint
new file mode 100644 (file)
index 0000000..a321c2a
--- /dev/null
@@ -0,0 +1,10 @@
+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
diff --git a/sdl_image/.md5sum b/sdl_image/.md5sum
new file mode 100644 (file)
index 0000000..a842702
--- /dev/null
@@ -0,0 +1 @@
+a729ff61f74f0a45ec7fe36354cf938e  SDL_image-1.2.7.tar.gz
diff --git a/sdl_image/Pkgfile b/sdl_image/Pkgfile
new file mode 100644 (file)
index 0000000..1128a38
--- /dev/null
@@ -0,0 +1,35 @@
+# 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
+}