ports/135592: New Port: emulators/bsnes Snes Emulator BSnes

Emmanuel Vadot elbarto at arcadebsd.org
Mon Jun 15 11:00:13 UTC 2009


>Number:         135592
>Category:       ports
>Synopsis:       New Port: emulators/bsnes Snes Emulator BSnes
>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:   Mon Jun 15 11:00:12 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Emmanuel Vadot
>Release:        7.2-STABLE
>Organization:
ArcadeBSD
>Environment:
FreeBSD sonic.epitech.net 7.2-STABLE FreeBSD 7.2-STABLE #0: Thu Jun 11 12:18:07 CEST 2009     root at sonic.epitech.net:/usr/src/sys/i386/compile/sonic  i386

>Description:
Bsnes is a Super Nintendo/Famicom emulators.
It works on Windows,Linux,OSX and BSD.
It support additional hardware such as satellaview and super gameboy.

>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# 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:
#
#	bsnes
#	bsnes/files
#	bsnes/files/patch-Makefile-libnall
#	bsnes/files/patch-Makefile-qt-libnall
#	bsnes/files/patch-Makefile
#	bsnes/Makefile
#	bsnes/distinfo
#	bsnes/pkg-plist
#	bsnes/pkg-descr
#
echo c - bsnes
mkdir -p bsnes > /dev/null 2>&1
echo c - bsnes/files
mkdir -p bsnes/files > /dev/null 2>&1
echo x - bsnes/files/patch-Makefile-libnall
sed 's/^X//' >bsnes/files/patch-Makefile-libnall << 'f6acc16e1964bc5697f529de45813324'
X--- lib/nall/Makefile.orig	2009-06-15 00:09:27.000000000 +0200
X+++ lib/nall/Makefile	2009-06-15 00:10:08.000000000 +0200
X@@ -22,6 +22,9 @@
X   else ifneq ($(findstring Darwin,$(uname)),)
X     platform := osx
X     delete = rm -f $1
X+  else ifneq ($(findstring FreeBSD,$(uname)),)
X+    platform := bsd
X+    delete = rm -f $1
X   else
X     platform := x
X     delete = rm -f $1
f6acc16e1964bc5697f529de45813324
echo x - bsnes/files/patch-Makefile-qt-libnall
sed 's/^X//' >bsnes/files/patch-Makefile-qt-libnall << 'bf209caa29c5843b4269c74f545b48e5'
X--- lib/nall/Makefile-qt.orig	2009-06-15 00:10:35.000000000 +0200
X+++ lib/nall/Makefile-qt	2009-06-15 00:12:05.000000000 +0200
X@@ -30,6 +30,10 @@
X   qtlib += -framework Cocoa
X   qtlib += -framework AppKit
X   qtlib += -framework ApplicationServices
X+else ifeq ($(platform),bsd)
X+  qtinc := `pkg-config --cflags QtCore QtGui`
X+  qtlib := `pkg-config --libs QtCore QtGui`
X+  moc := moc-qt4
X else ifeq ($(platform),win)
X   ifeq ($(qtpath),)
X     # find Qt install directory from PATH environment variable
bf209caa29c5843b4269c74f545b48e5
echo x - bsnes/files/patch-Makefile
sed 's/^X//' >bsnes/files/patch-Makefile << '7ed1896747b7f759c2755e39ab63d873'
X--- Makefile.orig	2009-06-15 00:13:46.000000000 +0200
X+++ Makefile	2009-06-15 00:15:22.000000000 +0200
X@@ -36,6 +36,15 @@
X   ruby += input.carbon
X 
X   link += $(if $(findstring audio.openal,$(ruby)),-framework OpenAL)
X+else ifeq ($(platform),bsd)
X+  link += -s
X+  flags += -I/usr/local/include
X+
X+  ruby := __VIDEO__
X+  ruby += __AUDIO__
X+  ruby += __INPUT__
X+
X+  link += $(if $(findstring audio.openal,$(ruby)),-lopenal)
X else ifeq ($(platform),win)
X   link += -mwindows
X # link += -mconsole
7ed1896747b7f759c2755e39ab63d873
echo x - bsnes/Makefile
sed 's/^X//' >bsnes/Makefile << '110a45e7bffc748cc2f540323c30f231'
X# New ports collection makefile for:    bsnes
X# Date created:                         2009-06-13
X# Whom:                                 elbarto
X
XPORTNAME=	bsnes
XPORTVERSION=	0.47
XCATEGORIES=	emulators
XMASTER_SITES=	http://byuusan.kuro-hitsuji.net/
XDISTNAME=	${PORTNAME}_v${PORTVERSION:S/.//}
X
XMAINTAINER=	elbarto at ArcadeBSD.org
XCOMMENT=	Super Nintendo/Super Famicom emulator
X
XUSE_BZIP2=	yes
XUSE_GMAKE=	yes
XUSE_SDL=	sdl
XUSE_QT_VER=	4
XQT_COMPONENTS=	qmake_build uic_build moc_build rcc_build gui
X
XONLY_FOR_ARCH=	i386 amd64
XWRKSRC=		${WRKDIR}/src/
XMAKE_ENV+=	enable_gzip=true
X
XOPTIONS=	V_GLX "Build GLX Video Driver" on\
X		V_XV "Build Xv Video Driver" off\
X		V_SDL "Build SDL Video Driver" on\
X		V_QT "Build QtImage Video Driver" off\
X		S_OPENAL "Build OpenAL Sound Driver" off\
X		S_OSS "Build OSS Sound Driver" on\
X		S_PULSE "Build Pulseaudio Sound Driver" off\
X		S_AO "Build AO Sound Driver" off\
X		I_X "Build X Input Driver" on\
X		I_SDL "Build SDL Input Driver" on
X
X.include <bsd.port.pre.mk>
X
X.if defined(WITH_V_GLX)
XUSE_GL=		gl
XVIDEO_DRIVER+=	video.glx
X.endif
X
X.if defined(WITH_V_XV)
XUSE_XORG=	xv
XVIDEO_DRIVER+=	video.xv
X.endif
X
X.if defined(WITH_V_SDL)
XUSE_SDL=	sdl
XVIDEO_DRIVER+=	video.sdl
X.endif
X
X.if defined(WITH_V_QT)
XVIDEO_DRIVER+=	video.qtimage
X.endif
X
X.if defined(WITH_S_OPENAL)
XLIB_DEPENDS+=	openal.0:${PORTSDIR}/audio/openal
XAUDIO_DRIVER+=	audio.openal
X.endif
X
X.if defined(WITH_S_OSS)
XAUDIO_DRIVER+=	audio.oss
X.endif
X
X.if defined(WITH_S_PULSE)
XLIB_DEPENDS+=	pulse.0:${PORTSDIR}/audio/pulseaudio
XAUDIO_DRIVER+=	audio.pulseaudio
X.endif
X
X.if defined(WITH_S_AO)
XLIB_DEPENDS+=	ao.3:${PORTSDIR}/audio/libao
XAUDIO_DRIVER+=	audio.ao
X.endif
X
X.if defined(WITH_I_X)
XINPUT_DRIVER+=	input.x
X.endif
X
X.if defined(WITH_I_SDL)
XUSE_SDL=	sdl
XINPUT_DRIVER+=	input.sdl
X.endif
X
X.if !defined(VIDEO_DRIVER)
XIGNORE=	you have to choose at least a video driver first.
X.endif
X
X.if !defined(AUDIO_DRIVER)
XIGNORE=	you have to choose at least a audio driver first.
X.endif
X
X.if !defined(INPUT_DRIVER)
XIGNORE=	you have to choose at least an input driver first.
X.endif
X
Xpost-patch:
X	${REINPLACE_CMD} -e 's|__VIDEO__|${VIDEO_DRIVER}|' ${WRKSRC}/Makefile
X	${REINPLACE_CMD} -e 's|__AUDIO__|${AUDIO_DRIVER}|' ${WRKSRC}/Makefile
X	${REINPLACE_CMD} -e 's|__INPUT__|${INPUT_DRIVER}|' ${WRKSRC}/Makefile
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/../${PORTNAME} ${PREFIX}/bin/
X
X.include <bsd.port.post.mk>
110a45e7bffc748cc2f540323c30f231
echo x - bsnes/distinfo
sed 's/^X//' >bsnes/distinfo << 'c2fee1068b8e5440b4d7a47104bf03c5'
XMD5 (bsnes_v047.tar.bz2) = c660eada88b0bfbd1f0fe72d4f57526f
XSHA256 (bsnes_v047.tar.bz2) = d24f2f18bd68578a9d77a1a870c8570f3a38a281af55153b7be08b74819e0e68
XSIZE (bsnes_v047.tar.bz2) = 547683
c2fee1068b8e5440b4d7a47104bf03c5
echo x - bsnes/pkg-plist
sed 's/^X//' >bsnes/pkg-plist << '9a62ae86c1035532a5a93430e74ec724'
Xbin/bsnes
9a62ae86c1035532a5a93430e74ec724
echo x - bsnes/pkg-descr
sed 's/^X//' >bsnes/pkg-descr << 'ac98cce0430ff978505990efc3a0d5f3'
Xbsnes is an emulator that began development on 2004-10-14.
XThe purpose of this emulator is a bit different from others:
Xit focuses on accuracy, debugging functionality, and clean code.
X
XThe emulator does not focus on things that would hinder accuracy.
XThis includes speed and game-specific hacks for compatibility.
XAs a result, the minimum system requirements for bsnes are very high.
X
XThe emulator itself was not derived from any existing emulator source code,
Xsuch as SNES9x. It was written from scratch by myself.
XAny similarities to other emulators are merely coincidental.
X
XWWW: http://byuu.org/bsnes/
ac98cce0430ff978505990efc3a0d5f3
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list