aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--games/jg-melonds/README17
-rw-r--r--games/jg-melonds/jg-melonds.SlackBuild81
-rw-r--r--games/jg-melonds/jg-melonds.info10
-rw-r--r--games/jg-melonds/slack-desc19
4 files changed, 127 insertions, 0 deletions
diff --git a/games/jg-melonds/README b/games/jg-melonds/README
new file mode 100644
index 0000000000000..8ca6f2f3abed2
--- /dev/null
+++ b/games/jg-melonds/README
@@ -0,0 +1,17 @@
+jg-melonds (Nintendo DS/DSi emulation core for Jolly Good Emulation)
+
+melonDS is an emulator for the Nintendo DS and DSi. The Jolly Good API
+port is designed for use with content for the Nintendo DS. Source for
+the emulator core is unmodified from upstream sources.
+
+Filenames supported: .nds .dsi
+To run files with other extensions: jollygood -c melonds <filename>
+
+By default, no controls are mapped. The first time you run a game,
+press Shift-1 to configure the first controller.
+
+Note: the touchscreen is emulated with the mouse. Press Shift-2 to
+configure it, then click the mouse button you want to use (probably
+the left one). Mouse control is easier to use when running fullscreen.
+
+Note: this core doesn't build on 32-bit x86.
diff --git a/games/jg-melonds/jg-melonds.SlackBuild b/games/jg-melonds/jg-melonds.SlackBuild
new file mode 100644
index 0000000000000..14db000a5cd63
--- /dev/null
+++ b/games/jg-melonds/jg-melonds.SlackBuild
@@ -0,0 +1,81 @@
+#!/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-melonds
+SRCNAM=melonds
+VERSION=${VERSION:-0.9.5}
+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" \
+ LDFLAGS="-lpthread" \
+ 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-melonds/jg-melonds.info b/games/jg-melonds/jg-melonds.info
new file mode 100644
index 0000000000000..0ee14f8808b43
--- /dev/null
+++ b/games/jg-melonds/jg-melonds.info
@@ -0,0 +1,10 @@
+PRGNAM="jg-melonds"
+VERSION="0.9.5"
+HOMEPAGE="https://jgemu.gitlab.io/"
+DOWNLOAD="UNSUPPORTED"
+MD5SUM=""
+DOWNLOAD_x86_64="https://gitlab.com/jgemu/melonds/-/archive/0.9.5/melonds-0.9.5.tar.gz"
+MD5SUM_x86_64="e5eafffb2858b4809c0c7a2aad3dc1d7"
+REQUIRES="jollygood"
+MAINTAINER="B. Watson"
+EMAIL="urchlay@slackware.uk"
diff --git a/games/jg-melonds/slack-desc b/games/jg-melonds/slack-desc
new file mode 100644
index 0000000000000..d2cfe43b5af74
--- /dev/null
+++ b/games/jg-melonds/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-melonds: jg-melonds (Nintendo DS/DSi emulation core for Jolly Good Emulation)
+jg-melonds:
+jg-melonds: melonDS is an emulator for the Nintendo DS and DSi. The Jolly Good API
+jg-melonds: port is designed for use with content for the Nintendo DS. Source for
+jg-melonds: the emulator core is unmodified from upstream sources.
+jg-melonds:
+jg-melonds:
+jg-melonds:
+jg-melonds:
+jg-melonds:
+jg-melonds: