pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/emulators Add mednaffe version 0.8.8 as emulators/medn...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/89f8bede9816
branches:  trunk
changeset: 397931:89f8bede9816
user:      nia <nia%pkgsrc.org@localhost>
date:      Sun Jul 07 13:32:18 2019 +0000

description:
Add mednaffe version 0.8.8 as emulators/mednaffe.

Mednaffe is a graphical front-end for the Mednafen multi-system emulator.

It allows all of Mednafen's options to be configured, and provides simple
game management features.

diffstat:

 emulators/Makefile                           |   3 ++-
 emulators/mednaffe/DESCR                     |   4 ++++
 emulators/mednaffe/MESSAGE.NetBSD            |  10 ++++++++++
 emulators/mednaffe/Makefile                  |  21 +++++++++++++++++++++
 emulators/mednaffe/PLIST                     |  14 ++++++++++++++
 emulators/mednaffe/distinfo                  |   7 +++++++
 emulators/mednaffe/options.mk                |  17 +++++++++++++++++
 emulators/mednaffe/patches/patch-src_input.c |  22 ++++++++++++++++++++++
 8 files changed, 97 insertions(+), 1 deletions(-)

diffs (140 lines):

diff -r c93147b88078 -r 89f8bede9816 emulators/Makefile
--- a/emulators/Makefile        Sun Jul 07 12:50:30 2019 +0000
+++ b/emulators/Makefile        Sun Jul 07 13:32:18 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.298 2019/06/18 20:50:05 nia Exp $
+# $NetBSD: Makefile,v 1.299 2019/07/07 13:32:18 nia Exp $
 #
 
 COMMENT=       Emulators for other operating systems
@@ -138,6 +138,7 @@
 SUBDIR+=       makeppf
 SUBDIR+=       mame
 SUBDIR+=       mednafen
+SUBDIR+=       mednaffe
 SUBDIR+=       mgba
 SUBDIR+=       minivmac
 SUBDIR+=       mmix
diff -r c93147b88078 -r 89f8bede9816 emulators/mednaffe/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/mednaffe/DESCR  Sun Jul 07 13:32:18 2019 +0000
@@ -0,0 +1,4 @@
+Mednaffe is a graphical front-end for the Mednafen multi-system emulator.
+
+It allows all of Mednafen's options to be configured, and provides simple
+game management features.
diff -r c93147b88078 -r 89f8bede9816 emulators/mednaffe/MESSAGE.NetBSD
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/mednaffe/MESSAGE.NetBSD Sun Jul 07 13:32:18 2019 +0000
@@ -0,0 +1,10 @@
+===========================================================================
+$NetBSD: MESSAGE.NetBSD,v 1.1 2019/07/07 13:32:18 nia Exp $
+
+Note that detecting controllers/joysticks is currently unsupported in
+Mednaffe.
+
+You have to set the mappings in Mednafen itself. The default binding for
+this is ctrl+shift+[n], where N is the controller number.
+
+===========================================================================
diff -r c93147b88078 -r 89f8bede9816 emulators/mednaffe/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/mednaffe/Makefile       Sun Jul 07 13:32:18 2019 +0000
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1 2019/07/07 13:32:18 nia Exp $
+
+DISTNAME=      mednaffe-0.8.8
+CATEGORIES=    emulators
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=AmatCoder/}
+GITHUB_RELEASE=        ${PKGVERSION_NOREV}
+
+MAINTAINER=    nia%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/AmatCoder/mednaffe
+COMMENT=       Graphical interface for the Mednafen multi-system emulator
+LICENSE=       gnu-gpl-v3
+
+HAS_CONFIGURE= yes
+GNU_CONFIGURE= yes
+USE_TOOLS+=    pkg-config gmake
+
+DEPENDS+=      mednafen>=0:../../emulators/mednafen
+
+.include "options.mk"
+.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r c93147b88078 -r 89f8bede9816 emulators/mednaffe/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/mednaffe/PLIST  Sun Jul 07 13:32:18 2019 +0000
@@ -0,0 +1,14 @@
+@comment $NetBSD: PLIST,v 1.1 2019/07/07 13:32:18 nia Exp $
+bin/mednaffe
+share/applications/mednaffe.desktop
+share/doc/mednaffe/AUTHORS
+share/doc/mednaffe/COPYING
+share/doc/mednaffe/ChangeLog
+share/doc/mednaffe/README
+share/icons/hicolor/128x128/apps/mednaffe.png
+share/icons/hicolor/16x16/apps/mednaffe.png
+share/icons/hicolor/32x32/apps/mednaffe.png
+share/icons/hicolor/48x48/apps/mednaffe.png
+share/icons/hicolor/64x64/apps/mednaffe.png
+share/icons/hicolor/scalable/apps/mednaffe.svg
+share/pixmaps/mednaffe.png
diff -r c93147b88078 -r 89f8bede9816 emulators/mednaffe/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/mednaffe/distinfo       Sun Jul 07 13:32:18 2019 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2019/07/07 13:32:18 nia Exp $
+
+SHA1 (mednaffe-0.8.8.tar.gz) = f66f7bd3b015741a7632728b23af9df6124f1e3c
+RMD160 (mednaffe-0.8.8.tar.gz) = 0a7b0a6b2d6988098dc7103108014f72b431cecc
+SHA512 (mednaffe-0.8.8.tar.gz) = 93e80f9c1d7a4caf5324c00760cd559031df5f29ad98d917ca2d514b012fcd616692eb2ae85eee3c17750dea890fa0206d9c1a548227ac3b762aab44837d2ae4
+Size (mednaffe-0.8.8.tar.gz) = 304228 bytes
+SHA1 (patch-src_input.c) = b221955b7210438c38a65eec11d4a1f041df88ce
diff -r c93147b88078 -r 89f8bede9816 emulators/mednaffe/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/mednaffe/options.mk     Sun Jul 07 13:32:18 2019 +0000
@@ -0,0 +1,17 @@
+# $NetBSD: options.mk,v 1.1 2019/07/07 13:32:18 nia Exp $
+
+PKG_OPTIONS_VAR=               PKG_OPTIONS.mednaffe
+PKG_OPTIONS_REQUIRED_GROUPS=   gtk
+PKG_OPTIONS_GROUP.gtk=         gtk3 gtk2
+PKG_SUGGESTED_OPTIONS=         gtk3
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mgtk3)
+CONFIGURE_ARGS+=       --enable-gtk3
+.include "../../x11/gtk3/buildlink3.mk"
+.endif
+
+.if !empty(PKG_OPTIONS:Mgtk2)
+.include "../../x11/gtk2/buildlink3.mk"
+.endif
diff -r c93147b88078 -r 89f8bede9816 emulators/mednaffe/patches/patch-src_input.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/mednaffe/patches/patch-src_input.c      Sun Jul 07 13:32:18 2019 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-src_input.c,v 1.1 2019/07/07 13:32:18 nia Exp $
+
+Don't free unallocated memory.
+
+(Apparently G_OS_UNIX is actually G_OS_LINUX).
+
+--- src/input.c.orig   2018-05-01 16:59:49.000000000 +0000
++++ src/input.c
+@@ -53,12 +53,12 @@ void close_channels(guidata *gui)
+   int a;
+   for (a=0;a<9;a++)
+   {
++#ifdef G_OS_UNIX
+     if (gui->joy[a].id != NULL)
+     {
+       g_free(gui->joy[a].id);
+     }
+ 
+-#ifdef G_OS_UNIX
+     if (gui->joy[a].channel != NULL)
+     {
+       g_io_channel_unref(gui->joy[a].channel);



Home | Main Index | Thread Index | Old Index