summaryrefslogtreecommitdiffstats
path: root/games/mednafen
diff options
context:
space:
mode:
author Ryan P.C. McQuen2016-01-18 18:00:38 +0100
committer Willy Sudiarto Raharjo2016-01-19 19:48:25 +0100
commit784b369eafe17eea984468cda4dbed61c670dd3f (patch)
tree2b5ccd0f8e7df0c4297fef39bf20b83a975450c8 /games/mednafen
parented96843993c9678d1975a46c8b56805ab6309864 (diff)
downloadslackbuilds-784b369eafe17eea984468cda4dbed61c670dd3f.tar.gz
games/mednafen: Remove compiler hacks for 14.1.
Signed-off-by: Ryan P.C. McQuen <ryan.q@linux.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/mednafen')
-rw-r--r--games/mednafen/README4
-rw-r--r--games/mednafen/mednafen.SlackBuild22
2 files changed, 7 insertions, 19 deletions
diff --git a/games/mednafen/README b/games/mednafen/README
index 1a41a3d35f..962c2a457e 100644
--- a/games/mednafen/README
+++ b/games/mednafen/README
@@ -4,3 +4,7 @@ GameBoy Advance, Neo Geo Pocket (Color), NES - both NTSC and PAL,
PC-FX, WonderSwan (Color), PC Engine/TurboGrafx 16 (CD) and SuperGrafx.
Mednafen will use jack-audio-connection-kit if it's available at build time.
+
+To make Mednafen use ALSA's default output, run like so:
+
+ /usr/bin/mednafen -sound.device sexyal-literal-default
diff --git a/games/mednafen/mednafen.SlackBuild b/games/mednafen/mednafen.SlackBuild
index 6fb093d10c..2803455a8b 100644
--- a/games/mednafen/mednafen.SlackBuild
+++ b/games/mednafen/mednafen.SlackBuild
@@ -25,7 +25,7 @@
PRGNAM=mednafen
VERSION=${VERSION:-0.9.38.7}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -70,25 +70,9 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-##
-## Switched to clang as 14.1's version of gcc will compile mednafen,
-## but will not run mednafen, failing a compiler code generation
-## test (http://forum.fobby.net/index.php?t=msg&th=1126&start=0&).
-## Unfortunately our version of clang has its own issues ...
-## The 'CXXFLAGS': "-D__float128=void" and "-D__STRICT_ANSI__",
-## will both work, but seem to give a drop in performance
-## on some machines. Using "-std=c++11" works on stable
-## and current, and seems to be the best option at this point.
-##
-## Note that the CLANGFLAGS are only set if the user has
-## the affected version of llvm.
-##
-if [ "`clang --version | grep '3.3'`" ]; then
- CLANGFLAGS="-std=c++11"
-fi
-
CC=clang CXX=clang++ \
-CXXFLAGS+="$CLANGFLAGS" \
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib$LIBDIRSUFFIX \