summaryrefslogtreecommitdiff
path: root/emulators/libretro-np2kai
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2018-08-14 16:44:07 +0000
committernia <nia@pkgsrc.org>2018-08-14 16:44:07 +0000
commit7cb4ba75da67bb8c21bd8f5c5b48e042ef68ae9e (patch)
tree7eeffd4f7a864f9d5232985f46cdc1f7749edd9d /emulators/libretro-np2kai
parent7bdf056c13e6e8e7e13015f7c5baf1ab67fb45b2 (diff)
downloadpkgsrc-7cb4ba75da67bb8c21bd8f5c5b48e042ef68ae9e.tar.gz
libretro-np2kai: add version 0.86.17
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. Neko Project II is a PC-9801 emulator. The PC-9800 series, commonly shortened to PC-98, is a line of Japanese 16-bit and 32-bit personal computers manufactured by NEC from 1982 through 2000.
Diffstat (limited to 'emulators/libretro-np2kai')
-rw-r--r--emulators/libretro-np2kai/DESCR9
-rw-r--r--emulators/libretro-np2kai/Makefile38
-rw-r--r--emulators/libretro-np2kai/PLIST2
-rw-r--r--emulators/libretro-np2kai/distinfo8
-rw-r--r--emulators/libretro-np2kai/patches/patch-sdl2_Makefile.libretro15
-rw-r--r--emulators/libretro-np2kai/patches/patch-sound_mame_driver.h25
6 files changed, 97 insertions, 0 deletions
diff --git a/emulators/libretro-np2kai/DESCR b/emulators/libretro-np2kai/DESCR
new file mode 100644
index 00000000000..61b077d6c7d
--- /dev/null
+++ b/emulators/libretro-np2kai/DESCR
@@ -0,0 +1,9 @@
+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.
+
+Neko Project II is a PC-9801 emulator. The PC-9800 series, commonly
+shortened to PC-98, is a line of Japanese 16-bit and 32-bit personal
+computers manufactured by NEC from 1982 through 2000.
diff --git a/emulators/libretro-np2kai/Makefile b/emulators/libretro-np2kai/Makefile
new file mode 100644
index 00000000000..c4299b095fd
--- /dev/null
+++ b/emulators/libretro-np2kai/Makefile
@@ -0,0 +1,38 @@
+# $NetBSD: Makefile,v 1.1 2018/08/14 16:44:07 nia Exp $
+
+NP2KAI_REV= 17
+DISTNAME= libretro-np2kai-0.86.${NP2KAI_REV}
+CATEGORIES= emulators
+MASTER_SITES= ${MASTER_SITE_GITHUB:=AZO234/}
+GITHUB_PROJECT= NP2kai
+GITHUB_TAG= rev.${NP2KAI_REV}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= https://docs.libretro.com/library/neko_project_ii_kai/
+COMMENT= Libretro core based on the Neko Project II PC-9801 emulator
+LICENSE= mit
+
+EXTRACT_USING= bsdtar
+BUILD_DIRS= sdl2
+MAKE_FILE= Makefile.libretro
+
+USE_TOOLS+= gmake
+USE_LANGUAGES= c c++
+
+MAKE_FLAGS+= GIT_VERSION="-pkgsrc"
+
+.include "../../mk/bsd.prefs.mk"
+
+# The networking code currently uses non-portable Linux-specific calls.
+.if ${OPSYS} != "Linux"
+MAKE_FLAGS= SUPPORT_NET=0
+.endif
+
+INSTALLATION_DIRS+= ${PREFIX}/lib/libretro
+
+do-install:
+ ${INSTALL_LIB} ${WRKSRC}/sdl2/np2kai_libretro.so \
+ ${DESTDIR}${PREFIX}/lib/libretro/np2kai_libretro.so
+
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/emulators/libretro-np2kai/PLIST b/emulators/libretro-np2kai/PLIST
new file mode 100644
index 00000000000..864aa6cad4f
--- /dev/null
+++ b/emulators/libretro-np2kai/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2018/08/14 16:44:07 nia Exp $
+lib/libretro/np2kai_libretro.so
diff --git a/emulators/libretro-np2kai/distinfo b/emulators/libretro-np2kai/distinfo
new file mode 100644
index 00000000000..12f27bb0386
--- /dev/null
+++ b/emulators/libretro-np2kai/distinfo
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1 2018/08/14 16:44:07 nia Exp $
+
+SHA1 (libretro-np2kai-0.86.17.tar.gz) = 0b55ecdac28dfc4124ba05669913f036d16547f8
+RMD160 (libretro-np2kai-0.86.17.tar.gz) = 0e443aa091498d1b1345422ef10b4b29b27e1e66
+SHA512 (libretro-np2kai-0.86.17.tar.gz) = 0102ff49c0fa3f9440fc998ef2a8062724d539279fcc1fd9b216de07e80db14535980401fec3e9d052eb338dfc47894ee64f4802daeabd6e89c14a92d0c9d617
+Size (libretro-np2kai-0.86.17.tar.gz) = 2449112 bytes
+SHA1 (patch-sdl2_Makefile.libretro) = 7c670340b4e552dc67ba025c85f49105eb4200c9
+SHA1 (patch-sound_mame_driver.h) = 7378846e2c15c445f56fd144077d48a5bd69327c
diff --git a/emulators/libretro-np2kai/patches/patch-sdl2_Makefile.libretro b/emulators/libretro-np2kai/patches/patch-sdl2_Makefile.libretro
new file mode 100644
index 00000000000..cd23dba17c5
--- /dev/null
+++ b/emulators/libretro-np2kai/patches/patch-sdl2_Makefile.libretro
@@ -0,0 +1,15 @@
+$NetBSD: patch-sdl2_Makefile.libretro,v 1.1 2018/08/14 16:44:08 nia Exp $
+
+Don't force -O3.
+
+--- sdl2/Makefile.libretro.orig 2018-07-12 22:06:17.000000000 +0000
++++ sdl2/Makefile.libretro
+@@ -235,7 +235,7 @@ endif
+ ifeq ($(DEBUG), 1)
+ COMMONFLAGS += -O0 -g
+ else
+-COMMONFLAGS += -O3 -DNDEBUG -DGIT_VERSION=\"$(GIT_VERSION)\"
++COMMONFLAGS += -DNDEBUG -DGIT_VERSION=\"$(GIT_VERSION)\"
+ endif
+
+ ifeq ($(HAVE_RUST),1)
diff --git a/emulators/libretro-np2kai/patches/patch-sound_mame_driver.h b/emulators/libretro-np2kai/patches/patch-sound_mame_driver.h
new file mode 100644
index 00000000000..48793a6d835
--- /dev/null
+++ b/emulators/libretro-np2kai/patches/patch-sound_mame_driver.h
@@ -0,0 +1,25 @@
+$NetBSD: patch-sound_mame_driver.h,v 1.1 2018/08/14 16:44:08 nia Exp $
+
+Use the standard keyword for making a function inline.
+
+--- sound/mame/driver.h.orig 2018-07-12 22:06:17.000000000 +0000
++++ sound/mame/driver.h
+@@ -8,17 +8,7 @@
+ #define HAS_Y8950 1
+ #define HAS_YMF262 1
+
+-#if defined(_MSC_VER)
+-#pragma warning(disable: 4244)
+-#pragma warning(disable: 4245)
+-#define INLINE __inline
+-#elif defined(__BORLANDC__)
+-#define INLINE __inline
+-#elif defined(__GNUC__)
+-#define INLINE __inline__ __attribute__((always_inline))
+-#else
+-#define INLINE
+-#endif
++#define INLINE inline
+
+ #define logerror(x,y,z)
+ //typedef signed int stream_sample_t;