mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-20 19:41:34 +01:00
games/mupen64plus: Updated for version 1.5
This commit is contained in:
parent
897a493e66
commit
fbdb543d41
5 changed files with 39 additions and 20 deletions
|
@ -3,3 +3,9 @@ of accurately playing many games. Included are four MIPS R4300 CPU
|
|||
emulators, with dynamic recompilers for 32-bit x86 and 64-bit amd64
|
||||
systems, and necessary plugins for audio, graphical rendering (RDP),
|
||||
signal co-processor (RSP), and input.
|
||||
|
||||
By default the gtk2 GUI will be built. To build the Qt4 GUI pass GTK2=no
|
||||
to the script.
|
||||
|
||||
libsamplerate is an optional (but recommended) dependency.
|
||||
It is also available from SlackBuilds.org
|
|
@ -3,6 +3,7 @@
|
|||
# Slackware build script for Mupen64Plus
|
||||
|
||||
# Copyright 2008 Frank Caraballo <fecaraballo{at}gmail{dot}com>
|
||||
# Modified by M.Dinslage
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
|
@ -23,9 +24,9 @@
|
|||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
PRGNAM=mupen64plus
|
||||
VERSION=${VERSION:-1.4.1}
|
||||
VERSION=${VERSION:-1.5}
|
||||
ARCH=${ARCH:-i486}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
CWD=$(pwd)
|
||||
|
@ -35,18 +36,27 @@ 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
|
||||
|
||||
if [ "${GTK2:-yes}" = "yes" ]; then
|
||||
gui_opt="GTK2"
|
||||
else
|
||||
gui_opt="QT4"
|
||||
fi
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP || exit 1
|
||||
rm -rf Mupen64Plus-1-4-1-src
|
||||
unzip $CWD/Mupen64Plus-1-4-1-src.zip || exit 1
|
||||
cd Mupen64Plus-1-4-1-src || exit 1
|
||||
rm -rf Mupen64Plus-1-5-src
|
||||
tar xzvf $CWD/Mupen64Plus-1-5-src.tar.gz || exit 1
|
||||
cd Mupen64Plus-1-5-src || exit 1
|
||||
chown -R root:root .
|
||||
find . \
|
||||
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
||||
|
@ -56,28 +66,28 @@ find . \
|
|||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
make PREFIX=/usr all || exit 1
|
||||
make PREFIX=/usr GUI=$gui_opt all || exit 1
|
||||
make PREFIX=$PKG/usr install || exit 1
|
||||
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
|
||||
xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
|
||||
xargs strip --strip-unneeded 2> /dev/null
|
||||
)
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a LICENCE.TXT README* RELEASE TODO \
|
||||
cp -a LICENSES README* RELEASE TODO \
|
||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
mkdir -p $PKG/usr/share/{applications,pixmaps}
|
||||
cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
|
||||
( cd $PKG/usr/share/pixmaps
|
||||
ln -s ../mupen64plus/icons/logo.xpm mupen64plus.xpm
|
||||
)
|
||||
cat $CWD/mupen64plus.png > $PKG/usr/share/pixmaps/mupen64plus.png
|
||||
|
||||
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}
|
||||
|
|
|
@ -6,5 +6,5 @@ Exec=mupen64plus
|
|||
Terminal=false
|
||||
Type=Application
|
||||
Categories=Application;Game;Emulator;
|
||||
Icon=mupen64plus.xpm
|
||||
Icon=/usr/share/pixmaps/mupen64plus.png
|
||||
StartupNotify=false
|
||||
|
|
|
@ -1,8 +1,11 @@
|
|||
PRGNAM="mupen64plus"
|
||||
VERSION="1.4.1"
|
||||
VERSION="1.5"
|
||||
HOMEPAGE="http://code.google.com/p/mupen64plus/"
|
||||
DOWNLOAD="http://mupen64plus.googlecode.com/files/Mupen64Plus-1-4-1-src.zip"
|
||||
MD5SUM="bd59542e17107844e6b3b139a1177551"
|
||||
MAINTAINER="Frank Caraballo"
|
||||
EMAIL="fecaraballo{at}gmail{dot}com"
|
||||
APPROVED="dsomero"
|
||||
DOWNLOAD="http://ftp.riken.go.jp/pub/FreeBSD/distfiles/mupen64plus/Mupen64Plus-1-5-src.tar.gz"
|
||||
MD5SUM="c224b045d343ff02f6f933d328861b01"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
MAINTAINER="M.Dinslage"
|
||||
EMAIL="daedra{at}charter{dot}net"
|
||||
APPROVED="pprkut"
|
||||
|
||||
|
|
BIN
games/mupen64plus/mupen64plus.png
Normal file
BIN
games/mupen64plus/mupen64plus.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
Loading…
Reference in a new issue