games/snes9x: Added.

Snes9x is a portable, freeware Super Nintendo Entertainment System
  (SNES) emulator. This replaces snes9x_gtk.  Thanks to B. Watson.
This commit is contained in:
B. Watson 2010-03-03 14:19:01 -06:00 committed by Erik Hanson
parent df3bd326d7
commit 5e5e21ae60
7 changed files with 210 additions and 0 deletions

11
games/snes9x/README Normal file
View File

@ -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.

View File

@ -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.

10
games/snes9x/doinst.sh Normal file
View File

@ -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

19
games/snes9x/slack-desc Normal file
View File

@ -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:

70
games/snes9x/snes9x-gtk.6 Normal file
View File

@ -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).

86
games/snes9x/snes9x.SlackBuild Executable file
View File

@ -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}

10
games/snes9x/snes9x.info Normal file
View File

@ -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"