CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
sdl_gfx: initial import (verified compilation)
authorJose V Beneyto <sepen@crux.nu>
Wed, 20 Jan 2010 09:04:48 +0000 (10:04 +0100)
committerJose V Beneyto <sepen@crux.nu>
Wed, 20 Jan 2010 09:04:57 +0000 (10:04 +0100)
sdl_gfx/.footprint [new file with mode: 0644]
sdl_gfx/.md5sum [new file with mode: 0644]
sdl_gfx/Pkgfile [new file with mode: 0644]

diff --git a/sdl_gfx/.footprint b/sdl_gfx/.footprint
new file mode 100644 (file)
index 0000000..23c6e50
--- /dev/null
@@ -0,0 +1,14 @@
+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
diff --git a/sdl_gfx/.md5sum b/sdl_gfx/.md5sum
new file mode 100644 (file)
index 0000000..e28af16
--- /dev/null
@@ -0,0 +1 @@
+b1ce778232db0b1979695f0a5a945a13  SDL_gfx-2.0.13.tar.gz
diff --git a/sdl_gfx/Pkgfile b/sdl_gfx/Pkgfile
new file mode 100644 (file)
index 0000000..cebdab4
--- /dev/null
@@ -0,0 +1,34 @@
+# 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
+}