Fri Apr 10 03:16:18 2015 UTC ()
Add libretro-nestopia, a retroarch core based on the nestopia (undead
edition) emulator.
(snj)
diff -r0 -r1.1 pkgsrc/emulators/libretro-nestopia/DESCR
diff -r0 -r1.1 pkgsrc/emulators/libretro-nestopia/Makefile
diff -r0 -r1.1 pkgsrc/emulators/libretro-nestopia/PLIST
diff -r0 -r1.1 pkgsrc/emulators/libretro-nestopia/distinfo
diff -r0 -r1.1 pkgsrc/emulators/libretro-nestopia/patches/patch-libretro_Makefile
diff -r0 -r1.1 pkgsrc/emulators/libretro-nestopia/patches/patch-libretro_libretro.cpp
Libretro is a simple but powerful development interface that allows for the
easy creation of emulators, games and multimedia applications that can plug
straight into any libretro-compatible frontend. This development interface is
open to others so that they can run these pluggable emulator and game cores
also in their own programs or devices.
This core is based on the Nestopia UE (Undead Edition) Nintendo Entertainment
System emulator.
# $NetBSD: Makefile,v 1.1 2015/04/10 03:16:17 snj Exp $
DISTNAME= 2c586b592597751f015ac30e05d2a180a1ffd723
PKGNAME= libretro-nestopia-20150319
CATEGORIES= emulators
MASTER_SITES= ${MASTER_SITE_GITHUB:=libretro/nestopia/archive/}
EXTRACT_SUFX= .zip
MAINTAINER= snj@NetBSD.org
HOMEPAGE= https://github.com/libretro/nestopia
COMMENT= Libretro core based on the Nestopia UE emulator
LICENSE= gnu-gpl-v2
WRKSRC= ${WRKDIR}/nestopia-${DISTNAME}
BUILD_DIRS= libretro
USE_LANGUAGES= c c++
USE_TOOLS+= gmake
INSTALLATION_DIRS+= ${PREFIX}/lib/libretro
INSTALLATION_DIRS+= share/libretro-nestopia
CFLAGS+= -DPREFIX=\"${PREFIX}\"
do-install:
${INSTALL_LIB} ${WRKSRC}/libretro/nestopia_libretro.so \
${DESTDIR}${PREFIX}/lib/libretro/nestopia_libretro.so
${INSTALL_DATA} ${WRKSRC}/NstDatabase.xml \
${DESTDIR}${PREFIX}/share/libretro-nestopia
.include "../../mk/bsd.pkg.mk"
@comment $NetBSD: PLIST,v 1.1 2015/04/10 03:16:18 snj Exp $
lib/libretro/nestopia_libretro.so
share/libretro-nestopia/NstDatabase.xml
$NetBSD: distinfo,v 1.1 2015/04/10 03:16:18 snj Exp $
SHA1 (2c586b592597751f015ac30e05d2a180a1ffd723.zip) = e1d97ba63472ab41afd7439cd1b839ce8704bf9b
RMD160 (2c586b592597751f015ac30e05d2a180a1ffd723.zip) = 1b61cf3f745d84f748222fe4de9b1985f4a7d9f9
Size (2c586b592597751f015ac30e05d2a180a1ffd723.zip) = 2161787 bytes
SHA1 (patch-libretro_Makefile) = b9ab72caf2b42158e8adbf705cede20cd9ceb42b
SHA1 (patch-libretro_libretro.cpp) = c8887390e4d0ac4b82ddfa87154303778f1567d6
$NetBSD: patch-libretro_Makefile,v 1.1 2015/04/10 03:16:18 snj Exp $
Don't pass -O3 unconditionally.
--- libretro/Makefile.orig 2015-04-09 20:00:41.000000000 -0700
+++ libretro/Makefile 2015-04-09 20:00:50.000000000 -0700
@@ -196,9 +196,6 @@ ifeq ($(DEBUG), 1)
else ifeq ($(platform), ps3)
CFLAGS += -O2
CXXFLAGS += -O2
-else
- CFLAGS += -O3
- CXXFLAGS += -O3
endif
CORE_DIR = ..
$NetBSD: patch-libretro_libretro.cpp,v 1.1 2015/04/10 03:16:18 snj Exp $
retroarch normally expects to find the NstDatabase.xml file in
~/.config/retroarch/bios, but there's no real reason to be editing it.
Rather than have users manually copy the file into place, we install it
system-wide and look for it there instead.
--- libretro/libretro.cpp.orig 2015-03-19 19:54:18.000000000 -0700
+++ libretro/libretro.cpp 2015-03-29 23:31:42.000000000 -0700
@@ -624,7 +624,7 @@ bool retro_load_game(const struct retro_
if (!environ_cb(RETRO_ENVIRONMENT_GET_OVERSCAN, &use_overscan))
use_overscan = true;
- snprintf(db_path, sizeof(db_path), "%s%cNstDatabase.xml", dir, slash);
+ snprintf(db_path, sizeof(db_path), "%s/share/libretro-nestopia/NstDatabase.xml", PREFIX);
if (log_cb)
log_cb(RETRO_LOG_INFO, "NstDatabase.xml path: %s\n", db_path);