pkgsrc/emulators/fceu/patches/patch-ah
wiz 000f1e220b Update to 0.98.13:
Additional patch from dillo@:
Fix display and sync on sound.  Ignore NoWaiting and the rest for now.

Changes since 0.98.12:
	SDL:  Fixed button configuration when using joystick hats.  Thanks to
	ShaolinMan for pointing out the code errors.

	Readded checks in ines.c for some common bad dumps and non-working hacked
	games.

	Sprite hit emulation is more precise(as it was in 0.97.5).

	Fixed mapper 185 emulation to work properly with the Japanese
	version of "Spy vs Spy", and hopefully with the GOOD dump
	of Banana(I don't think one exists).

	Added per-game hacks for Shougi Meikan '92 and Shougi Meikan '93.

	Fixed a bug in SetupCartMirroring() that could cause some games to have corrupted
	mirroring if loaded in a certain order.  This was a rather major, long-standing
	bug. :/

	Added many iNES header corrections.

	Fixed emulation of the "ISB" and "DCP" invalid opcodes.

	Optimized the PPU background drawing code with inline assembly.  Older/some(?) versions
	of gcc may produce bad code(from previous experience with inline
	assembly in gcc), but 3.4.1 seems to do ok.

	Optimized some of the low-quality sound emulation code.

	Added a command-line option to the configure script to enable the FCE Ultra
	debugger(disabled by default).  It reduces executable size, and may increase speed
	of execution slightly.

	In unix-netplay.c, replaced the ioctl() on a socket to read the number of bytes available to read
	with a select().  I've also added some "BEOS" #ifdefs.  I don't know if they will
	work properly.

	Replaced archaic include of "malloc.h" in unix-netplay.c with "stdlib.h".
	Also in unix-netplay.c, I've added:

		#ifndef SOL_TCP
		#define SOL_TCP IPPROTO_TCP
		#endif

	Fixed a bug in sdl-sound.c that would prevent FCE Ultra from being compiled
	on certain platforms(Mac OS X).

	Fixed variable declarations in the following files to be compatible
	with C compilers that don't adhere to C99(or was it C98...):
		movie.c
		drivers/sexyal/convertgen.c and drivers/sexyal/convert.inc
		drivers/pc/unix-netplay.c
2005-10-30 11:47:56 +00:00

59 lines
3.6 KiB
Text

$NetBSD: patch-ah,v 1.1 2005/10/30 11:47:56 wiz Exp $
--- configure.orig 2004-09-16 05:31:55.000000000 +0200
+++ configure
@@ -308,7 +308,7 @@ ac_includes_default="\
# include <unistd.h>
#endif"
-ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE CPP CCAS CCASFLAGS CXX CXXFLAGS ac_ct_CXX CXXDEPMODE CXXCPP WIN32_TRUE WIN32_FALSE UNIX_TRUE UNIX_FALSE USE_SEXYAL_TRUE USE_SEXYAL_FALSE NATIVEWIN32_TRUE NATIVEWIN32_FALSE OPENGL_TRUE OPENGL_FALSE HAVE_GTK_TRUE HAVE_GTK_FALSE EGREP SDL_CONFIG SDL_CFLAGS SDL_LIBS C80x86_TRUE C80x86_FALSE LIBOBJS LTLIBOBJS'
+ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE CPP CCAS CCASFLAGS CXX CXXFLAGS ac_ct_CXX CXXDEPMODE CXXCPP WIN32_TRUE WIN32_FALSE UNIX_TRUE UNIX_FALSE USE_SEXYAL_TRUE USE_SEXYAL_FALSE NATIVEWIN32_TRUE NATIVEWIN32_FALSE OPENGL_TRUE OPENGL_FALSE HAVE_GTK_TRUE HAVE_GTK_FALSE EGREP SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBOBJS LTLIBOBJS'
ac_subst_files=''
# Initialize some variables set by options.
@@ -5130,21 +5130,13 @@ _ACEOF
fi
-if expr match "$target_cpu" 'i.86' > /dev/null; then
+if echo ${target_cpu} | grep -q 'i.86' > /dev/null; then
cat >>confdefs.h <<\_ACEOF
#define C80x86 1
_ACEOF
-if true; then
- C80x86_TRUE=
- C80x86_FALSE='#'
-else
- C80x86_TRUE='#'
- C80x86_FALSE=
-fi
-
fi
echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
@@ -5589,13 +5581,6 @@ echo "$as_me: error: conditional \"OPENG
Usually this means the macro was only invoked conditionally." >&2;}
{ (exit 1); exit 1; }; }
fi
-if test -z "${C80x86_TRUE}" && test -z "${C80x86_FALSE}"; then
- { { echo "$as_me:$LINENO: error: conditional \"C80x86\" was never defined.
-Usually this means the macro was only invoked conditionally." >&5
-echo "$as_me: error: conditional \"C80x86\" was never defined.
-Usually this means the macro was only invoked conditionally." >&2;}
- { (exit 1); exit 1; }; }
-fi
: ${CONFIG_STATUS=./config.status}
ac_clean_files_save=$ac_clean_files
@@ -6188,8 +6173,6 @@ s,@EGREP@,$EGREP,;t t
s,@SDL_CONFIG@,$SDL_CONFIG,;t t
s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
s,@SDL_LIBS@,$SDL_LIBS,;t t
-s,@C80x86_TRUE@,$C80x86_TRUE,;t t
-s,@C80x86_FALSE@,$C80x86_FALSE,;t t
s,@LIBOBJS@,$LIBOBJS,;t t
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
CEOF