This upgrades mednafen to the latest released version. Initial diff from an...@disroot.org, some changes by me. I tested most of the emulator types, and all appear to work except SNES, which crashes for me right after the window opens, with no useful debug output. Not sure if that is a regression or not, or if it is due to my video card. I generally use snes9x for SNES emulation.
Ports-wise, the main change is that mednafen now requires SDL2. OKs? Thanks, Jeremy Index: Makefile =================================================================== RCS file: /cvs/ports/emulators/mednafen/Makefile,v retrieving revision 1.24 diff -u -p -r1.24 Makefile --- Makefile 21 Nov 2017 00:13:00 -0000 1.24 +++ Makefile 17 Aug 2018 19:13:00 -0000 @@ -3,8 +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-0.9.48 -REVISION = 0 +DISTNAME = mednafen-1.21.3 CATEGORIES = emulators games HOMEPAGE = https://mednafen.github.io @@ -17,27 +16,26 @@ PERMIT_PACKAGE_CDROM = Yes MASTER_SITES = ${HOMEPAGE}/releases/files/ EXTRACT_SUFX = .tar.xz -WANTLIB += SDL c iconv intl m pthread sndfile sndio usbhid z -WANTLIB += FLAC ogg vorbis vorbisenc ${COMPILER_LIBCXX} +WANTLIB += SDL2 c iconv intl m pthread sndfile sndio usbhid z +WANTLIB += FLAC ogg samplerate vorbis vorbisenc ${COMPILER_LIBCXX} USE_GMAKE = Yes COMPILER = base-clang ports-gcc LIB_DEPENDS = audio/libsndfile \ devel/gettext \ - devel/sdl + devel/sdl2 WRKDIST = ${WRKDIR}/mednafen USE_WXNEEDED = Yes CONFIGURE_STYLE = gnu -CONFIGURE_ENV = CFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/SDL" \ +CONFIGURE_ENV = CFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/SDL2" \ LDFLAGS="-L${LOCALBASE}/lib -pthread -nopie" CONFIGURE_ARGS = --disable-alsa \ --disable-rpath \ --disable-jack \ - --with-x \ --with-gnu-ld # this intrinsic is not supported with our old gcc Index: distinfo =================================================================== RCS file: /cvs/ports/emulators/mednafen/distinfo,v retrieving revision 1.10 diff -u -p -r1.10 distinfo --- distinfo 14 Nov 2017 06:46:20 -0000 1.10 +++ distinfo 17 Aug 2018 17:02:11 -0000 @@ -1,2 +1,2 @@ -SHA256 (mednafen-0.9.48.tar.xz) = 08wMg49JZRGUbW6hj9pZZdK3FXfGEKzIEYNcyH0VIQI= -SIZE (mednafen-0.9.48.tar.xz) = 3203080 +SHA256 (mednafen-1.21.3.tar.xz) = LnYeiDSwmLfxqzXcyqbSvnFe6RBs9Ar0kZ9spLme48Y= +SIZE (mednafen-1.21.3.tar.xz) = 3208956