aboutsummaryrefslogtreecommitdiff
path: root/games/xroar/xroar.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/xroar/xroar.SlackBuild')
-rw-r--r--games/xroar/xroar.SlackBuild21
1 files changed, 18 insertions, 3 deletions
diff --git a/games/xroar/xroar.SlackBuild b/games/xroar/xroar.SlackBuild
index 9bedcb9de585..d3a37f586ccd 100644
--- a/games/xroar/xroar.SlackBuild
+++ b/games/xroar/xroar.SlackBuild
@@ -4,7 +4,14 @@
# Written by B. Watson (yalhcru@gmail.com)
-# Licensed under the WTFPL. See http://sam.zoy.org/wtfpl/ for details.
+# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+
+# 20140313 bkw:
+# - update for 0.31.1
+# - change download link to upstream's, looks OK now
+# - update alsa_first.diff (module.c -> src/module.c)
+# - update man page (new options, convert to POD)
+# - add jack support
# 20130617 bkw:
# - update for 0.29.5
@@ -19,7 +26,7 @@
# - mention gtkglext in README as an optional dep
PRGNAM=xroar
-VERSION=${VERSION:-0.29.5}
+VERSION=${VERSION:-0.31.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -70,12 +77,17 @@ find -L . \
# apps from making any sound at all!)
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"
+
# fix underlinking via LDFLAGS instead of a .diff
LDFLAGS="-lm" \
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
+ $JACKOPT \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
@@ -117,10 +129,13 @@ fi
# Man page written for this SlackBuild
mkdir -p $PKG/usr/man/man6
-sed "s,@VERSION@,$VERSION,g" < $CWD/$PRGNAM.6 | gzip -9c > $PKG/usr/man/man6/$PRGNAM.6.gz
+sed "s,_VERSION_,$VERSION,g" < $CWD/$PRGNAM.6 | gzip -9c > $PKG/usr/man/man6/$PRGNAM.6.gz
# Icon taken from Fedora package here:
# ftp://mirror.switch.ch/pool/3/mirror/rpmfusion/free/fedora/updates/8/i386/xroar-0.21-2.fc8.i386.rpm
+# Current versions of xroar include windows and mac icons that are larger,
+# but they don't include the word 'xroar' (just the X-shaped graphic), so
+# I'm sticking with the old Fedora icon.
mkdir $PKG/usr/share/pixmaps
cat $CWD/$PRGNAM.png > $PKG/usr/share/pixmaps/$PRGNAM.png