# -*- 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
# error: use of undeclared identifier 'CLOCK_MONOTONIC'
PortGroup legacysupport 1.0
# error: "Define MSB_FIRST or LSB_FIRST!"
checksums rmd160 7dbec84f5802ac43a21646337de70ae21ca702be \
sha256 fad433ac694696d69ea38f6f4be1d0a6c1aa3609ec7f46ce75412be2f2df2f95 \
categories emulators games
description Super-fast and super-compatible emulator for many video game systems
long_description Mednafen is a portable, argument-driven multi-system \
emulator using OpenGL and SDL. \
Mednafen has the ability to remap hotkey functions and \
virtual system inputs to a keyboard, a joystick, or both \
Save states are supported, as is real-time game rewinding. \
Screen snapshots may be taken, in the PNG file format, at \
Mednafen can record audiovisual movies in the QuickTime \
file format, with several different lossless codecs \
\nThe following systems are supported: \
\n* Neo Geo Pocket (Color) \
\n* Nintendo Entertainment System \
\n* Super Nintendo Entertainment System/Super Famicom \
\n* PC Engine/TurboGrafx 16 (CD) \
\n* Sega Genesis/Megadrive \
\n* Sega Saturn (experimental, x86_64 only) \
\nRefer to the emulation module documentation for more \
homepage https://mednafen.github.io
master_sites ${homepage}/releases/files/
depends_build port:pkgconfig
depends_lib port:gettext \
patchfiles clang-version.patch
compiler.cxx_standard 2011
# This is how the build system decides what architecture to build for.
lappend merger_configure_args(i386) --host=i386-apple-darwin${os.version}
lappend merger_configure_args(ppc) --host=powerpc-apple-darwin${os.version}
lappend merger_configure_args(ppc64) --host=powerpc-apple-darwin${os.version}
lappend merger_configure_args(x86_64) --host=x86_64-apple-darwin${os.version}
if {!([variant_exists universal] && [variant_isset universal]) && [info exists merger_configure_args(${configure.build_arch})]} {
configure.args-append {*}$merger_configure_args(${configure.build_arch})