aboutsummaryrefslogtreecommitdiff
path: root/games/snes9x
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2010-03-03 14:19:01 -0600
committerErik Hanson <erik@slackbuilds.org>2010-05-13 13:23:52 +0200
commit5e5e21ae60003c107e7d5170385483f96a9fab0e (patch)
tree94c520ec9840af192045bba46185b7ff2fbd9341 /games/snes9x
parentdf3bd326d7c8d38d7a3063971f74db9b7e5a9bb3 (diff)
games/snes9x: Added.
Snes9x is a portable, freeware Super Nintendo Entertainment System (SNES) emulator. This replaces snes9x_gtk. Thanks to B. Watson.
Diffstat (limited to 'games/snes9x')
-rw-r--r--games/snes9x/README11
-rw-r--r--games/snes9x/README_docs.txt4
-rw-r--r--games/snes9x/doinst.sh10
-rw-r--r--games/snes9x/slack-desc19
-rw-r--r--games/snes9x/snes9x-gtk.670
-rwxr-xr-xgames/snes9x/snes9x.SlackBuild86
-rw-r--r--games/snes9x/snes9x.info10
7 files changed, 210 insertions, 0 deletions
diff --git a/games/snes9x/README b/games/snes9x/README
new file mode 100644
index 0000000000000..633fd7ce0e7b8
--- /dev/null
+++ b/games/snes9x/README
@@ -0,0 +1,11 @@
+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. The
+games include some real gems that were only ever released in Japan.
+
+This SlackBuild works on both 32-bit and 64-bit Slackware systems,
+and builds the GTK+ port of snes9x. This SlackBuild was formerly known
+as "snes9x_gtk", but has been renamed to plain "snes9x" because the
+(formerly unoffocial) GTK+ port has been integrated into the official
+snes9x codebase. If you have the old snes9x_gtk package installed,
+remove it before installing this package.
diff --git a/games/snes9x/README_docs.txt b/games/snes9x/README_docs.txt
new file mode 100644
index 0000000000000..35702296fd20b
--- /dev/null
+++ b/games/snes9x/README_docs.txt
@@ -0,0 +1,4 @@
+This directory contains the documentation for the original snes9x (the
+non-GTK+ version). Not all of the information here applies to snes9x_gtk,
+but some of it may still be useful... and the various licenses still
+apply.
diff --git a/games/snes9x/doinst.sh b/games/snes9x/doinst.sh
new file mode 100644
index 0000000000000..1f8ff67dedb29
--- /dev/null
+++ b/games/snes9x/doinst.sh
@@ -0,0 +1,10 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
+
+if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
+ fi
+fi
+
diff --git a/games/snes9x/slack-desc b/games/snes9x/slack-desc
new file mode 100644
index 0000000000000..f3c5cce50313c
--- /dev/null
+++ b/games/snes9x/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+
+ |-----handy-ruler------------------------------------------------------|
+snes9x: snes9x (Super Nintendo Entertainment System emulator)
+snes9x:
+snes9x: Snes9x is a portable, freeware Super Nintendo Entertainment System
+snes9x: (SNES) emulator. It basically allows you to play most games designed
+snes9x: for the SNES and Super Famicom Nintendo game systems on your PC or
+snes9x: Workstation. The games include some real gems that were only ever
+snes9x: released in Japan.
+snes9x:
+snes9x:
+snes9x:
+snes9x:
diff --git a/games/snes9x/snes9x-gtk.6 b/games/snes9x/snes9x-gtk.6
new file mode 100644
index 0000000000000..2dc3f1fa4a90b
--- /dev/null
+++ b/games/snes9x/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/snes9x.SlackBuild b/games/snes9x/snes9x.SlackBuild
new file mode 100755
index 0000000000000..7590efe8a6dd5
--- /dev/null
+++ b/games/snes9x/snes9x.SlackBuild
@@ -0,0 +1,86 @@
+#!/bin/sh
+
+# Slackware build script for snes9x
+
+# Written by B. Watson (yalhcru@gmail.com)
+
+PRGNAM=snes9x
+VERSION=${VERSION:-1.52}
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+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
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION-src
+tar xvf $CWD/$PRGNAM-$VERSION-src.tar.bz2
+cd $PRGNAM-$VERSION-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 \
+ --with-netplay \
+ --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
+
+cd $PKG/usr/man/man6
+ ln -s $PRGNAM-gtk.6.gz $PRGNAM.gz
+cd -
+
+cd $PKG/usr/games
+ ln -s $PRGNAM-gtk $PRGNAM
+cd -
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/${PRGNAM}_original_docs
+cp doc/* $PKG/usr/doc/$PRGNAM-$VERSION
+cp ../docs/* $CWD/README_docs.txt \
+ $PKG/usr/doc/$PRGNAM-$VERSION/${PRGNAM}_original_docs
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+# We don't need 2 copies of the LGPL v2.1 (we already have the GPL,
+# LGPL v3, and proprietary snes9x licenses...)
+cd $PKG/usr/doc/$PRGNAM-$VERSION
+ rm -f snes_ntsc_license.txt
+ ln -s ${PRGNAM}_original_docs/lgpl-2.1 snes_ntsc_license.txt
+cd -
+
+cat data/$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.${PKGTYPE:-tgz}
diff --git a/games/snes9x/snes9x.info b/games/snes9x/snes9x.info
new file mode 100644
index 0000000000000..99c3795a4ac42
--- /dev/null
+++ b/games/snes9x/snes9x.info
@@ -0,0 +1,10 @@
+PRGNAM="snes9x"
+VERSION="1.52"
+HOMEPAGE="http://code.google.com/p/snes9x-gtk/"
+DOWNLOAD="http://snes9x-gtk.googlecode.com/files/snes9x-1.52-src.tar.bz2"
+DOWNLOAD_x86_64=""
+MD5SUM="813bd3a0f99732ee0238a2c8ab417725"
+MD5SUM_x86_64=""
+MAINTAINER="B. Watson"
+EMAIL="yalhcru@gmail.com"
+APPROVED="Erik Hanson"