CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
sdl_net: Initial import (verified compilation)
authorVictor Martinez <pitillo@ono.com>
Mon, 18 Jan 2010 09:19:01 +0000 (09:19 +0000)
committerVictor Martinez <pitillo@ono.com>
Mon, 18 Jan 2010 09:19:01 +0000 (09:19 +0000)
sdl_net/.footprint [new file with mode: 0644]
sdl_net/.md5sum [new file with mode: 0644]
sdl_net/Pkgfile [new file with mode: 0644]

diff --git a/sdl_net/.footprint b/sdl_net/.footprint
new file mode 100644 (file)
index 0000000..6b3e6e6
--- /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_net.h
+drwxr-xr-x     root/root       usr/lib/
+lrwxrwxrwx     root/root       usr/lib/libSDL_net-1.2.so.0 -> libSDL_net-1.2.so.0.0.7
+-rwxr-xr-x     root/root       usr/lib/libSDL_net-1.2.so.0.0.7
+-rw-r--r--     root/root       usr/lib/libSDL_net.a
+-rwxr-xr-x     root/root       usr/lib/libSDL_net.la
+lrwxrwxrwx     root/root       usr/lib/libSDL_net.so -> libSDL_net-1.2.so.0.0.7
diff --git a/sdl_net/.md5sum b/sdl_net/.md5sum
new file mode 100644 (file)
index 0000000..ba604c1
--- /dev/null
@@ -0,0 +1 @@
+6bd4662d1423810f3140d4da21b6d912  SDL_net-1.2.7.tar.gz
diff --git a/sdl_net/Pkgfile b/sdl_net/Pkgfile
new file mode 100644 (file)
index 0000000..3c8c6ad
--- /dev/null
@@ -0,0 +1,26 @@
+# Description: A cross-platform networking library for SDL.
+# URL: http://www.libsdl.org/projects/SDL_net/
+# 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_net
+version=1.2.7
+release=1
+source=(http://www.libsdl.org/projects/SDL_net/release/SDL_net-$version.tar.gz)
+
+build() {
+  cd SDL_net-$version
+  sed -e 's|`$SDL_CONFIG $sdlconf_args --cflags`|"-I$CLFS/usr/include -I$CLFS/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT"|g' \
+    -e 's|`$SDL_CONFIG $sdlconf_args --libs`|"-L$CLFS/usr/lib -lSDL -lpthread"|g' -i configure 
+  ./configure --build=$CHOST \
+              --host=$CTARGET \
+              --prefix=/usr \
+              --disable-sdltest \
+              --disable-gui \
+              --with-sdl-prefix=$CLFS/usr \
+              --prefix=/usr
+  make 
+  make DESTDIR=$PKG install
+}