ports/94006: [NEW PORT] emulators/mednafen: Portable multi-system emulator

Jose Alonso Cardenas Marquez acardenas at bsd.org.pe
Thu Mar 2 01:10:03 UTC 2006


>Number:         94006
>Category:       ports
>Synopsis:       [NEW PORT] emulators/mednafen: Portable multi-system emulator
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 02 01:10:01 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Jose Alonso Cardenas Marquez
>Release:        FreeBSD 6.1-PRERELEASE i386
>Organization:
BSDPeru (http://www.bsd.org.pe)
>Environment:
FreeBSD HellFire.BSD.org.pe 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #0: Wed Feb 15 20:23:11 PET 2006
>Description:
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/

>How-To-Repeat:

>Fix:
--- mednafen-0.5.2.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	mednafen
#	mednafen/pkg-descr
#	mednafen/Makefile
#	mednafen/pkg-plist
#	mednafen/distinfo
#	mednafen/files
#	mednafen/files/pkg-message.in
#
echo c - mednafen
mkdir -p mednafen > /dev/null 2>&1
echo x - mednafen/pkg-descr
sed 's/^X//' >mednafen/pkg-descr << 'END-of-mednafen/pkg-descr'
XMednafen is a portable, utilizing OpenGL and SDL, argument(command-line)-driven multi-system emulator with 
Xmany advanced features. The Atari Lynx, GameBoy, GameBoy Color, GameBoy Advance, NES, PC Engine(TurboGrafx 16), 
Xand SuperGrafx are emulated. Mednafen has the ability to remap hotkey functions and virtual system inputs to 
Xa keyboard, a joystick, or both simultaneously. Save states are supported, as is real-time game rewinding. 
XScreen snapshots may be taken at the press of a button, and are saved in the popular PNG file format. 
X
XMednafen is distributed under the terms of the GNU GPL. 
X
XDue to the threaded model of emulation used in Mednafen, and limitations of SDL, a joystick is preferred over 
Xa keyboard to play games, as the joystick will have slightly less latency, although the latency differences 
Xmay not be perceptible to most people.
X
XWWW:	http://mednafen.com/
END-of-mednafen/pkg-descr
echo x - mednafen/Makefile
sed 's/^X//' >mednafen/Makefile << 'END-of-mednafen/Makefile'
X# New ports collection makefile for:	mednafen
X# Date created:		2006-02-28
X# Whom:			Charlie & <root at bsd.org.pe>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	mednafen
XPORTVERSION=	0.5.2
XCATEGORIES=	emulators games
XMASTER_SITES=	http://mednafen.com/releases/files/
X
XMAINTAINER=	acardenas at bsd.org.pe
XCOMMENT=	Portable multi-system emulator
X
XLIB_DEPENDS=	cdio.6:${PORTSDIR}/sysutils/libcdio \
X		sndfile.1:${PORTSDIR}/audio/libsndfile \
X		vorbis.3:${PORTSDIR}/audio/libvorbis
X
XUSE_BZIP2=	yes
XUSE_X_PREFIX=	yes
XUSE_GMAKE=	yes
XGNU_CONFIGURE=	yes
XUSE_SDL=	sdl net
XCPPFLAGS+=	-I${LOCALBASE}/include -I${X11BASE}/include
XLDFLAGS+=	-L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD}
XCONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
XCONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
XWRKSRC=	${WRKDIR}/${PORTNAME}
XSUB_FILES=	pkg-message
X
XOPTIONS=	NLS	"Native Language Support"	on
X
X.include <bsd.port.pre.mk>
X
X.if defined(WITHOUT_NLS)
XCONFIGURE_ARGS+=	--disable-nls
XPLIST_SUB+=	NLS="@comment "
X.else
XUSE_GETTEXT=	yes
XPLIST_SUB+=	NLS=""
XFLAG_NLS=	true
X.endif
X
Xpre-configure:
X	@${REINPLACE_CMD} -e 's|sdl-config|sdl11-config|g' ${WRKSRC}/configure
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X	@${INSTALL_DATA} ${WRKSRC}/Documentation/mednafen.html ${DOCSDIR}
X.endif
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.post.mk>
END-of-mednafen/Makefile
echo x - mednafen/pkg-plist
sed 's/^X//' >mednafen/pkg-plist << 'END-of-mednafen/pkg-plist'
Xbin/mednafen
X%%NLS%%share/locale/es/LC_MESSAGES/mednafen.mo
X%%NLS%%share/locale/ru/LC_MESSAGES/mednafen.mo
X%%PORTDOCS%%%%DOCSDIR%%/mednafen.html
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
END-of-mednafen/pkg-plist
echo x - mednafen/distinfo
sed 's/^X//' >mednafen/distinfo << 'END-of-mednafen/distinfo'
XMD5 (mednafen-0.5.2.tar.bz2) = 6a49b7278551a37dec995b3616f81d85
XSHA256 (mednafen-0.5.2.tar.bz2) = 0be59745a484926fb04b56b5828b167fcd590fa482bb9753224a17d0dce8c865
XSIZE (mednafen-0.5.2.tar.bz2) = 1205446
END-of-mednafen/distinfo
echo c - mednafen/files
mkdir -p mednafen/files > /dev/null 2>&1
echo x - mednafen/files/pkg-message.in
sed 's/^X//' >mednafen/files/pkg-message.in << 'END-of-mednafen/files/pkg-message.in'
X###############################################################################
X
X1) Create directory ~/.mednafen
X2) Create empty config file ~/.mednafen/mednafen.cfg
X3) Run mednafen [OPTION] [FILE]
X4) See complete documentation on %%DOCSDIR%%/mednafen.html
X5) Enjoy it ;)
X
X###############################################################################
END-of-mednafen/files/pkg-message.in
exit
--- mednafen-0.5.2.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list