summaryrefslogtreecommitdiffstats
path: root/games/xroar/xroar.SlackBuild
diff options
context:
space:
mode:
author B. Watson2016-10-16 19:30:38 +0200
committer Willy Sudiarto Raharjo2016-10-22 03:47:29 +0200
commit87d13a495f7b8d33c4e38bdcc5acc8e9e5fdc7f1 (patch)
treed480775fdc48b0c9ba8a2efcfdc6d9d82e372ec8 /games/xroar/xroar.SlackBuild
parent7ff718db7bc17eb2c41a8895034a0c2d52f5f1b0 (diff)
downloadslackbuilds-87d13a495f7b8d33c4e38bdcc5acc8e9e5fdc7f1.tar.gz
games/xroar: Updated for version 0.34.5.
Diffstat (limited to 'games/xroar/xroar.SlackBuild')
-rw-r--r--games/xroar/xroar.SlackBuild24
1 files changed, 11 insertions, 13 deletions
diff --git a/games/xroar/xroar.SlackBuild b/games/xroar/xroar.SlackBuild
index c3c4266bb3..667b1b65ce 100644
--- a/games/xroar/xroar.SlackBuild
+++ b/games/xroar/xroar.SlackBuild
@@ -6,6 +6,12 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20161016 bkw:
+# - update for 0.34.5
+# - move binary to /usr/games
+# - mention SDL2 in README
+# - fix jack option (--with-jack, not --enable-jack)
+
# 20150912 bkw:
# - update for 0.33.2
# - use upstream's man page, get rid of mine
@@ -34,7 +40,7 @@
# - mention gtkglext in README as an optional dep
PRGNAM=xroar
-VERSION=${VERSION:-0.33.2}
+VERSION=${VERSION:-0.34.5}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -86,8 +92,8 @@ find -L . \
patch -p1 < $CWD/alsa_first.diff
# Not sure why anyone would need this, but it's easy to support.
-JACKOPT="--disable-jack"
-[ "${JACK:-no}" = "yes" ] && JACKOPT="--enable-jack"
+JACKOPT="--without-jack"
+[ "${JACK:-no}" = "yes" ] && JACKOPT="--with-jack"
# fix underlinking via LDFLAGS instead of a .diff
@@ -96,6 +102,7 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
$JACKOPT \
+ --bindir=/usr/games \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
@@ -106,7 +113,7 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install DESTDIR=$PKG
-strip $PKG/usr/bin/$PRGNAM
+strip $PKG/usr/games/$PRGNAM
# man page needs to be in section 6, since this is in games/
mkdir -p $PKG/usr/man/man6
@@ -161,15 +168,6 @@ cp -a COPYING* ChangeLog $PKG/usr/doc/$PRGNAM-$VERSION
( cd doc && make $PRGNAM.html )
cp doc/$PRGNAM.html doc/*png $PKG/usr/doc/$PRGNAM-$VERSION
-# Don't keep duplicates of the doc images, use symlinks
-cd $PKG/usr/info
-for i in *.png; do
- if [ -e ../doc/$PRGNAM-$VERSION/$i ]; then
- rm -f $i
- ln -s ../doc/$PRGNAM-$VERSION/$i .
- fi
-done
-
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install