The following patch updates mednafen to last version, I tried a few platform successfully on adm64.
I disabled snes module at compile time because it just doesn't work and crashes, instead of providing a README explaining how to modify medfnafen.cfg to disable snes to fallback to snes_faust module. Index: Makefile =================================================================== RCS file: /data/cvs/ports/emulators/mednafen/Makefile,v retrieving revision 1.27 diff -u -p -r1.27 Makefile --- Makefile 19 Jun 2019 04:01:21 -0000 1.27 +++ Makefile 26 Mar 2020 19:00:34 -0000 @@ -3,7 +3,7 @@ BROKEN-hppa = ../../include/mednafen/state.h:21:7: error: 'exception_ptr' in namespace 'std' does not name a type COMMENT = emulates numerous game consoles -DISTNAME = mednafen-1.22.2 +DISTNAME = mednafen-1.24.1 CATEGORIES = emulators games HOMEPAGE = https://mednafen.github.io @@ -33,10 +33,13 @@ USE_WXNEEDED = Yes CONFIGURE_STYLE = gnu CONFIGURE_ENV = CFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/SDL2" \ LDFLAGS="-L${LOCALBASE}/lib -pthread -nopie" + +# disable snes module crashing on load, snes_faust will fallback CONFIGURE_ARGS = --disable-alsa \ --disable-rpath \ --disable-jack \ - --with-gnu-ld + --with-gnu-ld \ + --enable-snes=no # this intrinsic is not supported with our old gcc CONFIGURE_ARGS += --disable-altivec Index: distinfo =================================================================== RCS file: /data/cvs/ports/emulators/mednafen/distinfo,v retrieving revision 1.12 diff -u -p -r1.12 distinfo --- distinfo 19 Jun 2019 04:01:21 -0000 1.12 +++ distinfo 26 Mar 2020 18:05:53 -0000 @@ -1,2 +1,2 @@ -SHA256 (mednafen-1.22.2.tar.xz) = +tQzrGlGltaeo49vS+HQpsGqNgnsf0bOdUEr4vLfL5U= -SIZE (mednafen-1.22.2.tar.xz) = 3270004 +SHA256 (mednafen-1.24.1.tar.xz) = pHrfP69NpmkgvruUNuKMv4f/ZjJNC7OSAzy7R4tnX+c= +SIZE (mednafen-1.24.1.tar.xz) = 3293992