summaryrefslogtreecommitdiff
path: root/games/prboom/prboom.SlackBuild
diff options
context:
space:
mode:
authormannyslack <quakemanxs@yahoo.com>2010-05-11 20:00:34 +0200
committerMichiel van Wessem <michiel@slackbuilds.org>2010-05-11 20:00:34 +0200
commit736127208b974ffc401c7b6d74e59dd3c4068751 (patch)
tree4abc8f1c41c10d43a408c97537687c770cf99bfc /games/prboom/prboom.SlackBuild
parent5b9b9c399aea6ee669c9b00e9c7ecb9ba7216051 (diff)
downloadslackbuilds-736127208b974ffc401c7b6d74e59dd3c4068751.tar.gz
games/prboom: Added to 12.0 repository
Diffstat (limited to 'games/prboom/prboom.SlackBuild')
-rw-r--r--games/prboom/prboom.SlackBuild60
1 files changed, 60 insertions, 0 deletions
diff --git a/games/prboom/prboom.SlackBuild b/games/prboom/prboom.SlackBuild
new file mode 100644
index 0000000000..9caa6928de
--- /dev/null
+++ b/games/prboom/prboom.SlackBuild
@@ -0,0 +1,60 @@
+#!/bin/sh
+
+# Slackware build script for prboom
+# Written by mannyslack (quakemanxs@yahoo.com)
+
+PRGNAM=prboom
+VERSION=2.4.7
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+fi
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP || exit 1
+rm -rf $PRGNAM-$VERSION
+tar -xvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1
+cd $PRGNAM-$VERSION || exit 1
+chown -R root:root .
+chmod -R u+w,go+r-w,a-s .
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --enable-gl \
+ || exit 1
+# --enable-gl seems to have no effect, any ideas?
+
+make DESTDIR=$PKG || exit 1
+make install-strip DESTDIR=$PKG || exit 1
+
+( cd $PKG/usr/man
+ find . -type f -exec gzip -9 {} \;
+ for i in $(find . -type l) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+)
+
+rm -f $PKG/usr/info/dir
+gzip -9 $PKG/usr/info/*.info*
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS COPYING TODO INSTALL NEWS README $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz