Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/emulators emulators: Add libretro-parallel-n64



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a23a37c0b999
branches:  trunk
changeset: 433177:a23a37c0b999
user:      nia <nia%pkgsrc.org@localhost>
date:      Sun May 31 16:03:04 2020 +0000

description:
emulators: Add libretro-parallel-n64

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.

Parallel N64 is an optimized/rewritten Nintendo 64 emulator made specifically
for Libretro. It was originally based on Mupen64 Plus.

diffstat:

 emulators/Makefile                         |   3 +-
 emulators/libretro-parallel-n64/DESCR      |   8 +++++
 emulators/libretro-parallel-n64/Makefile   |  43 ++++++++++++++++++++++++++++++
 emulators/libretro-parallel-n64/PLIST      |   2 +
 emulators/libretro-parallel-n64/distinfo   |   6 ++++
 emulators/libretro-parallel-n64/options.mk |  25 +++++++++++++++++
 6 files changed, 86 insertions(+), 1 deletions(-)

diffs (121 lines):

diff -r 7a3a25ff9cdd -r a23a37c0b999 emulators/Makefile
--- a/emulators/Makefile        Sun May 31 15:55:16 2020 +0000
+++ b/emulators/Makefile        Sun May 31 16:03:04 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.320 2020/05/31 15:22:17 nia Exp $
+# $NetBSD: Makefile,v 1.321 2020/05/31 16:03:04 nia Exp $
 #
 
 COMMENT=       Emulators for other operating systems
@@ -119,6 +119,7 @@
 SUBDIR+=       libretro-nestopia
 SUBDIR+=       libretro-np2kai
 SUBDIR+=       libretro-o2em
+SUBDIR+=       libretro-parallel-n64
 SUBDIR+=       libretro-pcsx-rearmed
 SUBDIR+=       libretro-picodrive
 SUBDIR+=       libretro-ppsspp
diff -r 7a3a25ff9cdd -r a23a37c0b999 emulators/libretro-parallel-n64/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/libretro-parallel-n64/DESCR     Sun May 31 16:03:04 2020 +0000
@@ -0,0 +1,8 @@
+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.
+
+Parallel N64 is an optimized/rewritten Nintendo 64 emulator made specifically
+for Libretro. It was originally based on Mupen64 Plus.
diff -r 7a3a25ff9cdd -r a23a37c0b999 emulators/libretro-parallel-n64/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/libretro-parallel-n64/Makefile  Sun May 31 16:03:04 2020 +0000
@@ -0,0 +1,43 @@
+# $NetBSD: Makefile,v 1.1 2020/05/31 16:03:04 nia Exp $
+
+DISTNAME=      libretro-parallel-n64-20200528
+CATEGORIES=    emulators
+GITHUB_PROJECT=        parallel-n64
+GITHUB_TAG=    9dd669e2f63b320c5942f2fe0b2df275dba99393
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/libretro/parallel-n64
+COMMENT=       Libretro core based on the Parallel N64 emulator
+LICENSE=       gnu-gpl-v2
+
+USE_LANGUAGES= c c++
+LIBRETRO_CORE= parallel_n64
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${MACHINE_ARCH} == "i386"
+MAKE_FLAGS+=   WITH_DYNAREC=x86
+.elif ${MACHINE_ARCH} == "x86_64"
+MAKE_FLAGS+=   WITH_DYNAREC=x86_64
+.elif ${MACHINE_ARCH} == "aarch64"
+MAKE_FLAGS+=   WITH_DYNAREC=aarch64
+MAKE_FLAGS+=   HAVE_NEON=0
+CFLAGS+=       -DNO_ASM -DARM_FIX
+.elif ${MACHINE_ARCH} == "earmv7hf"
+MAKE_FLAGS+=   WITH_DYNAREC=arm
+MAKE_FLAGS+=   HAVE_NEON=1
+CFLAGS+=       -DNO_ASM -DARM_FIX
+.elif !empty(MACHINE_ARCH:M*arm*)
+MAKE_FLAGS+=   WITH_DYNAREC=arm
+MAKE_FLAGS+=   HAVE_NEON=0
+CFLAGS+=       -DNO_ASM -DARM_FIX
+.else
+MAKE_FLAGS+=   WITH_DYNAREC=
+CFLAGS+=       -DNO_ASM
+.endif
+
+BUILDLINK_TRANSFORM.SunOS+=    rm:-Wl,--version-script=./libretro/link.T
+
+.include "options.mk"
+.include "../../emulators/retroarch/core.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 7a3a25ff9cdd -r a23a37c0b999 emulators/libretro-parallel-n64/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/libretro-parallel-n64/PLIST     Sun May 31 16:03:04 2020 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2020/05/31 16:03:04 nia Exp $
+lib/libretro/parallel_n64_libretro.${SOEXT}
diff -r 7a3a25ff9cdd -r a23a37c0b999 emulators/libretro-parallel-n64/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/libretro-parallel-n64/distinfo  Sun May 31 16:03:04 2020 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2020/05/31 16:03:04 nia Exp $
+
+SHA1 (libretro-parallel-n64-20200528-9dd669e2f63b320c5942f2fe0b2df275dba99393.tar.gz) = 4de30bb786cc61c5785eb3337abe8943b55ae474
+RMD160 (libretro-parallel-n64-20200528-9dd669e2f63b320c5942f2fe0b2df275dba99393.tar.gz) = 03ea1e768e32be5284863d748dc417d39c5cb0fd
+SHA512 (libretro-parallel-n64-20200528-9dd669e2f63b320c5942f2fe0b2df275dba99393.tar.gz) = 
bc7acd7d9401883ceb834e1ec3ab3fe958ffea6bba4101e25cb983b20b48fdf3f22b20a753c82eaf411240aab5bd459c9880bf52672f38d582a8f072cf76f7e9
+Size (libretro-parallel-n64-20200528-9dd669e2f63b320c5942f2fe0b2df275dba99393.tar.gz) = 5509190 bytes
diff -r 7a3a25ff9cdd -r a23a37c0b999 emulators/libretro-parallel-n64/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/libretro-parallel-n64/options.mk        Sun May 31 16:03:04 2020 +0000
@@ -0,0 +1,25 @@
+# $NetBSD: options.mk,v 1.1 2020/05/31 16:03:04 nia Exp $
+
+PKG_OPTIONS_VAR=               PKG_OPTIONS.libretro-parallel-n64
+PKG_OPTIONS_OPTIONAL_GROUPS=   gl
+PKG_OPTIONS_GROUP.gl=          opengl
+
+.include "../../mk/bsd.fast.prefs.mk"
+
+.if ${OPSYS} == "NetBSD" && !empty(MACHINE_ARCH:M*arm*)
+PKG_OPTIONS_GROUP.gl+=         rpi
+.endif
+
+PKG_SUGGESTED_OPTIONS+=                opengl
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mopengl)
+.  include "../../graphics/MesaLib/buildlink3.mk"
+.elif !empty(PKG_OPTIONS:Mrpi)
+MAKE_FLAGS+=   GLES=1
+MAKE_FLAGS+=   GL_LIB="-lbrcmGLESv2"
+.  include "../../misc/raspberrypi-userland/buildlink3.mk"
+.else
+MAKE_FLAGS+=   HAVE_OPENGL=0
+.endif



Home | Main Index | Thread Index | Old Index