From 05aa349bb5960b27bb186cd007742943ea27e31e Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sun, 22 Jan 2023 10:31:36 +0000 Subject: games/jg-genplus: Added (Sega emu core for Jolly Good Emu) Signed-off-by: bedlam Signed-off-by: Willy Sudiarto Raharjo --- games/jg-genplus/README | 11 +++++ games/jg-genplus/jg-genplus.SlackBuild | 80 ++++++++++++++++++++++++++++++++++ games/jg-genplus/jg-genplus.info | 10 +++++ games/jg-genplus/slack-desc | 19 ++++++++ 4 files changed, 120 insertions(+) create mode 100644 games/jg-genplus/README create mode 100644 games/jg-genplus/jg-genplus.SlackBuild create mode 100644 games/jg-genplus/jg-genplus.info create mode 100644 games/jg-genplus/slack-desc (limited to 'games/jg-genplus') diff --git a/games/jg-genplus/README b/games/jg-genplus/README new file mode 100644 index 0000000000000..f51181a0856c3 --- /dev/null +++ b/games/jg-genplus/README @@ -0,0 +1,11 @@ +jg-genplus (Sega emulation core for Jolly Good Emulation) + +Genesis Plus GX is an emulator for multiple Sega game systems: +SG-1000, Sega Master System/Mark III, Sega Game Gear, Sega Mega +Drive/Genesis, Mega-CD/Sega CD. + +Filenames supported: .md .smd .sra +To run files with other extensions: jollygood -c genplus + +By default, no controls are mapped. The first time you run a game, +press Shift-1 to configure the first controller. diff --git a/games/jg-genplus/jg-genplus.SlackBuild b/games/jg-genplus/jg-genplus.SlackBuild new file mode 100644 index 0000000000000..f96a0aeb8e6b8 --- /dev/null +++ b/games/jg-genplus/jg-genplus.SlackBuild @@ -0,0 +1,80 @@ +#!/bin/bash + +# Slackware build script for jollycv + +# Written by B. Watson (urchlay@slackware.uk) + +# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. + +cd $(dirname $0) ; CWD=$(pwd) + +PRGNAM=jg-genplus +SRCNAM=genplus +VERSION=${VERSION:-1.7.6.2} +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} + +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 +tar xvf $CWD/$SRCNAM-$VERSION.tar.gz +cd $SRCNAM-$VERSION +chown -R root:root . +find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ + +LIBDIR=/usr/lib$LIBDIRSUFFIX +PKGLIB=$PKG/$LIBDIR +DOCDIR=/usr/doc/$PRGNAM-$VERSION +PKGDOC=$PKG/$DOCDIR + +make -C jollygood install-strip \ + CFLAGS="$SLKCFLAGS" \ + DESTDIR=$PKG \ + PREFIX=/usr \ + DATAROOTDIR=/usr/share \ + DOCDIR=$DOCDIR \ + LIBDIR=$LIBDIR + +cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/games/jg-genplus/jg-genplus.info b/games/jg-genplus/jg-genplus.info new file mode 100644 index 0000000000000..014f7beac5123 --- /dev/null +++ b/games/jg-genplus/jg-genplus.info @@ -0,0 +1,10 @@ +PRGNAM="jg-genplus" +VERSION="1.7.6.2" +HOMEPAGE="https://jgemu.gitlab.io/" +DOWNLOAD="https://gitlab.com/jgemu/genplus/-/archive/1.7.6.2/genplus-1.7.6.2.tar.gz" +MD5SUM="5b83d3021bbdb7a994671498a0b97f14" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="jollygood" +MAINTAINER="B. Watson" +EMAIL="urchlay@slackware.uk" diff --git a/games/jg-genplus/slack-desc b/games/jg-genplus/slack-desc new file mode 100644 index 0000000000000..92d71047446b3 --- /dev/null +++ b/games/jg-genplus/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------------------------------------------------------| +jg-genplus: jg-genplus (Sega emulation core for Jolly Good Emulation) +jg-genplus: +jg-genplus: Genesis Plus GX is an emulator for multiple Sega game systems: +jg-genplus: SG-1000, Sega Master System/Mark III, Sega Game Gear, Sega Mega +jg-genplus: Drive/Genesis, Mega-CD/Sega CD. +jg-genplus: +jg-genplus: +jg-genplus: +jg-genplus: +jg-genplus: +jg-genplus: -- cgit v1.2.3