Files
haikuports/app-emulation/mednafen/mednafen-0.9.38.7.recipe
Augustin Cavalier cbc458084d mednafen: Create a new recipe.
Compiles/installs/starts, but crashes in an OpenGL blitter on my end.
Not sure what the culprit is.
2016-03-06 15:11:03 -05:00

94 lines
2.4 KiB
Bash

SUMMARY="Emulator for various Nintendo, Sega, etc. consoles"
DESCRIPTION="Mednafen is a portable, utilizing OpenGL and SDL, \
argument-driven multi-system emulator. 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 \
rewinding. Screen snapshots may be taken, in the PNG file format, at the \
press of a button. Mednafen can record audiovisual movies in the QuickTime \
file format, with several different lossless codecs supported.
The following systems are supported (refer to the emulation module \
documentation for more details): \
- Atari Lynx
- Neo Geo Pocket (Color)
- WonderSwan
- GameBoy (Color)
- GameBoy Advance
- Nintendo Entertainment System
- Super Nintendo Entertainment System/Super Famicom
- Virtual Boy
- PC Engine/TurboGrafx 16 (CD)
- SuperGrafx
- PC-FX
- Sega Game Gear
- Sega Genesis/Megadrive
- Sega Master System
- Sony PlayStation"
HOMEPAGE="http://mednafen.fobby.net/"
COPYRIGHT="2005-2015 Mednafen Team"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="http://mednafen.fobby.net/releases/files/mednafen-$portVersion.tar.bz2"
CHECKSUM_SHA256="1bb3beef883a325c35d1a1ce14959c307a4c321f2ea29d4ddb216c6dd03aded8"
SOURCE_DIR="mednafen"
PATCHES="mednafen-unistd.patch
mednafen-signals.patch"
ARCHITECTURES="!x86_gcc2 ?x86 ?x86_64"
SECONDARY_ARCHITECTURES="?x86"
PROVIDES="
mednafen$secondaryArchSuffix = $portVersion
cmd:mednafen$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libz$secondaryArchSuffix
lib:libiconv$secondaryArchSuffix
lib:libintl$secondaryArchSuffix
lib:libsndfile$secondaryArchSuffix
lib:libSDL$secondaryArchSuffix
lib:libGL$secondaryArchSuffix
lib:libGLU$secondaryArchSuffix
"
BUILD_REQUIRES="
devel:libz$secondaryArchSuffix
devel:libiconv$secondaryArchSuffix
devel:libintl$secondaryArchSuffix
devel:libsndfile$secondaryArchSuffix
devel:libSDL$secondaryArchSuffix
devel:libGL$secondaryArchSuffix
devel:libGLU$secondaryArchSuffix
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel
cmd:awk
cmd:sed
cmd:grep
cmd:gettext
cmd:msgfmt
cmd:bison
cmd:pkg_config$secondaryArchSuffix
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
"
PATCH()
{
sed -i "s/socket\; do/network\; do/" configure
# otherwise it won't find gethostbyname(), etc.
}
BUILD()
{
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
}