CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
prboom: initial import (verified compilation)
authorJose V Beneyto <sepen@crux.nu>
Thu, 28 Jan 2010 09:33:51 +0000 (10:33 +0100)
committerJose V Beneyto <sepen@crux.nu>
Thu, 28 Jan 2010 09:34:21 +0000 (10:34 +0100)
prboom/.footprint [new file with mode: 0644]
prboom/.md5sum [new file with mode: 0644]
prboom/Pkgfile [new file with mode: 0644]

diff --git a/prboom/.footprint b/prboom/.footprint
new file mode 100644 (file)
index 0000000..46116b1
--- /dev/null
@@ -0,0 +1,13 @@
+drwxr-xr-x     root/root       usr/
+drwxr-xr-x     root/root       usr/bin/
+-rwxr-xr-x     root/root       usr/bin/prboom
+-rwxr-xr-x     root/root       usr/bin/prboom-game-server
+drwxr-xr-x     root/root       usr/man/
+drwxr-xr-x     root/root       usr/man/man5/
+-rw-r--r--     root/root       usr/man/man5/boom.cfg.5.gz
+drwxr-xr-x     root/root       usr/man/man6/
+-rw-r--r--     root/root       usr/man/man6/prboom-game-server.6.gz
+-rw-r--r--     root/root       usr/man/man6/prboom.6.gz
+drwxr-xr-x     root/root       usr/share/
+drwxr-xr-x     root/root       usr/share/prboom/
+-rw-r--r--     root/root       usr/share/prboom/prboom.wad
diff --git a/prboom/.md5sum b/prboom/.md5sum
new file mode 100644 (file)
index 0000000..a1e8042
--- /dev/null
@@ -0,0 +1 @@
+a8a15f61fa2626ab98051ab2703378c4  prboom-2.5.0.tar.gz
diff --git a/prboom/Pkgfile b/prboom/Pkgfile
new file mode 100644 (file)
index 0000000..657241d
--- /dev/null
@@ -0,0 +1,45 @@
+# Description: Pure Doom port with the highest compatibility to the major Doom versions
+# URL: http://prboom.sourceforge.net/
+# Arch Maintainer: CRUX-ARM System Team, crux-arm at mikeux dot dyndns dot org
+# Depends on: sdl_net
+
+
+name=prboom
+version=2.5.0
+release=1
+source=(http://dl.sourceforge.net/sourceforge/$name/$name-$version.tar.gz)
+
+build() {
+  cd $name-$version
+
+  export SDL_CFLAGS="-I$CLFS/usr/include -I$CLFS/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT" 
+  export SDL_LDLIBS="-L$CLFS/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -lSDL_net"
+
+  echo "ac_cv_type_uid_t=yes" > config.cache
+
+  ./configure --build=$CHOST \
+              --host=$CTARGET \
+              --prefix=/usr \
+              --mandir=/usr/man \
+              --with-waddir=/usr/share/$name \
+              --disable-debugger \
+              --disable-i386-asm \
+              --disable-gl \
+              --disable-sdltest \
+              --x-libraries=/usr/lib \
+              --with-sdl-prefix=$CLFS/usr \
+              --without-mixer \
+              --cache-file=config.cache
+
+  find . -type f -name Makefile -exec \
+    sed -i {} \
+        -e "s|SDL_CFLAGS = .*|SDL_CFLAGS = $SDL_CFLAGS|" \
+        -e "s|SDL_CFLAGS = .*|SDL_CFLAGS = $SDL_CFLAGS|" \
+        -e "s|-I/usr|-I$CLFS/usr|" \;
+
+  make 
+  make DESTDIR=$PKG install
+
+  mv $PKG/usr/{games,bin}
+  rm -rf $PKG/usr/share/doc
+}