mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-26 22:06:35 +01:00
games/yabause: Added to 12.2 repository
This commit is contained in:
parent
2ee6efb7ac
commit
2f02251229
5 changed files with 142 additions and 0 deletions
23
games/yabause/README
Normal file
23
games/yabause/README
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
Yabause is a Sega Saturn emulator. It has the following features:
|
||||||
|
* booting games from CD-ROM and ISO files
|
||||||
|
* booting games with either an emulated or original BIOS
|
||||||
|
* screenshot support
|
||||||
|
* savegame backups
|
||||||
|
* cheat system
|
||||||
|
* fullscreen playing
|
||||||
|
* multiple debugging options
|
||||||
|
* joystick support
|
||||||
|
* region select
|
||||||
|
|
||||||
|
Requires: gtkglext
|
||||||
|
|
||||||
|
Optional: mini18n, OpenAL and Qt4.
|
||||||
|
|
||||||
|
By default the gtk interface is built. If you would like to build
|
||||||
|
the Qt4 interface then pass HAVE_QT4=yes to the slackbuild. This
|
||||||
|
additionally makes Qt4 a requirement.
|
||||||
|
|
||||||
|
For translation support install mini18n.
|
||||||
|
|
||||||
|
Before using Yabause, you need to configure a few things in
|
||||||
|
the Preferences dialog (File>Settings).
|
4
games/yabause/doinst.sh
Normal file
4
games/yabause/doinst.sh
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
if [ -x /usr/bin/update-desktop-database ]; then
|
||||||
|
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
|
||||||
|
fi
|
||||||
|
|
19
games/yabause/slack-desc
Normal file
19
games/yabause/slack-desc
Normal 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------------------------------------------------------|
|
||||||
|
yabause: yabause (Sega Saturn emulator)
|
||||||
|
yabause:
|
||||||
|
yabause: Yabause is a Sega Saturn emulator.
|
||||||
|
yabause: Yabause supports booting games using Saturn cds or iso files.
|
||||||
|
yabause:
|
||||||
|
yabause: Homepage: http://yabause.org/
|
||||||
|
yabause:
|
||||||
|
yabause:
|
||||||
|
yabause:
|
||||||
|
yabause:
|
||||||
|
yabause:
|
88
games/yabause/yabause.SlackBuild
Normal file
88
games/yabause/yabause.SlackBuild
Normal file
|
@ -0,0 +1,88 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Slackware build script for yabause
|
||||||
|
|
||||||
|
# Written by Larry Hajali <larryhaja[at]gmail[dot]com>
|
||||||
|
|
||||||
|
PRGNAM=yabause
|
||||||
|
VERSION=${VERSION:-0.9.10}
|
||||||
|
ARCH=${ARCH:-i486}
|
||||||
|
BUILD=${BUILD:-1}
|
||||||
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
|
CWD=$(pwd)
|
||||||
|
TMP=${TMP:-/tmp/SBo}
|
||||||
|
PKG=$TMP/package-$PRGNAM
|
||||||
|
OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
|
||||||
|
# Variable to determine gtk/qt4 interface.
|
||||||
|
HAVE_QT4=${HAVE_QT4:-no}
|
||||||
|
|
||||||
|
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
|
||||||
|
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||||
|
cd $PRGNAM-$VERSION
|
||||||
|
chown -R root:root .
|
||||||
|
find . \
|
||||||
|
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
||||||
|
-exec chmod 755 {} \; -o \
|
||||||
|
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||||
|
-exec chmod 644 {} \;
|
||||||
|
|
||||||
|
# Determine if the user wants to use the gtk/qt4 interface.
|
||||||
|
if [ "${HAVE_QT4}" == "yes" ]; then
|
||||||
|
USE_PORT="qt"
|
||||||
|
else
|
||||||
|
USE_PORT="gtk"
|
||||||
|
fi
|
||||||
|
|
||||||
|
CFLAGS="$SLKCFLAGS" \
|
||||||
|
CXXFLAGS="$SLKCFLAGS" \
|
||||||
|
./configure \
|
||||||
|
--prefix=/usr \
|
||||||
|
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||||
|
--mandir=/usr/man \
|
||||||
|
--enable-network \
|
||||||
|
--enable-mic-shaders \
|
||||||
|
--enable-perkeyname \
|
||||||
|
--disable-dependency-tracking \
|
||||||
|
--with-x \
|
||||||
|
--with-q68 \
|
||||||
|
--with-port=${USE_PORT} \
|
||||||
|
--build=$ARCH-slackware-linux
|
||||||
|
|
||||||
|
make
|
||||||
|
make install-strip DESTDIR=$PKG
|
||||||
|
|
||||||
|
( cd $PKG/usr/man
|
||||||
|
find . -type f -exec gzip -9 {} \;
|
||||||
|
for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
|
||||||
|
)
|
||||||
|
|
||||||
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
|
cp -a \
|
||||||
|
AUTHORS ChangeLog COPYING GOALS INSTALL README{,.LIN,.QT} TODO \
|
||||||
|
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
|
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||||
|
|
||||||
|
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
|
8
games/yabause/yabause.info
Normal file
8
games/yabause/yabause.info
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
PRGNAM="yabause"
|
||||||
|
VERSION="0.9.10"
|
||||||
|
HOMEPAGE="http://yabause.org/"
|
||||||
|
DOWNLOAD="http://downloads.sourceforge.net/yabause/yabause-0.9.10.tar.gz"
|
||||||
|
MD5SUM="7e39dd1eb37539d8f24e644fd52a72a7"
|
||||||
|
MAINTAINER="Larry Hajali"
|
||||||
|
EMAIL="larryhaja[at]gmail[dot]com"
|
||||||
|
APPROVED="rworkman"
|
Loading…
Reference in a new issue