Mednafen is a portable, utilizing OpenGL and SDL, argument(command-line)-driven
multi-system emulator with many advanced features. The Atari Lynx, GameBoy,
GameBoy Color, 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 rewinding. Screen snapshots may be taken at
the press of a button, and are saved in the popular PNG file format.
Mednafen is distributed under the terms of the GNU GPL.
Due to the threaded model of emulation used in Mednafen, and limitations of SDL
a joystick is preferred over a keyboard to play games, as the joystick will have
slightly less latency, although the latency differences may not be perceptible
to most people.
WWW: http://mednafen.com/
PR: ports/94006
Submitted by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
2006-06-11 12:55:20 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= mednafen
|
2014-04-05 23:42:17 +02:00
|
|
|
PORTVERSION= 0.9.33.2
|
2014-12-08 17:48:38 +01:00
|
|
|
PORTREVISION= 4
|
2009-04-27 22:45:13 +02:00
|
|
|
PORTEPOCH= 1
|
Mednafen is a portable, utilizing OpenGL and SDL, argument(command-line)-driven
multi-system emulator with many advanced features. The Atari Lynx, GameBoy,
GameBoy Color, 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 rewinding. Screen snapshots may be taken at
the press of a button, and are saved in the popular PNG file format.
Mednafen is distributed under the terms of the GNU GPL.
Due to the threaded model of emulation used in Mednafen, and limitations of SDL
a joystick is preferred over a keyboard to play games, as the joystick will have
slightly less latency, although the latency differences may not be perceptible
to most people.
WWW: http://mednafen.com/
PR: ports/94006
Submitted by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
2006-06-11 12:55:20 +02:00
|
|
|
CATEGORIES= emulators games
|
2016-01-03 01:07:00 +01:00
|
|
|
MASTER_SITES= http://mednafen.fobby.net/releases/files/
|
Mednafen is a portable, utilizing OpenGL and SDL, argument(command-line)-driven
multi-system emulator with many advanced features. The Atari Lynx, GameBoy,
GameBoy Color, 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 rewinding. Screen snapshots may be taken at
the press of a button, and are saved in the popular PNG file format.
Mednafen is distributed under the terms of the GNU GPL.
Due to the threaded model of emulation used in Mednafen, and limitations of SDL
a joystick is preferred over a keyboard to play games, as the joystick will have
slightly less latency, although the latency differences may not be perceptible
to most people.
WWW: http://mednafen.com/
PR: ports/94006
Submitted by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
2006-06-11 12:55:20 +02:00
|
|
|
|
2006-07-23 04:45:24 +02:00
|
|
|
MAINTAINER= acm@FreeBSD.org
|
Mednafen is a portable, utilizing OpenGL and SDL, argument(command-line)-driven
multi-system emulator with many advanced features. The Atari Lynx, GameBoy,
GameBoy Color, 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 rewinding. Screen snapshots may be taken at
the press of a button, and are saved in the popular PNG file format.
Mednafen is distributed under the terms of the GNU GPL.
Due to the threaded model of emulation used in Mednafen, and limitations of SDL
a joystick is preferred over a keyboard to play games, as the joystick will have
slightly less latency, although the latency differences may not be perceptible
to most people.
WWW: http://mednafen.com/
PR: ports/94006
Submitted by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
2006-06-11 12:55:20 +02:00
|
|
|
COMMENT= Portable multi-system emulator
|
|
|
|
|
2016-01-12 17:20:31 +01:00
|
|
|
LICENSE= GPLv2+
|
2015-05-14 03:47:41 +02:00
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
Mednafen is a portable, utilizing OpenGL and SDL, argument(command-line)-driven
multi-system emulator with many advanced features. The Atari Lynx, GameBoy,
GameBoy Color, 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 rewinding. Screen snapshots may be taken at
the press of a button, and are saved in the popular PNG file format.
Mednafen is distributed under the terms of the GNU GPL.
Due to the threaded model of emulation used in Mednafen, and limitations of SDL
a joystick is preferred over a keyboard to play games, as the joystick will have
slightly less latency, although the latency differences may not be perceptible
to most people.
WWW: http://mednafen.com/
PR: ports/94006
Submitted by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
2006-06-11 12:55:20 +02:00
|
|
|
|
2014-02-28 22:11:09 +01:00
|
|
|
LIB_DEPENDS= libcdio.so:${PORTSDIR}/sysutils/libcdio \
|
|
|
|
libsndfile.so:${PORTSDIR}/audio/libsndfile \
|
|
|
|
libvorbis.so:${PORTSDIR}/audio/libvorbis
|
Mark as broken, dos not build:
file.cpp: In function 'MDFNFILE* MakeMemWrap(void*, int)':
file.cpp:225: error: invalid conversion from 'void*' to 'gzFile_s*'
file.cpp:225: error: initializing argument 1 of 'int gzread(gzFile_s*, void*, unsigned int)'
file.cpp:277: error: invalid conversion from 'void*' to 'gzFile_s*'
file.cpp:277: error: initializing argument 1 of 'int gzclose(gzFile_s*)'
file.cpp: In function 'MDFNFILE* MDFN_fopen(const char*, const char*, const char*, const char*)':
file.cpp:439: error: invalid conversion from 'void*' to 'gzFile_s*'
file.cpp:439: error: initializing argument 1 of 'int gzclose(gzFile_s*)'
file.cpp: In function 'bool MDFN_DumpToFileReal(const char*, int, const std::vector<PtrLengthPair, std::allocator<PtrLengthPair> >&)':
2013-07-13 15:05:50 +02:00
|
|
|
|
Mednafen is a portable, utilizing OpenGL and SDL, argument(command-line)-driven
multi-system emulator with many advanced features. The Atari Lynx, GameBoy,
GameBoy Color, 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 rewinding. Screen snapshots may be taken at
the press of a button, and are saved in the popular PNG file format.
Mednafen is distributed under the terms of the GNU GPL.
Due to the threaded model of emulation used in Mednafen, and limitations of SDL
a joystick is preferred over a keyboard to play games, as the joystick will have
slightly less latency, although the latency differences may not be perceptible
to most people.
WWW: http://mednafen.com/
PR: ports/94006
Submitted by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
2006-06-11 12:55:20 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_SDL= sdl net
|
2014-02-28 22:11:09 +01:00
|
|
|
USE_GL= gl glu
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
2014-02-28 22:11:09 +01:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
Mednafen is a portable, utilizing OpenGL and SDL, argument(command-line)-driven
multi-system emulator with many advanced features. The Atari Lynx, GameBoy,
GameBoy Color, 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 rewinding. Screen snapshots may be taken at
the press of a button, and are saved in the popular PNG file format.
Mednafen is distributed under the terms of the GNU GPL.
Due to the threaded model of emulation used in Mednafen, and limitations of SDL
a joystick is preferred over a keyboard to play games, as the joystick will have
slightly less latency, although the latency differences may not be perceptible
to most people.
WWW: http://mednafen.com/
PR: ports/94006
Submitted by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
2006-06-11 12:55:20 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
|
2014-02-28 22:11:09 +01:00
|
|
|
CONFIGURE_ARGS+=--disable-alsa --disable-alsatest \
|
|
|
|
--with-sdl-prefix=${LOCALBASE}
|
Mednafen is a portable, utilizing OpenGL and SDL, argument(command-line)-driven
multi-system emulator with many advanced features. The Atari Lynx, GameBoy,
GameBoy Color, 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 rewinding. Screen snapshots may be taken at
the press of a button, and are saved in the popular PNG file format.
Mednafen is distributed under the terms of the GNU GPL.
Due to the threaded model of emulation used in Mednafen, and limitations of SDL
a joystick is preferred over a keyboard to play games, as the joystick will have
slightly less latency, although the latency differences may not be perceptible
to most people.
WWW: http://mednafen.com/
PR: ports/94006
Submitted by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
2006-06-11 12:55:20 +02:00
|
|
|
|
2015-05-14 03:47:41 +02:00
|
|
|
USES= cpe iconv pkgconfig:build tar:bzip2
|
|
|
|
CPE_VENDOR= david_shadoff
|
Mednafen is a portable, utilizing OpenGL and SDL, argument(command-line)-driven
multi-system emulator with many advanced features. The Atari Lynx, GameBoy,
GameBoy Color, 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 rewinding. Screen snapshots may be taken at
the press of a button, and are saved in the popular PNG file format.
Mednafen is distributed under the terms of the GNU GPL.
Due to the threaded model of emulation used in Mednafen, and limitations of SDL
a joystick is preferred over a keyboard to play games, as the joystick will have
slightly less latency, although the latency differences may not be perceptible
to most people.
WWW: http://mednafen.com/
PR: ports/94006
Submitted by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
2006-06-11 12:55:20 +02:00
|
|
|
|
2014-02-28 22:11:09 +01:00
|
|
|
OPTIONS_DEFINE= NLS DOCS JACK
|
|
|
|
OPTIONS_MULTI= EMU
|
2014-04-05 23:42:17 +02:00
|
|
|
OPTIONS_MULTI_EMU= GB GBA LINX MD NES NGP PCE PCFX PSX SMS SWAN VB
|
|
|
|
OPTIONS_DEFAULT= GB GBA LINX MD NES NGP PCE PCFX PSX SMS SWAN VB
|
Mednafen is a portable, utilizing OpenGL and SDL, argument(command-line)-driven
multi-system emulator with many advanced features. The Atari Lynx, GameBoy,
GameBoy Color, 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 rewinding. Screen snapshots may be taken at
the press of a button, and are saved in the popular PNG file format.
Mednafen is distributed under the terms of the GNU GPL.
Due to the threaded model of emulation used in Mednafen, and limitations of SDL
a joystick is preferred over a keyboard to play games, as the joystick will have
slightly less latency, although the latency differences may not be perceptible
to most people.
WWW: http://mednafen.com/
PR: ports/94006
Submitted by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
2006-06-11 12:55:20 +02:00
|
|
|
|
2014-02-28 22:11:09 +01:00
|
|
|
GB_DESC= build with GameBoy emulation
|
|
|
|
GBA_DESC= build with GameBoy Advance emulation
|
|
|
|
LINX_DESC= build with Atari Lynx emulation
|
2014-04-05 23:42:17 +02:00
|
|
|
MD_DESC= build with Sega Genesis/MegaDrive emulation
|
2014-02-28 22:11:09 +01:00
|
|
|
NES_DESC= build with Nintendo Entertainment System emulation
|
|
|
|
NGP_DESC= build with Neo Geo Pocket emulation
|
|
|
|
PCE_DESC= build with PC Engine (TurboGrafx 16) emulation
|
|
|
|
PCFX_DESC= build with PC-FX emulation
|
2014-04-05 23:42:17 +02:00
|
|
|
PSX_DESC= build with Playstation emulation
|
2014-02-28 22:11:09 +01:00
|
|
|
SMS_DESC= build with SMS+GG emulation
|
|
|
|
SWAN_DESC= build with WonderSWan emulation
|
2014-04-05 23:42:17 +02:00
|
|
|
VB_DESC= build with Virtual Boy emulation
|
2014-02-28 22:11:09 +01:00
|
|
|
JACK_DESC= support the JACK audio API
|
|
|
|
|
|
|
|
OPTIONS_SUB= yes
|
|
|
|
|
|
|
|
NLS_USES= gettext
|
|
|
|
NLS_CONFIGURE_ENABLE=nls
|
|
|
|
|
|
|
|
JACK_LIB_DEPENDS=libjack.so:${PORTSDIR}/audio/jack
|
|
|
|
JACK_CONFIGURE_ENABLE=jack
|
|
|
|
|
|
|
|
GB_CONFIGURE_ENABLE=gb
|
|
|
|
GBA_CONFIGURE_ENABLE=gba
|
|
|
|
LINX_CONFIGURE_ENABLE=lynx
|
2014-04-05 23:42:17 +02:00
|
|
|
MD_CONFIGURE_ENABLE=md
|
2014-02-28 22:11:09 +01:00
|
|
|
NES_CONFIGURE_ENABLE=nes
|
|
|
|
NGP_CONFIGURE_ENABLE=ngp
|
|
|
|
PCE_CONFIGURE_ENABLE=pce
|
|
|
|
PCFX_CONFIGURE_ENABLE=pcfx
|
2014-04-05 23:42:17 +02:00
|
|
|
PSX_CONFIGURE_ENABLE=psx
|
2014-02-28 22:11:09 +01:00
|
|
|
SMS_CONFIGURE_ENABLE=sms
|
|
|
|
SWAN_CONFIGURE_ENABLE=wswan
|
2014-04-05 23:42:17 +02:00
|
|
|
VB_CONFIGURE_ENABLE=vb
|
2014-02-28 22:11:09 +01:00
|
|
|
|
|
|
|
BROKEN_sparc64= does not compile due to internal compiler error
|
2006-07-04 02:48:40 +02:00
|
|
|
|
Mednafen is a portable, utilizing OpenGL and SDL, argument(command-line)-driven
multi-system emulator with many advanced features. The Atari Lynx, GameBoy,
GameBoy Color, 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 rewinding. Screen snapshots may be taken at
the press of a button, and are saved in the popular PNG file format.
Mednafen is distributed under the terms of the GNU GPL.
Due to the threaded model of emulation used in Mednafen, and limitations of SDL
a joystick is preferred over a keyboard to play games, as the joystick will have
slightly less latency, although the latency differences may not be perceptible
to most people.
WWW: http://mednafen.com/
PR: ports/94006
Submitted by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
2006-06-11 12:55:20 +02:00
|
|
|
pre-configure:
|
2014-02-28 22:11:09 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
|
|
|
|
-e 's|/usr/X11R6|${LOCALBASE}|g' \
|
|
|
|
${WRKSRC}/configure
|
|
|
|
@${REINPLACE_CMD} -e 's|NetBSD|FreeBSD|' \
|
|
|
|
${WRKSRC}/include/trio/triodef.h
|
Mednafen is a portable, utilizing OpenGL and SDL, argument(command-line)-driven
multi-system emulator with many advanced features. The Atari Lynx, GameBoy,
GameBoy Color, 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 rewinding. Screen snapshots may be taken at
the press of a button, and are saved in the popular PNG file format.
Mednafen is distributed under the terms of the GNU GPL.
Due to the threaded model of emulation used in Mednafen, and limitations of SDL
a joystick is preferred over a keyboard to play games, as the joystick will have
slightly less latency, although the latency differences may not be perceptible
to most people.
WWW: http://mednafen.com/
PR: ports/94006
Submitted by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
2006-06-11 12:55:20 +02:00
|
|
|
|
|
|
|
post-install:
|
2014-02-28 22:11:09 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/Documentation/mednafen.html ${STAGEDIR}${DOCSDIR}
|
Mednafen is a portable, utilizing OpenGL and SDL, argument(command-line)-driven
multi-system emulator with many advanced features. The Atari Lynx, GameBoy,
GameBoy Color, 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 rewinding. Screen snapshots may be taken at
the press of a button, and are saved in the popular PNG file format.
Mednafen is distributed under the terms of the GNU GPL.
Due to the threaded model of emulation used in Mednafen, and limitations of SDL
a joystick is preferred over a keyboard to play games, as the joystick will have
slightly less latency, although the latency differences may not be perceptible
to most people.
WWW: http://mednafen.com/
PR: ports/94006
Submitted by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
2006-06-11 12:55:20 +02:00
|
|
|
|
2013-04-26 18:39:14 +02:00
|
|
|
.include <bsd.port.mk>
|