pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/emulators libretro-desmume: add version 20180807.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2af2119dd345
branches:  trunk
changeset: 311447:2af2119dd345
user:      nia <nia%pkgsrc.org@localhost>
date:      Sat Aug 11 12:57:23 2018 +0000

description:
libretro-desmume: add version 20180807.

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.

DeSmuME is a Nintendo DS emulator.

diffstat:

 emulators/Makefile                                                                       |   3 +-
 emulators/libretro-desmume/DESCR                                                         |   7 +
 emulators/libretro-desmume/MESSAGE                                                       |   9 ++
 emulators/libretro-desmume/Makefile                                                      |  44 ++++++++++
 emulators/libretro-desmume/PLIST                                                         |   2 +
 emulators/libretro-desmume/distinfo                                                      |   7 +
 emulators/libretro-desmume/patches/patch-desmume_src_frontend_libretro_Makefile.libretro |  17 +++
 7 files changed, 88 insertions(+), 1 deletions(-)

diffs (127 lines):

diff -r 024d0074d116 -r 2af2119dd345 emulators/Makefile
--- a/emulators/Makefile        Sat Aug 11 01:22:38 2018 +0000
+++ b/emulators/Makefile        Sat Aug 11 12:57:23 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.263 2018/08/11 00:32:25 nia Exp $
+# $NetBSD: Makefile,v 1.264 2018/08/11 12:57:23 nia Exp $
 #
 
 COMMENT=       Emulators for other operating systems
@@ -93,6 +93,7 @@
 SUBDIR+=       libretro-beetle-psx
 SUBDIR+=       libretro-core-info
 SUBDIR+=       libretro-database
+SUBDIR+=       libretro-desmume
 SUBDIR+=       libretro-fceumm
 SUBDIR+=       libretro-gambatte
 SUBDIR+=       libretro-glsl-shaders
diff -r 024d0074d116 -r 2af2119dd345 emulators/libretro-desmume/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/libretro-desmume/DESCR  Sat Aug 11 12:57:23 2018 +0000
@@ -0,0 +1,7 @@
+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.
+
+DeSmuME is a Nintendo DS emulator.
diff -r 024d0074d116 -r 2af2119dd345 emulators/libretro-desmume/MESSAGE
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/libretro-desmume/MESSAGE        Sat Aug 11 12:57:23 2018 +0000
@@ -0,0 +1,9 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1 2018/08/11 12:57:23 nia Exp $
+
+This package is not PaX MPROTECT-safe, because of its just-in-time
+compiler.
+
+MPROTECT must be disabled for RetroArch for this core to be usable.
+
+===========================================================================
diff -r 024d0074d116 -r 2af2119dd345 emulators/libretro-desmume/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/libretro-desmume/Makefile       Sat Aug 11 12:57:23 2018 +0000
@@ -0,0 +1,44 @@
+# $NetBSD: Makefile,v 1.1 2018/08/11 12:57:23 nia Exp $
+
+DISTNAME=      libretro-desmume-20180807
+CATEGORIES=    emulators
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=libretro/}
+GITHUB_PROJECT=        desmume
+GITHUB_TAG=    f546d2dd15c8c8c44907e4332339c36d9f8319d5
+
+MAINTAINER=    nia%NetBSD.org@localhost
+HOMEPAGE=      https://docs.libretro.com/library/desmume/
+COMMENT=       Libretro core based on the Desmume Nintendo DS emulator
+LICENSE=       gnu-gpl-v2
+
+EXTRACT_USING= bsdtar
+BUILD_DIRS=    desmume/src/frontend/libretro
+MAKE_FILE=     Makefile.libretro
+USE_TOOLS+=    gmake
+USE_LANGUAGES= c c++
+
+.include "../../mk/bsd.prefs.mk"
+
+.if !empty(MACHINE_ARCH:M*arm*)
+CXXFLAGS+=             -marm
+CXXFLAGS+=             -DUSE_POSIX_MEMALIGN -D__RETRO_ARM__
+CXXFLAGS+=             -DARM
+MAKE_FLAGS+=           DESMUME_JIT=0
+MAKE_FLAGS+=           DESMUME_JIT_ARM=1
+.elif !empty(MACHINE_ARCH:M*x86_64*) || !empty(MACHINE_ARCH:M*i386*)
+MAKE_FLAGS+=           DESMUME_JIT=1
+.else
+MAKE_FLAGS+=           DESMUME_JIT=0
+.endif
+
+MAKE_FLAGS+=           GIT_VERSION="-pkgsrc"
+INSTALLATION_DIRS+=    ${PREFIX}/lib/libretro
+
+do-install:
+       ${INSTALL_LIB} \
+           ${WRKSRC}/desmume/src/frontend/libretro/desmume_libretro.so \
+           ${DESTDIR}${PREFIX}/lib/libretro/desmume_libretro.so
+
+.include "../../graphics/MesaLib/buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 024d0074d116 -r 2af2119dd345 emulators/libretro-desmume/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/libretro-desmume/PLIST  Sat Aug 11 12:57:23 2018 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2018/08/11 12:57:23 nia Exp $
+lib/libretro/desmume_libretro.so
diff -r 024d0074d116 -r 2af2119dd345 emulators/libretro-desmume/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/libretro-desmume/distinfo       Sat Aug 11 12:57:23 2018 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2018/08/11 12:57:23 nia Exp $
+
+SHA1 (libretro-desmume-20180807-f546d2dd15c8c8c44907e4332339c36d9f8319d5.tar.gz) = 424bb309d45c6b03fd6f73a092216c2d36693bc3
+RMD160 (libretro-desmume-20180807-f546d2dd15c8c8c44907e4332339c36d9f8319d5.tar.gz) = 214cebd199ff971c9de17230ae0f3eb3ebdaf402
+SHA512 (libretro-desmume-20180807-f546d2dd15c8c8c44907e4332339c36d9f8319d5.tar.gz) = 
18019a58acdd87d6dc811b27c74e425c417188257ec41f135dde9c005668462a089aceed5783434a49e5706cf6c4a504cfaf22cd7e6f356a084091ac91c039eb
+Size (libretro-desmume-20180807-f546d2dd15c8c8c44907e4332339c36d9f8319d5.tar.gz) = 11225998 bytes
+SHA1 (patch-desmume_src_frontend_libretro_Makefile.libretro) = 8d43c8c404e0a828d79ce7d16265e95ec70c4525
diff -r 024d0074d116 -r 2af2119dd345 emulators/libretro-desmume/patches/patch-desmume_src_frontend_libretro_Makefile.libretro
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/libretro-desmume/patches/patch-desmume_src_frontend_libretro_Makefile.libretro  Sat Aug 11 12:57:23 2018 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-desmume_src_frontend_libretro_Makefile.libretro,v 1.1 2018/08/11 12:57:24 nia Exp $
+
+Don't pass -O3 unconditionally.
+
+--- desmume/src/frontend/libretro/Makefile.libretro.orig       2018-08-07 06:05:43.000000000 +0000
++++ desmume/src/frontend/libretro/Makefile.libretro
+@@ -451,8 +451,8 @@ else
+         CFLAGS += -O2 -DNDEBUG
+         CXXFLAGS += -O2 -DNDEBUG
+     else
+-        CFLAGS += -O3 -DNDEBUG
+-        CXXFLAGS += -O3 -DNDEBUG
++        CFLAGS += -DNDEBUG
++        CXXFLAGS += -DNDEBUG
+     endif
+ endif
+ 



Home | Main Index | Thread Index | Old Index