From 368a0b1f97e54a12f02a7b4bd1d87e4a1696157e Mon Sep 17 00:00:00 2001
From: wiz <wiz@pkgsrc.org>
Date: Sat, 19 May 2007 12:39:30 +0000
Subject: Initial import of mednafen-0.8.1, previously packaged for wip (by
 myself):

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.

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.
---
 emulators/mednafen/Makefile | 39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)
 create mode 100644 emulators/mednafen/Makefile

(limited to 'emulators/mednafen/Makefile')

diff --git a/emulators/mednafen/Makefile b/emulators/mednafen/Makefile
new file mode 100644
index 00000000000..17cb7af5c07
--- /dev/null
+++ b/emulators/mednafen/Makefile
@@ -0,0 +1,39 @@
+# $NetBSD: Makefile,v 1.1.1.1 2007/05/19 12:39:30 wiz Exp $
+#
+
+DISTNAME=	mednafen-0.8.1
+CATEGORIES=	emulators
+MASTER_SITES=	http://mednafen.com/releases/files/
+EXTRACT_SUFX=	.tar.bz2
+
+MAINTAINER=	wiz@NetBSD.org
+HOMEPAGE=	http://mednafen.com/
+COMMENT=	Portable multi-system emulator
+
+WRKSRC=			${WRKDIR}/mednafen
+GNU_CONFIGURE=		yes
+USE_TOOLS+=		intltool pkg-config
+USE_LANGUAGES=		c c++
+USE_LIBTOOL=		yes
+USE_PKGLOCALEDIR=	yes
+
+SUBST_CLASSES+=		dsp
+SUBST_STAGE.dsp=	pre-configure
+SUBST_MESSAGE.dsp=	Fixing path to audio device.
+SUBST_FILES.dsp=	src/sexyal/drivers/esd.c src/sexyal/drivers/oss.c \
+			src/sexyal/drivers/oss.c src/sexyal/sexyal.c
+SUBST_SED.dsp=		-e s,/dev/dsp,${DEVOSSAUDIO},
+
+post-install:
+	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mednafen
+	${INSTALL_DATA} ${WRKSRC}/Documentation/*.html \
+		${PREFIX}/share/doc/mednafen
+
+.include "../../audio/esound/buildlink3.mk"
+.include "../../audio/libsndfile/buildlink3.mk"
+.include "../../devel/SDL/buildlink3.mk"
+.include "../../devel/gettext-lib/buildlink3.mk"
+.include "../../misc/libcdio/buildlink3.mk"
+.include "../../net/SDL_net/buildlink3.mk"
+.include "../../mk/oss.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
-- 
cgit v1.2.3