summaryrefslogtreecommitdiff
path: root/games/gzdoom/gzdoom.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/gzdoom/gzdoom.SlackBuild')
-rw-r--r--games/gzdoom/gzdoom.SlackBuild29
1 files changed, 26 insertions, 3 deletions
diff --git a/games/gzdoom/gzdoom.SlackBuild b/games/gzdoom/gzdoom.SlackBuild
index 8a2787134e..98d93b1ebe 100644
--- a/games/gzdoom/gzdoom.SlackBuild
+++ b/games/gzdoom/gzdoom.SlackBuild
@@ -6,8 +6,27 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20130416 bkw:
+# - Updated for 1.7.01
+# - Add README note about config file location change
+# - Split up giant README
+# - Fix CRLF endings in usr/doc/gzdoom-*/*
+# - Add WTFPL
+
+# A note about the source: upstream doesn't do release tarballs. The source
+# is only available via SVN. Every release before 1.7.01 has a tag in the
+# SVN tree, but 1.7.01 does not. What I did to get the 1.7.01 source was
+# to download the windows exe for 1.7.01 and use strings on it, to find its
+# SVN revision, then checked out that revision and made a tarball of it.
+# gzdoom's build process requires it to be built from an SVN checkout: It
+# uses the .svn stuff to define a SVN_REVISION variable, and if you use
+# 'svn export' instead, you end up with a gzdoom that announces itself as
+# revision 0 (shows up in the console and titlebar of the window). Also the
+# SVN revision is used to check savegame compatibility, so it's not just
+# cosmetic.
+
PRGNAM=gzdoom
-VERSION=${VERSION:-1.5.06}
+VERSION=${VERSION:-1.7.01}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -61,8 +80,8 @@ sed -i \
mkdir -p build
cd build
cmake \
- -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS -DSHARE_DIR=\\\"/usr/share/games/doom\\\"" \
- -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS -DSHARE_DIR=\\\"/usr/share/games/doom\\\"" \
+ -DCMAKE_C_FLAGS_RELEASE:STRING="$SLKCFLAGS -DSHARE_DIR=\\\"/usr/share/games/doom\\\"" \
+ -DCMAKE_CXX_FLAGS_RELEASE:STRING="$SLKCFLAGS -DSHARE_DIR=\\\"/usr/share/games/doom\\\"" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
-DMAN_INSTALL_DIR=/usr/man \
@@ -90,6 +109,10 @@ cat $CWD/$PRGNAM.png > $PKG/usr/share/pixmaps/$PRGNAM.png
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a docs/* $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+cat $CWD/README_SBo.txt > $PKG/usr/doc/$PRGNAM-$VERSION/README_SBo.txt
+
+# Fix DOS CRLF line endings
+sed -i 's/\r//' $PKG/usr/doc/$PRGNAM-$VERSION/*
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc