summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2011-02-26 07:06:23 +0000
committerwiz <wiz@pkgsrc.org>2011-02-26 07:06:23 +0000
commitf2c3e740992e9dc72b1581df45a6793eb0a60b0b (patch)
tree3666097d45955bc15cd7bd0659c4fdd13f2bec49
parent284203c8cdbe97f258ff8c60d128919efd9d0b00 (diff)
downloadpkgsrc-f2c3e740992e9dc72b1581df45a6793eb0a60b0b.tar.gz
Revert CR-LF changes. They probably have fixed some cases,
but broke on e.g. NetBSD-current.
-rw-r--r--emulators/mame/Makefile.common4
-rw-r--r--emulators/mame/distinfo12
-rw-r--r--emulators/mame/patches/patch-makefile40
-rw-r--r--emulators/mame/patches/patch-src_emu_debug_debugcpu.c18
-rw-r--r--emulators/mame/patches/patch-src_emu_emucore.h32
-rw-r--r--emulators/mame/patches/patch-src_lib_util_astring.h22
-rw-r--r--emulators/mame/patches/patch-src_osd_sdl_sdlsync__ntc.c24
7 files changed, 75 insertions, 77 deletions
diff --git a/emulators/mame/Makefile.common b/emulators/mame/Makefile.common
index c95c9042f3c..c3b08b5f841 100644
--- a/emulators/mame/Makefile.common
+++ b/emulators/mame/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.2 2011/02/11 12:49:33 abs Exp $
+# $NetBSD: Makefile.common,v 1.3 2011/02/26 07:06:23 wiz Exp $
#
# used by emulators/mame/Makefile
# used by emulators/mess/Makefile
@@ -37,8 +37,6 @@ MAKE_FLAGS+= BIGENDIAN=true
.endif
# mame source is double-zipped
-# Note all files have CR-LF but are marked as binary, so unzip -a
-# does not help. Hence all patches must have CR-LF
post-extract:
cd ${WRKDIR} && ${.CURDIR}/../../mk/extract/extract mame.zip
rm ${WRKDIR}/mame.zip
diff --git a/emulators/mame/distinfo b/emulators/mame/distinfo
index c8aa4c0c9c4..258f3a4cb9e 100644
--- a/emulators/mame/distinfo
+++ b/emulators/mame/distinfo
@@ -1,10 +1,10 @@
-$NetBSD: distinfo,v 1.3 2011/02/11 13:16:40 abs Exp $
+$NetBSD: distinfo,v 1.4 2011/02/26 07:06:23 wiz Exp $
SHA1 (mame0141s.zip) = 80225e2694469dac39a75815f227b864a4992f5e
RMD160 (mame0141s.zip) = c09ef461280dfd7e45ca638caaa66d8752a9794b
Size (mame0141s.zip) = 17092788 bytes
-SHA1 (patch-makefile) = e8fcacd7926679d087e29d0098dfb2c660cbb96f
-SHA1 (patch-src_emu_debug_debugcpu.c) = 9223063c1aebf2e7846bd5ad46885fd8c97e9ea2
-SHA1 (patch-src_emu_emucore.h) = 3852589019a347338a05aee9151e161ed4b72696
-SHA1 (patch-src_lib_util_astring.h) = eb48db35ffc5627a102adce619abab94a15c77ce
-SHA1 (patch-src_osd_sdl_sdlsync__ntc.c) = ada3c8e8fccd681d296b543737f355d20c18f516
+SHA1 (patch-makefile) = 59c3f439e3a250564e82ad6addc30b6c85dbc80c
+SHA1 (patch-src_emu_debug_debugcpu.c) = 1838cca446d62ebd824a540d30770fe56819cf03
+SHA1 (patch-src_emu_emucore.h) = 096ae265c2b0eb1021bd9b04b0b8b26e73519a9c
+SHA1 (patch-src_lib_util_astring.h) = 9cd5fbc7bd477707ba4de328e0429c0d6cbe6924
+SHA1 (patch-src_osd_sdl_sdlsync__ntc.c) = 1a8e940ad9cd59bd6bbc1850f24040a7d074b57a
diff --git a/emulators/mame/patches/patch-makefile b/emulators/mame/patches/patch-makefile
index e7f2b4b351a..0b2c7195fcc 100644
--- a/emulators/mame/patches/patch-makefile
+++ b/emulators/mame/patches/patch-makefile
@@ -1,25 +1,25 @@
-$NetBSD: patch-makefile,v 1.3 2011/02/11 13:16:40 abs Exp $
+$NetBSD: patch-makefile,v 1.4 2011/02/26 07:06:24 wiz Exp $
First chunk accepted upstream, second pkgsrc-only.
--- makefile.orig 2010-12-29 22:50:26.000000000 +0000
+++ makefile
-@@ -86,6 +86,9 @@ endif
- ifeq ($(firstword $(filter GNU/kFreeBSD,$(UNAME))),GNU/kFreeBSD)
- TARGETOS = freebsd
- endif
-+ifeq ($(firstword $(filter NetBSD,$(UNAME))),NetBSD)
-+TARGETOS = netbsd
-+endif
- ifeq ($(firstword $(filter OpenBSD,$(UNAME))),OpenBSD)
- TARGETOS = openbsd
- endif
-@@ -344,7 +347,7 @@ NAME = $(TARGET)$(SUBTARGET)
- endif
-
- # fullname is prefix+name+suffix+suffix64+suffixdebug
--FULLNAME = $(PREFIX)$(PREFIXSDL)$(NAME)$(SUFFIX)$(SUFFIX64)$(SUFFIXDEBUG)$(SUFFIXPROFILE)
-+FULLNAME = $(PREFIXSDL)$(NAME)$(SUFFIX)$(SUFFIXDEBUG)$(SUFFIXPROFILE)
-
- # add an EXE suffix to get the final emulator name
- EMULATOR = $(FULLNAME)$(EXE)
+@@ -86,6 +88,9 @@ endif
+ ifeq ($(firstword $(filter GNU/kFreeBSD,$(UNAME))),GNU/kFreeBSD)
+ TARGETOS = freebsd
+ endif
++ifeq ($(firstword $(filter NetBSD,$(UNAME))),NetBSD)
++TARGETOS = netbsd
++endif
+ ifeq ($(firstword $(filter OpenBSD,$(UNAME))),OpenBSD)
+ TARGETOS = openbsd
+ endif
+@@ -344,7 +349,7 @@ NAME = $(TARGET)$(SUBTARGET)
+ endif
+
+ # fullname is prefix+name+suffix+suffix64+suffixdebug
+-FULLNAME = $(PREFIX)$(PREFIXSDL)$(NAME)$(SUFFIX)$(SUFFIX64)$(SUFFIXDEBUG)$(SUFFIXPROFILE)
++FULLNAME = $(PREFIXSDL)$(NAME)$(SUFFIX)$(SUFFIXDEBUG)$(SUFFIXPROFILE)
+
+ # add an EXE suffix to get the final emulator name
+ EMULATOR = $(FULLNAME)$(EXE)
diff --git a/emulators/mame/patches/patch-src_emu_debug_debugcpu.c b/emulators/mame/patches/patch-src_emu_debug_debugcpu.c
index 9a8e455932a..283d96378bd 100644
--- a/emulators/mame/patches/patch-src_emu_debug_debugcpu.c
+++ b/emulators/mame/patches/patch-src_emu_debug_debugcpu.c
@@ -1,15 +1,15 @@
-$NetBSD: patch-src_emu_debug_debugcpu.c,v 1.3 2011/02/11 13:16:40 abs Exp $
+$NetBSD: patch-src_emu_debug_debugcpu.c,v 1.4 2011/02/26 07:06:24 wiz Exp $
Sent upstream and accepted.
--- src/emu/debug/debugcpu.c.orig 2010-12-31 16:41:26.000000000 +0000
+++ src/emu/debug/debugcpu.c
@@ -51,7 +51,7 @@
- #include "xmlfile.h"
- #include <ctype.h>
- #include <zlib.h>
--#ifdef SDLMAME_FREEBSD
-+#if defined(SDLMAME_FREEBSD) || defined(SDLMAME_NETBSD)
- # undef tolower
- #endif
-
+ #include "xmlfile.h"
+ #include <ctype.h>
+ #include <zlib.h>
+-#ifdef SDLMAME_FREEBSD
++#if defined(SDLMAME_FREEBSD) || defined(SDLMAME_NETBSD)
+ # undef tolower
+ #endif
+
diff --git a/emulators/mame/patches/patch-src_emu_emucore.h b/emulators/mame/patches/patch-src_emu_emucore.h
index 90d0960e2f1..6a303492811 100644
--- a/emulators/mame/patches/patch-src_emu_emucore.h
+++ b/emulators/mame/patches/patch-src_emu_emucore.h
@@ -1,22 +1,22 @@
-$NetBSD: patch-src_emu_emucore.h,v 1.3 2011/02/11 13:16:40 abs Exp $
+$NetBSD: patch-src_emu_emucore.h,v 1.4 2011/02/26 07:06:24 wiz Exp $
Sent upstream and accepted.
--- src/emu/emucore.h.orig 2010-12-31 14:59:46.000000000 +0000
+++ src/emu/emucore.h
@@ -686,6 +686,7 @@ inline void fatalerror_exitcode(running_
- //**************************************************************************
-
- // population count
-+#ifndef SDLMAME_NETBSD
- inline int popcount(UINT32 val)
- {
- int count;
-@@ -694,6 +695,7 @@ inline int popcount(UINT32 val)
- val &= val - 1;
- return count;
- }
-+#endif
-
-
- // convert a series of 32 bits into a float
+ //**************************************************************************
+
+ // population count
++#ifndef SDLMAME_NETBSD
+ inline int popcount(UINT32 val)
+ {
+ int count;
+@@ -694,6 +695,7 @@ inline int popcount(UINT32 val)
+ val &= val - 1;
+ return count;
+ }
++#endif
+
+
+ // convert a series of 32 bits into a float
diff --git a/emulators/mame/patches/patch-src_lib_util_astring.h b/emulators/mame/patches/patch-src_lib_util_astring.h
index b596f3ed3b2..3d023e23dfd 100644
--- a/emulators/mame/patches/patch-src_lib_util_astring.h
+++ b/emulators/mame/patches/patch-src_lib_util_astring.h
@@ -1,17 +1,17 @@
-$NetBSD: patch-src_lib_util_astring.h,v 1.3 2011/02/11 13:16:40 abs Exp $
+$NetBSD: patch-src_lib_util_astring.h,v 1.4 2011/02/26 07:06:24 wiz Exp $
Sent upstream and accepted.
--- src/lib/util/astring.h.orig 2010-10-31 23:48:04.000000000 +0000
+++ src/lib/util/astring.h
@@ -296,6 +296,10 @@ INLINE astring *astring_assemble_5(astri
- ***************************************************************************/
-
- #ifdef __cplusplus
-+#ifdef SDLMAME_NETBSD
-+#undef toupper
-+#undef tolower
-+#endif
-
- /* derived class for C++ */
- class astring : public astring_base
+ ***************************************************************************/
+
+ #ifdef __cplusplus
++#ifdef SDLMAME_NETBSD
++#undef toupper
++#undef tolower
++#endif
+
+ /* derived class for C++ */
+ class astring : public astring_base
diff --git a/emulators/mame/patches/patch-src_osd_sdl_sdlsync__ntc.c b/emulators/mame/patches/patch-src_osd_sdl_sdlsync__ntc.c
index 3e7cdb71a82..e9cfac8659c 100644
--- a/emulators/mame/patches/patch-src_osd_sdl_sdlsync__ntc.c
+++ b/emulators/mame/patches/patch-src_osd_sdl_sdlsync__ntc.c
@@ -1,18 +1,18 @@
-$NetBSD: patch-src_osd_sdl_sdlsync__ntc.c,v 1.3 2011/02/11 13:16:40 abs Exp $
+$NetBSD: patch-src_osd_sdl_sdlsync__ntc.c,v 1.4 2011/02/26 07:06:24 wiz Exp $
Sent upstream and accepted.
--- src/osd/sdl/sdlsync_ntc.c.orig 2010-01-15 20:12:06.000000000 +0000
+++ src/osd/sdl/sdlsync_ntc.c
@@ -19,6 +19,11 @@
- #include <mach/mach.h>
- #endif
-
-+#ifdef SDLMAME_NETBSD
-+/* for SIGKILL */
-+#include <signal.h>
-+#endif
-+
- // standard C headers
- #include <math.h>
- #include <unistd.h>
+ #include <mach/mach.h>
+ #endif
+
++#ifdef SDLMAME_NETBSD
++/* for SIGKILL */
++#include <signal.h>
++#endif
++
+ // standard C headers
+ #include <math.h>
+ #include <unistd.h>