Update emulators/gambatte to 0.5.0.

Fixes a crash with an alternate video filter.

Also, enable the new regression tests.
Also, sync the manpage with reality.
Also, take maintainership.

ok stsp@
This commit is contained in:
bentley 2012-08-13 06:38:00 +00:00
parent 5f483ddb10
commit be5360d931
4 changed files with 77 additions and 11 deletions

View File

@ -1,15 +1,17 @@
# $OpenBSD: Makefile,v 1.3 2010/12/08 20:13:14 landry Exp $
# $OpenBSD: Makefile,v 1.4 2012/08/13 06:38:00 bentley Exp $
COMMENT = highly accurate Game Boy Color emulator
V = 0.4.1
DISTNAME = gambatte_src-${V}
PKGNAME = gambatte-${V}
V = 0.5.0
DISTNAME = gambatte_src-${V}-wip2v2
PKGNAME = gambatte-${V}-beta3
CATEGORIES = emulators
HOMEPAGE = http://gambatte.sourceforge.net/
MAINTAINER = Anthony J. Bentley <anthony@cathet.us>
# GPLv2
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
@ -20,10 +22,14 @@ WANTLIB += c m pthread stdc++ z SDL
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=gambatte/}
MODULES = devel/scons
MODULES = devel/scons \
lang/python
LIB_DEPENDS = devel/sdl
NO_REGRESS = Yes
REGRESS_DEPENDS = graphics/png
pre-configure:
${SUBST_CMD} ${WRKDIST}/testrunner/SConstruct
do-build:
${SETENV} ${MAKE_ENV} ${MODSCONS_BIN} -C ${WRKDIST}/libgambatte \
@ -36,4 +42,11 @@ do-install:
${INSTALL_MAN} ${WRKDIST}/gambatte_sdl/man/gambatte_sdl.6 \
${PREFIX}/man/man6
do-regress:
${SETENV} ${MAKE_ENV} ${MODSCONS_BIN} -C ${WRKDIST}/testrunner \
${MODSCONS_ENV} ${MODSCONS_FLAGS} ${ALL_TARGET}
cd ${WRKDIST}/testrunner && \
${MODPY_BIN} qdgbas.py hwtests/*.asm hwtests/*/*.asm \
hwtests/*/*/*.asm hwtests/*/*/*/*.asm && ./run_tests.sh
.include <bsd.port.mk>

View File

@ -1,5 +1,2 @@
MD5 (gambatte_src-0.4.1.tar.gz) = z+UsM7uy5xmpV73mRCehjA==
RMD160 (gambatte_src-0.4.1.tar.gz) = KwmXFJjI9HTHHF5Ty69ETfhLKPg=
SHA1 (gambatte_src-0.4.1.tar.gz) = E3RyC5ytNbLaziCCK/m0suoNIFk=
SHA256 (gambatte_src-0.4.1.tar.gz) = QQAg7rZHjPdwfmQg8j0il7WOSo7LQHb4S0uTIKZwpLs=
SIZE (gambatte_src-0.4.1.tar.gz) = 263391
SHA256 (gambatte_src-0.5.0-wip2v2.tar.gz) = f0Ca2ujiwJKDDleSqhp5nF/UYgi0UT+W4myUZXADRy4=
SIZE (gambatte_src-0.5.0-wip2v2.tar.gz) = 523879

View File

@ -0,0 +1,39 @@
$OpenBSD: patch-gambatte_sdl_man_gambatte_sdl_6,v 1.1 2012/08/13 06:38:00 bentley Exp $
https://sourceforge.net/tracker/?func=detail&aid=3555949&group_id=203791&atid=987012
--- gambatte_sdl/man/gambatte_sdl.6.orig Thu Oct 25 05:57:46 2007
+++ gambatte_sdl/man/gambatte_sdl.6 Fri Aug 10 00:20:20 2012
@@ -69,12 +69,27 @@ Use YUV overlay for (usually faster) scaling.
TAB
fast-forward
.TP
-Ctrl-f
+Ctrl-f
toggle full screen
.TP
Ctrl-r
reset
.TP
+F5
+save state
+.TP
+F6
+previous state slot
+.TP
+F7
+next state slot
+.TP
+F8
+load state
+.TP
+0 to 9
+select state slot 0 to 9
+.TP
Return
Start
.TP
@@ -87,4 +102,4 @@ A
c
B
.SH AUTHOR
-Gambatte and this manual page was written by Sindre Aamås <aamas@stud.ntnu.no>.
+Gambatte and this manual page was written by Sindre Aam\(oas <aamas@stud.ntnu.no>.

View File

@ -0,0 +1,17 @@
$OpenBSD: patch-testrunner_SConstruct,v 1.1 2012/08/13 06:38:00 bentley Exp $
--- testrunner/SConstruct.orig Sat Jul 23 11:02:32 2011
+++ testrunner/SConstruct Fri Aug 3 00:33:05 2012
@@ -2,9 +2,11 @@ global_cflags = ARGUMENTS.get('CFLAGS', '-Wall -Wextra
global_cxxflags = ARGUMENTS.get('CXXFLAGS', global_cflags + ' -fno-exceptions -fno-rtti')
global_defines = ' -DHAVE_STDINT_H'
-env = Environment(CPPPATH = ['.', '../libgambatte/include'],
+env = Environment(CPPPATH = ['.', '../libgambatte/include', '${LOCALBASE}/include/libpng'],
CFLAGS = global_cflags + global_defines,
- CXXFLAGS = global_cxxflags + global_defines)
+ CXXFLAGS = global_cxxflags + global_defines,
+ LIBPATH = '${LOCALBASE}/lib',
+ LIBS = 'm')
sourceFiles = Split('''
testrunner.cpp