# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
categories emulators games
description Super-fast and super-compatible emulator for many video game systems
long_description Medfafen is a portable (utilizing OpenGL and SDL) \
argument-driven multi-system emulator with many \
advanced features. The Atari Lynx, GameBoy, GameBoy \
Colour, GameBoy Advance, NES, PC Engine (TurboGrafx 16) \
and SuperGrafx are emulated. Mednafen has the ability \
to remap hotkey functions and virtual system inputs \
to a keyboard, a joystick, or both simultaneously. \
Save states are supported, as is real-time game \
homepage https://mednafen.github.io
master_sites ${homepage}/releases/files/
checksums rmd160 2ab57de60be19f592be69eea88e6372a8d0b27d4 \
sha256 d3cc0c838f496511946d6ea18fda5965d2b71577c610acc811835cc87d152102
depends_build port:pkgconfig
xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
xinstall -m 755 ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name}
xinstall -m 755 ${worksrcpath}/ChangeLog ${destroot}${prefix}/share/doc/${name}
xinstall {*}[glob ${worksrcpath}/Documentation/*] ${destroot}${prefix}/share/doc/${name}
Mednafen works by executing the ROM file of a game console you'd like to\
emulate. Note that no ROM files are included with Mednafen, so first you must\
obtain the game console ROM file of your choice, by legal means of course.
Supported ROM file formats are listed in section 'File Formats/Expansion\
Hardware' in the Mednafen documenation at ${prefix}/share/doc/${name}. Once\
you've obtained a supported type of game console ROM file, start the Mednafen\
command-line executable and use the ROM filename (including path) as an\
argument. See the documentation for more options.