summaryrefslogtreecommitdiff
path: root/audio/sidplay2
diff options
context:
space:
mode:
authorjoerg <joerg>2011-11-27 19:33:55 +0000
committerjoerg <joerg>2011-11-27 19:33:55 +0000
commit101fbe24c79bcc0c0c6165321efafd1f2a0d70b8 (patch)
treeb57dab796c5ca6d423b0ee0aa0cde4c31cb0d105 /audio/sidplay2
parentafbe2846b32a5e372534e2186804b888a608c215 (diff)
downloadpkgsrc-101fbe24c79bcc0c0c6165321efafd1f2a0d70b8.tar.gz
Fix build with modern GCC
Diffstat (limited to 'audio/sidplay2')
-rw-r--r--audio/sidplay2/distinfo3
-rw-r--r--audio/sidplay2/patches/patch-src_audio_wav_WavFile.cpp27
2 files changed, 29 insertions, 1 deletions
diff --git a/audio/sidplay2/distinfo b/audio/sidplay2/distinfo
index e8aac182fd8..52f79c7b9a5 100644
--- a/audio/sidplay2/distinfo
+++ b/audio/sidplay2/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.2 2006/04/20 14:14:15 joerg Exp $
+$NetBSD: distinfo,v 1.3 2011/11/27 19:33:55 joerg Exp $
SHA1 (sidplay-2.0.9.tar.gz) = 2e4589cc59b3d2d37f38b98d7a0a0ba37b82da7a
RMD160 (sidplay-2.0.9.tar.gz) = 9d7d2cbcb472ab413093e85827de2c7099782e47
Size (sidplay-2.0.9.tar.gz) = 362140 bytes
SHA1 (patch-aa) = 12e236e42f2cbf311e5d9ed7b25c262089f57a27
+SHA1 (patch-src_audio_wav_WavFile.cpp) = a7ef72b68eb3a86bf01537e9da4fba7d44dd280e
diff --git a/audio/sidplay2/patches/patch-src_audio_wav_WavFile.cpp b/audio/sidplay2/patches/patch-src_audio_wav_WavFile.cpp
new file mode 100644
index 00000000000..1c4457a7528
--- /dev/null
+++ b/audio/sidplay2/patches/patch-src_audio_wav_WavFile.cpp
@@ -0,0 +1,27 @@
+$NetBSD: patch-src_audio_wav_WavFile.cpp,v 1.1 2011/11/27 19:33:55 joerg Exp $
+
+--- src/audio/wav/WavFile.cpp.orig 2011-11-27 01:17:47.000000000 +0000
++++ src/audio/wav/WavFile.cpp
+@@ -65,13 +65,6 @@
+ # include <new>
+ #endif
+
+-#if defined(WAV_HAVE_IOS_OPENMODE)
+- typedef std::ios::openmode openmode;
+-#else
+- typedef int openmode;
+-#endif
+-
+-
+ const wavHeader WavFile::defaultWavHdr = {
+ // ASCII keywords are hex-ified.
+ {0x52,0x49,0x46,0x46}, {0,0,0,0}, {0x57,0x41,0x56,0x45},
+@@ -132,7 +125,7 @@ void* WavFile::open(AudioConfig &cfg, co
+ endian_little16(wavHdr.bitsPerSample,bits);
+ endian_little32(wavHdr.dataChunkLen,0);
+
+- openmode createAttr = std::ios::out;
++ std::ios::openmode createAttr = std::ios::out;
+ #if defined(WAV_HAVE_IOS_BIN)
+ createAttr |= std::ios::bin;
+ #else