From 53011247fb4b5f16cbd518720e599d5a7ae382f2 Mon Sep 17 00:00:00 2001 From: Steven Voges Date: Sat, 2 Sep 2023 17:48:18 +0700 Subject: games/mupen64plus-nightly: Added (N64 emulator). Signed-off-by: Willy Sudiarto Raharjo --- games/mupen64plus-nightly/README | 14 ++ games/mupen64plus-nightly/doinst.sh | 9 ++ .../mupen64plus-nightly.SlackBuild | 162 +++++++++++++++++++++ games/mupen64plus-nightly/mupen64plus-nightly.info | 24 +++ games/mupen64plus-nightly/slack-desc | 19 +++ 5 files changed, 228 insertions(+) create mode 100644 games/mupen64plus-nightly/README create mode 100644 games/mupen64plus-nightly/doinst.sh create mode 100644 games/mupen64plus-nightly/mupen64plus-nightly.SlackBuild create mode 100644 games/mupen64plus-nightly/mupen64plus-nightly.info create mode 100644 games/mupen64plus-nightly/slack-desc (limited to 'games') diff --git a/games/mupen64plus-nightly/README b/games/mupen64plus-nightly/README new file mode 100644 index 0000000000000..abde7655ea6e2 --- /dev/null +++ b/games/mupen64plus-nightly/README @@ -0,0 +1,14 @@ +Mupen64Plus is a cross-platform plugin-based N64 emulator which is +capable 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. There is 1 included OpenGL video +plugin, called RiceVideo. + +Mupen64plus does not come with a GUI. For a GUI, install the m64py +or RMG package available here at SBo. + +This is the nightly build which is under active development and changes +rapidly. For the stable build pleas see mupen64plus. + +This package conflicts with mupen64plus, only install one or the other. diff --git a/games/mupen64plus-nightly/doinst.sh b/games/mupen64plus-nightly/doinst.sh new file mode 100644 index 0000000000000..cc2f26a49b45a --- /dev/null +++ b/games/mupen64plus-nightly/doinst.sh @@ -0,0 +1,9 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications 2>/dev/null +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 -f usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi diff --git a/games/mupen64plus-nightly/mupen64plus-nightly.SlackBuild b/games/mupen64plus-nightly/mupen64plus-nightly.SlackBuild new file mode 100644 index 0000000000000..9eb6996a9dcdc --- /dev/null +++ b/games/mupen64plus-nightly/mupen64plus-nightly.SlackBuild @@ -0,0 +1,162 @@ +#!/bin/bash + +# Slackware build script for mupen64plus-nightly + +# Copyright 2023 Steven Voges +# Copyright 2021 Matt Dinslage, Springfield MO +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +cd $(dirname $0) ; CWD=$(pwd) + +PRGNAM=mupen64plus-nightly +SRCNAM=mupen64plus +VERSION=${VERSION:-20230820_7d02ab9} +AUDIOSDL=${AUDIOSDL:-cec70e42b4535ce5bd1be24e7d816c54b3e75673} +CORE=${CORE:-7d02ab97bd13be9b1b58ee11a1d3df6919d89f17} +INPUTSDL=${INPUTSDL:-b175a41675ba39ac3ce6f152355dca92d9d32207} +ROM=${ROM:-abd5b15498eb86101c2a56eb49460a264365b3ba} +RSPHLE=${RSPHLE:-f22dc143771f1a0784c7d62977722a68fa0bdf85} +UICONSOLE=${UICONSOLE:-335e826aead146bd6a47d557d78b746e77f337c8} +VIDEOGLIDE64MK2=${VIDEOGLIDE64MK2:-d900f2191575e01eb846a1009be71cbc1b413dba} +VIDEORICE=${VIDEORICE:-470865c6c64bdb44645faa88eae59cd87ce561b6} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} +M64PCOMPONENTS="core rom ui-console audio-sdl input-sdl rsp-hle video-glide64mk2 video-rice" + +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf ${SRCNAM}-$VERSION +mkdir -p ${SRCNAM}-$VERSION +cd ${SRCNAM}-$VERSION + +for COMPONENT in $M64PCOMPONENTS; do + mkdir -p ${SRCNAM}-$COMPONENT +done +tar xvf $CWD/${SRCNAM}-audio-sdl-$AUDIOSDL.tar.gz -C \ + ${SRCNAM}-audio-sdl --strip-components 1 +tar xvf $CWD/${SRCNAM}-core-$CORE.tar.gz -C \ + ${SRCNAM}-core --strip-components 1 +tar xvf $CWD/${SRCNAM}-input-sdl-$INPUTSDL.tar.gz -C \ + ${SRCNAM}-input-sdl --strip-components 1 +tar xvf $CWD/${SRCNAM}-rom-$ROM.tar.gz -C \ + ${SRCNAM}-rom --strip-components 1 +tar xvf $CWD/${SRCNAM}-rsp-hle-$RSPHLE.tar.gz -C \ + ${SRCNAM}-rsp-hle --strip-components 1 +tar xvf $CWD/${SRCNAM}-ui-console-$UICONSOLE.tar.gz -C \ + ${SRCNAM}-ui-console --strip-components 1 +tar xvf $CWD/${SRCNAM}-video-glide64mk2-$VIDEOGLIDE64MK2.tar.gz -C \ + ${SRCNAM}-video-glide64mk2 --strip-components 1 +tar xvf $CWD/${SRCNAM}-video-rice-$VIDEORICE.tar.gz -C \ + ${SRCNAM}-video-rice --strip-components 1 + +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +for COMPONENT in $M64PCOMPONENTS; do + if [ $COMPONENT = "core" ]; then + COMPONENTTYPE="library" + elif [ $COMPONENT = "rom" ]; then + echo "-------- Building test ROM --------" + mkdir -p $PKG/usr/share/$SRCNAM + cp mupen64plus-rom/m64p_test_rom.v64 $PKG/usr/share/$SRCNAM + continue + elif [ $COMPONENT = "ui-console" ]; then + COMPONENTTYPE="front-end" + else + COMPONENTTYPE="plugin" + fi + echo "-------- Building $COMPONENT $COMPONENTTYPE --------" + make -C ${SRCNAM}-$COMPONENT/projects/unix clean $@ + make -C ${SRCNAM}-$COMPONENT/projects/unix all $@ + echo "-------- Installing $COMPONENT $COMPONENTTYPE --------" + make -C ${SRCNAM}-$COMPONENT/projects/unix install $@ \ + PLUGINDIR=lib$LIBDIRSUFFIX/$SRCNAM \ + SHAREDIR=share/$SRCNAM \ + BINDIR=bin \ + MANDIR=man \ + LIBDIR=lib$LIBDIRSUFFIX \ + APPSDIR=share/applications \ + ICONSDIR=share/icons/hicolor \ + INCDIR=include/$SRCNAM \ + LDCONFIG=true \ + DESTDIR=$PKG/usr/ +done + +chmod +x $PKG/usr/lib$LIBDIRSUFFIX/lib${SRCNAM}.so.* +chmod +x $PKG/usr/lib$LIBDIRSUFFIX/$SRCNAM/${SRCNAM}-*.so + +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +find $PKG/usr/man -type f -exec gzip -9 {} \; +for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done + +for COMPONENT in $M64PCOMPONENTS; do + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/$SRCNAM-$COMPONENT + cp -a $SRCNAM-$COMPONENT/{AUTHORS,COPYING,CREDITS,LICENSES,README,README.md,RELEASE,doc,gpl-license,todo!.txt} \ + $PKG/usr/doc/$PRGNAM-$VERSION/$SRCNAM-$COMPONENT 2>/dev/null || : +done +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.$PKGTYPE diff --git a/games/mupen64plus-nightly/mupen64plus-nightly.info b/games/mupen64plus-nightly/mupen64plus-nightly.info new file mode 100644 index 0000000000000..0bba97b5e944b --- /dev/null +++ b/games/mupen64plus-nightly/mupen64plus-nightly.info @@ -0,0 +1,24 @@ +PRGNAM="mupen64plus-nightly" +VERSION="20230820_7d02ab9" +HOMEPAGE="https://mupen64plus.org" +DOWNLOAD="https://github.com/mupen64plus/mupen64plus-audio-sdl/archive/cec70e42b4535ce5bd1be24e7d816c54b3e75673/mupen64plus-audio-sdl-cec70e42b4535ce5bd1be24e7d816c54b3e75673.tar.gz \ + https://github.com/mupen64plus/mupen64plus-core/archive/7d02ab97bd13be9b1b58ee11a1d3df6919d89f17/mupen64plus-core-7d02ab97bd13be9b1b58ee11a1d3df6919d89f17.tar.gz \ + https://github.com/mupen64plus/mupen64plus-input-sdl/archive/b175a41675ba39ac3ce6f152355dca92d9d32207/mupen64plus-input-sdl-b175a41675ba39ac3ce6f152355dca92d9d32207.tar.gz \ + https://github.com/mupen64plus/mupen64plus-rom/archive/abd5b15498eb86101c2a56eb49460a264365b3ba/mupen64plus-rom-abd5b15498eb86101c2a56eb49460a264365b3ba.tar.gz \ + https://github.com/mupen64plus/mupen64plus-rsp-hle/archive/f22dc143771f1a0784c7d62977722a68fa0bdf85/mupen64plus-rsp-hle-f22dc143771f1a0784c7d62977722a68fa0bdf85.tar.gz \ + https://github.com/mupen64plus/mupen64plus-ui-console/archive/335e826aead146bd6a47d557d78b746e77f337c8/mupen64plus-ui-console-335e826aead146bd6a47d557d78b746e77f337c8.tar.gz \ + https://github.com/mupen64plus/mupen64plus-video-glide64mk2/archive/d900f2191575e01eb846a1009be71cbc1b413dba/mupen64plus-video-glide64mk2-d900f2191575e01eb846a1009be71cbc1b413dba.tar.gz \ + https://github.com/mupen64plus/mupen64plus-video-rice/archive/470865c6c64bdb44645faa88eae59cd87ce561b6/mupen64plus-video-rice-470865c6c64bdb44645faa88eae59cd87ce561b6.tar.gz" +MD5SUM="35f735dec7680464df5ef53424d15b6c \ + 3a15dd4a8a73d1d3f4d93a544a907980 \ + 133ec42704bfdacb89c0cc48ef756790 \ + 770dcedf923689804169a666681d658c \ + d4221769c8a3ec9e2826b71aedb65634 \ + 09f001255aa9ea8ce9ff57ee7cf64b8a \ + bf4680aa61b76a3d74343adbde5af3b8 \ + 62adbbfd8d26523d3f0e51ffcd060857" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="Steven Voges" +EMAIL="svoges.sbo@gmail.com" diff --git a/games/mupen64plus-nightly/slack-desc b/games/mupen64plus-nightly/slack-desc new file mode 100644 index 0000000000000..5d5a800ef3fd4 --- /dev/null +++ b/games/mupen64plus-nightly/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 ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +mupen64plus-nightly: mupen64plus-nightly (N64 emulator) +mupen64plus-nightly: +mupen64plus-nightly: Mupen64Plus is a plugin-based N64 emulator for Linux which is capable +mupen64plus-nightly: of accurately playing many games. Included are four MIPS R4300 CPU +mupen64plus-nightly: emulators, with dynamic recompilers for 32-bit x86 and 64-bit amd64 +mupen64plus-nightly: systems, and necessary plugins for audio, graphical rendering (RDP), +mupen64plus-nightly: signal co-processor (RSP), and input. +mupen64plus-nightly: +mupen64plus-nightly: Homepage: https://mupen64plus.org +mupen64plus-nightly: +mupen64plus-nightly: -- cgit v1.2.3