summaryrefslogtreecommitdiff
path: root/games/colem/colem.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2017-12-19 18:15:50 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-12-21 08:19:33 +0700
commit86619ab317d7d4867ccd8f168370480850e8f8b6 (patch)
treed31b79bf1bd87a51ab42b7fbdf1c7cc1a09f9083 /games/colem/colem.SlackBuild
parent5c03647093c54c114513d778e1d00ae78edc870a (diff)
downloadslackbuilds-86619ab317d7d4867ccd8f168370480850e8f8b6.tar.gz
games/colem: Updated for version 4.2.
Signed-off-by: B. Watson <yalhcru@gmail.com>.
Diffstat (limited to 'games/colem/colem.SlackBuild')
-rw-r--r--games/colem/colem.SlackBuild24
1 files changed, 16 insertions, 8 deletions
diff --git a/games/colem/colem.SlackBuild b/games/colem/colem.SlackBuild
index 8e7de638a8..a4fa1fa674 100644
--- a/games/colem/colem.SlackBuild
+++ b/games/colem/colem.SlackBuild
@@ -6,6 +6,10 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20171218 bkw: updated for 4.2.
+# - upstream started using PulseAudio, but I want to be able to build
+# with or without it, so added PULSE=no option.
+
# 20170819 bkw:
# - updated for 4.1. according to upstream's docs, the only changes from
# 4.0 to 4.1 are for windows, so don't expect any new features here.
@@ -51,7 +55,7 @@
# with OSS modules disabled by default.
PRGNAM=colem
-VERSION=${VERSION:-4.1}
+VERSION=${VERSION:-4.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -112,13 +116,6 @@ find -L . \
sed -i "s/-O2/$SLKCFLAGS/" EMULib/Rules.gcc
-# colem still uses OSS audio. I thought linking with -laoss would Just Work,
-# avoiding the need for the aoss wrapper script, but it doesn't work. code
-# left here for references (I may revisit this someday).
-##if [ "${AOSS:-yes}" = "yes" ]; then
-## sed -i '/^LIBS/s,$, -laoss,' EMULib/Rules.Unix
-##fi
-
# Make the emulator look in /usr/share/colem and ~/.colem for the
# system ROMs, as well as the current directory. Without this, it's
# quite annoying to use colem from either the command line or KDE.
@@ -128,6 +125,14 @@ patch -p1 < $CWD/rom_path.diff
# at least not in the *nix port.
sed -i 's,and PKZIPped ,,' ColEm/Help.h ColEm/ColEm.html
+# Allow optional building without pulse.
+if [ "${PULSE:-yes}" = "no" ]; then
+ sed -i \
+ -e 's,-DPULSE_AUDIO,,' \
+ -e 's,-lpulse-simple,,' \
+ EMULib/Rules.Unix
+fi
+
cd $ZIPNAME/Unix
# ColEm.html claims that -DGIFLIB makes the F10 key save a GIF snapshot,
@@ -171,6 +176,9 @@ cat $CWD/$PRGNAM.png > $PKG/usr/share/pixmaps/$PRGNAM.png
# sources and modified to get rid of the Maemo-specific stuff.
mkdir -p $PKG/usr/share/applications
cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
+if [ "${PULSE:-yes}" = "no" ]; then
+ sed -i 's,^Exec=,&aoss ,' $PKG/usr/share/applications/$PRGNAM.desktop
+fi
mkdir -p $PKG/usr/share/mime/packages
cat $CWD/$PRGNAM.xml > $PKG/usr/share/mime/packages/$PRGNAM.xml