games/nestopia: Add libretro core build.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
parent
540ae9e733
commit
f37d3c7399
|
@ -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
|
A Disk System BIOS (disksys.rom) is optional and, of course, not included. If
|
||||||
you have one, put it in ~/.nestopia
|
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
|
/usr/share/nestopia/NstDatabase.xml
|
||||||
instead. SlackBuilds can be found here:
|
|
||||||
|
|
||||||
https://github.com/duganchen/slackware-libretro
|
Note: parallel building is supported with a max of 2 jobs.
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
if [ -x /usr/bin/update-desktop-database ]; then
|
if [ -x /usr/bin/update-desktop-database ]; then
|
||||||
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
|
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
|
||||||
fi
|
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
|
||||||
|
|
|
@ -5,8 +5,9 @@
|
||||||
# Written by Dugan Chen (thedoogster@gmail.com)
|
# Written by Dugan Chen (thedoogster@gmail.com)
|
||||||
|
|
||||||
PRGNAM=nestopia
|
PRGNAM=nestopia
|
||||||
|
LIBNAM=${PRGNAM}_libretro
|
||||||
VERSION=${VERSION:-1.48}
|
VERSION=${VERSION:-1.48}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-2}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
if [ -z "$ARCH" ]; then
|
if [ -z "$ARCH" ]; then
|
||||||
|
@ -22,8 +23,8 @@ TMP=${TMP:-/tmp/SBo}
|
||||||
PKG=$TMP/package-$PRGNAM
|
PKG=$TMP/package-$PRGNAM
|
||||||
OUTPUT=${OUTPUT:-/tmp}
|
OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
|
||||||
if [ "$ARCH" = "i486" ]; then
|
if [ "$ARCH" = "i586" ]; then
|
||||||
SLKCFLAGS="-O3 -march=i486 -mtune=i686"
|
SLKCFLAGS="-O3 -march=i586 -mtune=i686"
|
||||||
LIBDIRSUFFIX=""
|
LIBDIRSUFFIX=""
|
||||||
elif [ "$ARCH" = "i686" ]; then
|
elif [ "$ARCH" = "i686" ]; then
|
||||||
SLKCFLAGS="-O3 -march=i686 -mtune=i686"
|
SLKCFLAGS="-O3 -march=i686 -mtune=i686"
|
||||||
|
@ -67,8 +68,16 @@ cd build
|
||||||
make install DESTDIR=$PKG
|
make install DESTDIR=$PKG
|
||||||
cd ..
|
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
|
mkdir -p $PKG/usr/doc
|
||||||
mv $PKG/usr/share/doc/$PRGNAM $PKG/usr/doc/$PRGNAM-$VERSION
|
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 \
|
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
|
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
PRGNAM="nestopia"
|
PRGNAM="nestopia"
|
||||||
VERSION="1.48"
|
VERSION="1.48"
|
||||||
HOMEPAGE="http://0ldsk00l.ca/nestopia/"
|
HOMEPAGE="http://0ldsk00l.ca/nestopia/"
|
||||||
DOWNLOAD="http://downloads.sourceforge.net/project/nestopiaue/1.48/nestopia-1.48.tgz"
|
DOWNLOAD="http://downloads.sourceforge.net/project/nestopiaue/1.48/nestopia-1.48.tgz \
|
||||||
MD5SUM="028172125a16625f51d470293babacb2"
|
https://raw.githubusercontent.com/libretro/libretro-super/392247c/dist/info/nestopia_libretro.info"
|
||||||
|
MD5SUM="028172125a16625f51d470293babacb2 \
|
||||||
|
167b9a50a7e6eb0b272bec7e9dd6cc6b"
|
||||||
DOWNLOAD_x86_64=""
|
DOWNLOAD_x86_64=""
|
||||||
MD5SUM_x86_64=""
|
MD5SUM_x86_64=""
|
||||||
REQUIRES="SDL2"
|
REQUIRES="SDL2"
|
||||||
|
|
Loading…
Reference in New Issue