games/nestopia: Add libretro core build.

Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
Dugan Chen 2018-04-05 16:12:20 +01:00 committed by Willy Sudiarto Raharjo
parent 540ae9e733
commit f37d3c7399
4 changed files with 27 additions and 9 deletions

View File

@ -7,9 +7,10 @@ A 1Ghz CPU and 128MB RAM are required to get the best performance.
A Disk System BIOS (disksys.rom) is optional and, of course, not included. If
you have one, put it in ~/.nestopia
Note 1: parallel building is supported with a max of 2 jobs.
This builds both the standalone application and the Libretro core (for use
with RetroArch). To use the Libretro core, one step is to copy the following
file to your RetroArch BIOS directory:
Note 2: To play NES games, consider using RetroArch with the Nestopia core
instead. SlackBuilds can be found here:
/usr/share/nestopia/NstDatabase.xml
https://github.com/duganchen/slackware-libretro
Note: parallel building is supported with a max of 2 jobs.

View File

@ -1,3 +1,9 @@
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
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

View File

@ -5,8 +5,9 @@
# Written by Dugan Chen (thedoogster@gmail.com)
PRGNAM=nestopia
LIBNAM=${PRGNAM}_libretro
VERSION=${VERSION:-1.48}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@ -22,8 +23,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O3 -march=i486 -mtune=i686"
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O3 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O3 -march=i686 -mtune=i686"
@ -67,8 +68,16 @@ cd build
make install DESTDIR=$PKG
cd ..
make -C libretro
install -Dm0644 libretro/$LIBNAM.so \
$PKG/usr/lib${LIBDIRSUFFIX}/libretro/$LIBNAM.so
install -Dm0644 $CWD/$LIBNAM.info \
$PKG/usr/lib${LIBDIRSUFFIX}/libretro/info/$LIBNAM.info
mkdir -p $PKG/usr/doc
mv $PKG/usr/share/doc/$PRGNAM $PKG/usr/doc/$PRGNAM-$VERSION
rmdir $PKG/usr/share/doc
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

View File

@ -1,8 +1,10 @@
PRGNAM="nestopia"
VERSION="1.48"
HOMEPAGE="http://0ldsk00l.ca/nestopia/"
DOWNLOAD="http://downloads.sourceforge.net/project/nestopiaue/1.48/nestopia-1.48.tgz"
MD5SUM="028172125a16625f51d470293babacb2"
DOWNLOAD="http://downloads.sourceforge.net/project/nestopiaue/1.48/nestopia-1.48.tgz \
https://raw.githubusercontent.com/libretro/libretro-super/392247c/dist/info/nestopia_libretro.info"
MD5SUM="028172125a16625f51d470293babacb2 \
167b9a50a7e6eb0b272bec7e9dd6cc6b"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="SDL2"