CRUX-ARM : Home

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

diff --git a/dosbox/.footprint b/dosbox/.footprint
new file mode 100644 (file)
index 0000000..3586c4e
--- /dev/null
@@ -0,0 +1,6 @@
+drwxr-xr-x     root/root       usr/
+drwxr-xr-x     root/root       usr/bin/
+-rwxr-xr-x     root/root       usr/bin/dosbox
+drwxr-xr-x     root/root       usr/man/
+drwxr-xr-x     root/root       usr/man/man1/
+-rw-r--r--     root/root       usr/man/man1/dosbox.1.gz
diff --git a/dosbox/.md5sum b/dosbox/.md5sum
new file mode 100644 (file)
index 0000000..c2b5016
--- /dev/null
@@ -0,0 +1 @@
+0823a11242db711ac3d6ebfff6aff572  dosbox-0.73.tar.gz
diff --git a/dosbox/Pkgfile b/dosbox/Pkgfile
new file mode 100644 (file)
index 0000000..817495e
--- /dev/null
@@ -0,0 +1,39 @@
+# Description: SDL-based DOS emulator for classic games
+# URL: http://dosbox.sourceforge.net
+# Maintainer: Tilman Sauerbeck, tilman at crux dot nu
+# Arch Maintainer: CRUX-ARM System Team, crux-arm at mikeux dot dyndns dot org
+# Depends on: libsdl
+
+name=dosbox
+version=0.73
+release=1
+source=(http://dl.sourceforge.net/sourceforge/$name/$name-$version.tar.gz)
+
+build() {
+  cd $name-$version
+
+  export DEFAULT_LIBS="-L$CLFS/usr/lib"
+  export DEFAULT_CFLAGS="-I$CLFS/usr/include"
+  export SDL_LIBS="$DEFAULT_LIBS -lSDL -lSDL_image -lpthread"
+  export SDL_CFLAGS="$DEFAULT_CFLAGS -I$CLFS/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_LIBSDL_IMAGE"
+  
+  sed -i configure \
+      -e 's|SDL_VERSION=.*|SDL_VERSION=1.2.14|g' \
+      -e "s|SDL_LIBS=.*|SDL_LIBS=\"$SDL_LIBS\"|" \
+      -e "s|SDL_CFLAGS=.*|SDL_CFLAGS=\"$SDL_CFLAGS\"|"
+  ./configure --build=$CHOST \
+              --host=$CTARGET \
+              --prefix=/usr \
+              --mandir=/usr/man \
+              --with-sdl-prefix=$CLFS/usr \
+              --disable-sdltest \
+              --disable-alsatest \
+              --disable-dynamic-x86 \
+              --disable-fpu-x86 \
+             --disable-debug
+
+  make
+  make DESTDIR=$PKG install
+  rm -rf $PKG/usr/share
+
+}