diff options
author | nia <nia@pkgsrc.org> | 2019-07-07 13:32:18 +0000 |
---|---|---|
committer | nia <nia@pkgsrc.org> | 2019-07-07 13:32:18 +0000 |
commit | 9ed6138ebdf8b350cfa49dd16c5b24334b1994bf (patch) | |
tree | 73b73766f87f89e37ee254a23e61094a9eb77b8d /emulators | |
parent | fb5ca7f8a52779b4260d6a2401fc471ffc68b3fc (diff) | |
download | pkgsrc-9ed6138ebdf8b350cfa49dd16c5b24334b1994bf.tar.gz |
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 (limited to 'emulators')
-rw-r--r-- | emulators/Makefile | 3 | ||||
-rw-r--r-- | emulators/mednaffe/DESCR | 4 | ||||
-rw-r--r-- | emulators/mednaffe/MESSAGE.NetBSD | 10 | ||||
-rw-r--r-- | emulators/mednaffe/Makefile | 21 | ||||
-rw-r--r-- | emulators/mednaffe/PLIST | 14 | ||||
-rw-r--r-- | emulators/mednaffe/distinfo | 7 | ||||
-rw-r--r-- | emulators/mednaffe/options.mk | 17 | ||||
-rw-r--r-- | emulators/mednaffe/patches/patch-src_input.c | 22 |
8 files changed, 97 insertions, 1 deletions
diff --git a/emulators/Makefile b/emulators/Makefile index a35b331e4fe..367e12939df 100644 --- a/emulators/Makefile +++ b/emulators/Makefile @@ -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+= m1 SUBDIR+= makeppf SUBDIR+= mame SUBDIR+= mednafen +SUBDIR+= mednaffe SUBDIR+= mgba SUBDIR+= minivmac SUBDIR+= mmix diff --git a/emulators/mednaffe/DESCR b/emulators/mednaffe/DESCR new file mode 100644 index 00000000000..badc17dd0fc --- /dev/null +++ b/emulators/mednaffe/DESCR @@ -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 --git a/emulators/mednaffe/MESSAGE.NetBSD b/emulators/mednaffe/MESSAGE.NetBSD new file mode 100644 index 00000000000..be2cf4fc875 --- /dev/null +++ b/emulators/mednaffe/MESSAGE.NetBSD @@ -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 --git a/emulators/mednaffe/Makefile b/emulators/mednaffe/Makefile new file mode 100644 index 00000000000..febd1726b16 --- /dev/null +++ b/emulators/mednaffe/Makefile @@ -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 +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 --git a/emulators/mednaffe/PLIST b/emulators/mednaffe/PLIST new file mode 100644 index 00000000000..3917273df7f --- /dev/null +++ b/emulators/mednaffe/PLIST @@ -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 --git a/emulators/mednaffe/distinfo b/emulators/mednaffe/distinfo new file mode 100644 index 00000000000..1a6cb54765c --- /dev/null +++ b/emulators/mednaffe/distinfo @@ -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 --git a/emulators/mednaffe/options.mk b/emulators/mednaffe/options.mk new file mode 100644 index 00000000000..e326b8970d0 --- /dev/null +++ b/emulators/mednaffe/options.mk @@ -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 --git a/emulators/mednaffe/patches/patch-src_input.c b/emulators/mednaffe/patches/patch-src_input.c new file mode 100644 index 00000000000..1b4eebd79f8 --- /dev/null +++ b/emulators/mednaffe/patches/patch-src_input.c @@ -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); |