Import mednafen 0.8.D.3 as 0.8.3.

Mednafen is a portable, utilizing OpenGL and SDL,
argument(command-line)-driven multi-system emulator with many advanced
features. The Atari Lynx, GameBoy (Color), GameBoy Advance, NES, PC
Engine(TurboGrafx 16), SuperGrafx, Neo Geo Pocket (Color), PC-FX, and
WonderSwan (Color) 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.

OK landry@
This commit is contained in:
jeremy 2011-03-14 21:04:51 +00:00
parent c7dc39f578
commit 38cdc1891b
6 changed files with 111 additions and 0 deletions

View File

@ -0,0 +1,49 @@
# $OpenBSD: Makefile,v 1.1.1.1 2011/03/14 21:04:51 jeremy Exp $
COMMENT = emulates numerous game consoles
DISTNAME = mednafen-0.8.D.3
PKGNAME = mednafen-0.8.3
CATEGORIES = emulators games
HOMEPAGE = http://mednafen.sourceforge.net/
MAINTAINER = Jeremy Evans <jeremy@openbsd.org>
# GPLv2
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM = Yes
PERMIT_DISTFILES_FTP = Yes
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=mednafen/}
EXTRACT_SUFX = .tar.bz2
MODULES = devel/gettext
WANTLIB += SDL SDL_net c cdio m pthread sndfile sndio stdc++ usbhid
WANTLIB += z
USE_GMAKE = Yes
LIB_DEPENDS = audio/libcdio \
audio/libsndfile \
devel/sdl \
devel/sdl-net
WRKDIST = ${WRKDIR}/mednafen
CONFIGURE_STYLE = gnu
CONFIGURE_ENV = CFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/SDL" \
LDFLAGS="-L${LOCALBASE}/lib -pthread"
CONFIGURE_ARGS = --disable-alsa \
--disable-rpath \
--disable-jack \
--with-x \
--with-gnu-ld
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mednafen
${INSTALL_DATA} ${WRKSRC}/Documentation/* ${PREFIX}/share/doc/mednafen/
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
MD5 (mednafen-0.8.D.3.tar.bz2) = V9IoBQcb7NgYWLDAiKJ15Q==
RMD160 (mednafen-0.8.D.3.tar.bz2) = VG9JqVQbpNA2f+aCrvI82t89cyU=
SHA1 (mednafen-0.8.D.3.tar.bz2) = sZuSEBhTy2U1BkVv2KscC7C25jY=
SHA256 (mednafen-0.8.D.3.tar.bz2) = 1ngXjw3APInHoMg78Mchr0Bu5T36eSlUMqsTci7Q7qI=
SIZE (mednafen-0.8.D.3.tar.bz2) = 2442705

View File

@ -0,0 +1,19 @@
$OpenBSD: patch-src_gba_Port_h,v 1.1.1.1 2011/03/14 21:04:51 jeremy Exp $
--- src/gba/Port.h.orig Fri Mar 11 13:59:32 2011
+++ src/gba/Port.h Fri Mar 11 14:00:04 2011
@@ -20,6 +20,7 @@
#ifndef VBA_PORT_H
#define VBA_PORT_H
+#ifndef __OpenBSD__
// swaps a 16-bit value
static inline uint16 swap16(uint16 v)
{
@@ -31,6 +32,7 @@ static inline uint32 swap32(uint32 v)
{
return (v<<24)|((v<<8)&0xff0000)|((v>>8)&0xff00)|(v>>24);
}
+#endif
#ifndef LSB_FIRST
#if defined(__GNUC__) && defined(__ppc__)

View File

@ -0,0 +1,18 @@
$OpenBSD: patch-src_types_h,v 1.1.1.1 2011/03/14 21:04:51 jeremy Exp $
--- src/types.h.orig Fri Mar 11 13:58:51 2011
+++ src/types.h Fri Mar 11 13:58:56 2011
@@ -167,12 +167,14 @@ typedef struct
#endif
#endif
+#ifndef __OpenBSD__
#ifndef htole32
#define htole32 le32toh
#endif
#ifndef htole16
#define htole16 le16toh
+#endif
#endif

View File

@ -0,0 +1,9 @@
Mednafen is a portable, utilizing OpenGL and SDL,
argument(command-line)-driven multi-system emulator with many advanced
features. The Atari Lynx, GameBoy (Color), GameBoy Advance, NES, PC
Engine(TurboGrafx 16), SuperGrafx, Neo Geo Pocket (Color), PC-FX, and
WonderSwan (Color) 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.

View File

@ -0,0 +1,11 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2011/03/14 21:04:51 jeremy Exp $
@bin bin/mednafen
share/doc/mednafen/
share/doc/mednafen/README.jpeg4a
share/doc/mednafen/cheats.txt
share/doc/mednafen/debugger.html
share/doc/mednafen/mednafen.html
share/doc/mednafen/netplay.html
share/locale/de/LC_MESSAGES/mednafen.mo
share/locale/es/LC_MESSAGES/mednafen.mo
share/locale/ru/LC_MESSAGES/mednafen.mo