summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2010-05-13 00:27:08 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-13 00:27:08 +0200
commitd7018821d28149bdc8009de31bd2232674a19751 (patch)
tree28d9372de7a3266977caa4033144ba1d45cded3a
parentc6a880594ca700a9b46ba5f38753e461a4bc8fe4 (diff)
downloadslackbuilds-d7018821d28149bdc8009de31bd2232674a19751.tar.gz
games/snes9x_gtk: Updated for version 1.51r78
-rw-r--r--games/snes9x_gtk/snes9x-gtk.670
-rw-r--r--games/snes9x_gtk/snes9x_gtk.SlackBuild20
-rw-r--r--games/snes9x_gtk/snes9x_gtk.desktop (renamed from games/snes9x_gtk/snes9x.desktop)2
-rw-r--r--games/snes9x_gtk/snes9x_gtk.info10
4 files changed, 91 insertions, 11 deletions
diff --git a/games/snes9x_gtk/snes9x-gtk.6 b/games/snes9x_gtk/snes9x-gtk.6
new file mode 100644
index 0000000000..2dc3f1fa4a
--- /dev/null
+++ b/games/snes9x_gtk/snes9x-gtk.6
@@ -0,0 +1,70 @@
+.TH SNES9X-GTK 6 "22 OCT 2009" "SlackBuilds.org Project" "Slackware Linux"
+.SH NAME
+snes9x-gtk \- Super Nintendo Entertainment System emulator
+.SH SYNOPSIS
+.B snes9x\-gtk
+[\-filter \fItype\fR]
+[\-mutesound]
+[\fIrom\-file]
+.SH DESCRIPTION
+Snes9x is a portable, freeware Super Nintendo Entertainment System (SNES)
+emulator. It basically allows you to play most games designed for the SNES
+and Super Famicom Nintendo game systems on your PC or Workstation; they
+include some real gems that were only ever released in Japan.
+.PP
+.B snes9x\-gtk
+is an unofficial port of Snes9x with a GTK+ graphical frontend.
+.PP
+With no ROM file argument, snes9x\-gtk will start its graphical user interface.
+When a ROM file is named on the command line, snes9x\-gtk will start
+emulation immediately.
+.PP
+Unlike the original snes9x, snes9x\-gtk doesn't extensively use command\-line
+options to affect its behaviour. Instead, use the GUI and/or keyboard
+shortcuts from within the emulator.
+.SS OPTIONS
+.TP
+\fB\-filter\fR \fItype\fR
+Use a filter to scale the video. Filter types are:
+.br
+.nh
+.I none
+.I supereagle
+.I 2xsai
+.I super2xsai
+.I hq2x
+.I hq3x
+.I hq4x
+.I epx
+.I ntsc
+.hy
+.PP
+The \-filter option does the same thing as the GUI's "Apply Scaling Filter"
+selection (under Preferences / Display).
+.TP
+.B \-mutesound
+Disable audio output. The sound CPU is still emulated. Note that this
+option will enable the "mute sound?" checkbox in the Preferences user
+interface, whose value will be saved across sessions (you must use the GUI to
+unmute the audio).
+.SH FILES
+.B ~/.snes9x/snes9x.xml
+.br
+Configuration file. Not intended to be edited directly; stores the settings
+made in the GUI. To return all settings to their defaults, remove this file.
+.PP
+.B ~/.snes9x/snapshots/*
+.br
+Saved states, named after ROM filenames.
+.PP
+.B ~/.snes9x/*.png
+.br
+Screenshots, named after ROM filenames.
+.SH AUTHOR
+snes9x\-gtk was ported by Brandon Wright <bearoso@gmail.com>.
+.PP
+Snes9x was written by Gary Henderson and Jerremy Koot. It also includes code
+from Ivar (Ivar@snes9x.com), zsKnight and _Demo_ and many others.
+.PP
+This manual page was written by B. Watson
+for the SlackBuilds.org project (but may be used by others).
diff --git a/games/snes9x_gtk/snes9x_gtk.SlackBuild b/games/snes9x_gtk/snes9x_gtk.SlackBuild
index 667ca86dc3..cc0c71003f 100644
--- a/games/snes9x_gtk/snes9x_gtk.SlackBuild
+++ b/games/snes9x_gtk/snes9x_gtk.SlackBuild
@@ -5,7 +5,7 @@
# Written by B. Watson (yalhcru@gmail.com)
PRGNAM=snes9x_gtk
-VERSION=${VERSION:-1.51r72}
+VERSION=${VERSION:-1.51r78}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -17,15 +17,18 @@ OUTPUT=${OUTPUT:-/tmp}
# The VERSION is a bit of a mess...
SNES9XVER=${SNES9XVER:-1.51}
-GTKVER=${GTKVER:-72}
+GTKVER=${GTKVER:-78}
SRCNAM=snes9x
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
fi
set -e
@@ -35,22 +38,27 @@ mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $SRCNAM-$SNES9XVER-src
tar xvf $CWD/$SRCNAM-$SNES9XVER-src-gtk-$GTKVER.tar.bz2
-cd $SRCNAM-$SNES9XVER-src/gtk
+cd $SRCNAM-$SNES9XVER-src
chown -R root:root .
chmod -R a-s,u+w,go+r-w .
+cd gtk
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--bindir=/usr/games \
--sysconfdir=/etc \
--localstatedir=/var \
- --mandir=/usr/man
+ --build=$ARCH-slackware-linux
make
make install-strip DESTDIR=$PKG
+mkdir -p $PKG/usr/man/man6
+gzip -9c $CWD/snes9x-gtk.6 > $PKG/usr/man/man6/snes9x-gtk.6.gz
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/${SRCNAM}_original_docs
cp doc/* $PKG/usr/doc/$PRGNAM-$VERSION
cp ../doc/* $CWD/README_docs.txt \
@@ -70,11 +78,11 @@ cd $PKG/usr/doc/$PRGNAM-$VERSION
cd -
# Don't use the shipped .desktop file: it fails desktop-file-validate
-cat $CWD/$SRCNAM.desktop > $PKG/usr/share/applications/$SRCNAM.desktop
+cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/games/snes9x_gtk/snes9x.desktop b/games/snes9x_gtk/snes9x_gtk.desktop
index 32927bb9d9..43404b5df2 100644
--- a/games/snes9x_gtk/snes9x.desktop
+++ b/games/snes9x_gtk/snes9x_gtk.desktop
@@ -1,5 +1,5 @@
[Desktop Entry]
-Name=Snes9x
+Name=Snes9x-GTK
Comment=Super NES Emulator
Type=Application
Categories=Game;Emulator;
diff --git a/games/snes9x_gtk/snes9x_gtk.info b/games/snes9x_gtk/snes9x_gtk.info
index e453d3fab8..c9f36f2157 100644
--- a/games/snes9x_gtk/snes9x_gtk.info
+++ b/games/snes9x_gtk/snes9x_gtk.info
@@ -1,8 +1,10 @@
PRGNAM="snes9x_gtk"
-VERSION="1.51r72"
+VERSION="1.51r78"
HOMEPAGE="http://code.google.com/p/snes9x-gtk/"
-DOWNLOAD="http://snes9x-gtk.googlecode.com/files/snes9x-1.51-src-gtk-72.tar.bz2"
-MD5SUM="84d071155770d27ad5ed1350575d1108"
+DOWNLOAD="http://snes9x-gtk.googlecode.com/files/snes9x-1.51-src-gtk-78.tar.bz2"
+MD5SUM="900abc119e874b59f364fc9f5187c724"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
MAINTAINER="B. Watson"
EMAIL="yalhcru@gmail.com"
-APPROVED="dsomero"
+APPROVED="rworkman"