summaryrefslogtreecommitdiff
path: root/audio/flac/patches
diff options
context:
space:
mode:
authorsketch <sketch>2004-11-16 12:05:54 +0000
committersketch <sketch>2004-11-16 12:05:54 +0000
commit979bad7e55c6290cbd5d3821bac1d3f76b062a01 (patch)
tree1a58d7e9cb57f6261c5c9069ea2c4daf0a5e14e6 /audio/flac/patches
parentc766cbc4d56bdd978b20a9597b509518c645b9f7 (diff)
downloadpkgsrc-979bad7e55c6290cbd5d3821bac1d3f76b062a01.tar.gz
Various C++ tweaks/cleanups to get this package compiling with SunPro.
Diffstat (limited to 'audio/flac/patches')
-rw-r--r--audio/flac/patches/patch-ag11
-rw-r--r--audio/flac/patches/patch-ah40
-rw-r--r--audio/flac/patches/patch-ai29
-rw-r--r--audio/flac/patches/patch-aj40
-rw-r--r--audio/flac/patches/patch-ak13
-rw-r--r--audio/flac/patches/patch-al20
-rw-r--r--audio/flac/patches/patch-am11
-rw-r--r--audio/flac/patches/patch-an29
-rw-r--r--audio/flac/patches/patch-ao11
-rw-r--r--audio/flac/patches/patch-ap29
-rw-r--r--audio/flac/patches/patch-aq11
-rw-r--r--audio/flac/patches/patch-ar40
-rw-r--r--audio/flac/patches/patch-as40
-rw-r--r--audio/flac/patches/patch-at11
-rw-r--r--audio/flac/patches/patch-au11
-rw-r--r--audio/flac/patches/patch-av11
-rw-r--r--audio/flac/patches/patch-aw11
-rw-r--r--audio/flac/patches/patch-ax11
18 files changed, 379 insertions, 0 deletions
diff --git a/audio/flac/patches/patch-ag b/audio/flac/patches/patch-ag
new file mode 100644
index 00000000000..a8528928d80
--- /dev/null
+++ b/audio/flac/patches/patch-ag
@@ -0,0 +1,11 @@
+$NetBSD: patch-ag,v 1.1 2004/11/16 12:05:54 sketch Exp $
+
+--- ./src/libFLAC++/file_decoder.cpp.orig 2004-11-15 18:13:52.244390000 +0000
++++ ./src/libFLAC++/file_decoder.cpp 2004-11-15 18:14:06.428905000 +0000
+@@ -232,5 +232,5 @@
+ instance->error_callback(status);
+ }
+
+- };
++ }
+ };
diff --git a/audio/flac/patches/patch-ah b/audio/flac/patches/patch-ah
new file mode 100644
index 00000000000..34aff724663
--- /dev/null
+++ b/audio/flac/patches/patch-ah
@@ -0,0 +1,40 @@
+$NetBSD: patch-ah,v 1.1 2004/11/16 12:05:54 sketch Exp $
+
+--- ./include/FLAC++/decoder.h.orig 2004-11-15 18:15:26.796748000 +0000
++++ ./include/FLAC++/decoder.h 2004-11-15 18:19:27.953373000 +0000
+@@ -141,7 +141,7 @@
+ virtual void metadata_callback(const ::FLAC__StreamMetadata *metadata) = 0;
+ virtual void error_callback(::FLAC__StreamDecoderErrorStatus status) = 0;
+
+-#if (defined _MSC_VER) || (defined __GNUG__ && (__GNUG__ < 2 || (__GNUG__ == 2 && __GNUC_MINOR__ < 96)))
++#if (defined _MSC_VER) || (defined __GNUG__ && (__GNUG__ < 2 || (__GNUG__ == 2 && __GNUC_MINOR__ < 96))) || (defined __SUNPRO_CC)
+ // lame hack: some MSVC/GCC versions can't see a protected decoder_ from nested State::resolved_as_cstring()
+ friend State;
+ #endif
+@@ -236,7 +236,7 @@
+ virtual void metadata_callback(const ::FLAC__StreamMetadata *metadata) = 0;
+ virtual void error_callback(::FLAC__StreamDecoderErrorStatus status) = 0;
+
+-#if (defined _MSC_VER) || (defined __GNUG__ && (__GNUG__ < 2 || (__GNUG__ == 2 && __GNUC_MINOR__ < 96)))
++#if (defined _MSC_VER) || (defined __GNUG__ && (__GNUG__ < 2 || (__GNUG__ == 2 && __GNUC_MINOR__ < 96))) || (defined __SUNPRO_CC)
+ // lame hack: some MSVC/GCC versions can't see a protected decoder_ from nested State::resolved_as_cstring()
+ friend State;
+ #endif
+@@ -329,7 +329,7 @@
+ virtual void metadata_callback(const ::FLAC__StreamMetadata *metadata) = 0;
+ virtual void error_callback(::FLAC__StreamDecoderErrorStatus status) = 0;
+
+-#if (defined _MSC_VER) || (defined __GNUG__ && (__GNUG__ < 2 || (__GNUG__ == 2 && __GNUC_MINOR__ < 96)))
++#if (defined _MSC_VER) || (defined __GNUG__ && (__GNUG__ < 2 || (__GNUG__ == 2 && __GNUC_MINOR__ < 96))) || (defined __SUNPRO_CC)
+ // lame hack: some MSVC/GCC versions can't see a protected decoder_ from nested State::resolved_as_cstring()
+ friend State;
+ #endif
+@@ -346,7 +346,7 @@
+
+ /* \} */
+
+- };
++ }
+ };
+
+ #endif
diff --git a/audio/flac/patches/patch-ai b/audio/flac/patches/patch-ai
new file mode 100644
index 00000000000..5c0c833b577
--- /dev/null
+++ b/audio/flac/patches/patch-ai
@@ -0,0 +1,29 @@
+$NetBSD: patch-ai,v 1.1 2004/11/16 12:05:54 sketch Exp $
+
+--- ./src/libFLAC++/file_encoder.cpp.orig 2004-11-15 18:20:18.800446000 +0000
++++ ./src/libFLAC++/file_encoder.cpp 2004-11-15 18:26:18.841164000 +0000
+@@ -168,7 +168,7 @@
+ bool File::set_metadata(FLAC::Metadata::Prototype **metadata, unsigned num_blocks)
+ {
+ FLAC__ASSERT(is_valid());
+-#ifdef _MSC_VER
++#if (defined _MSC_VER) || (defined __SUNPRO_CC)
+ // MSVC++ can't handle:
+ // ::FLAC__StreamMetadata *m[num_blocks];
+ // so we do this ugly workaround
+@@ -180,7 +180,7 @@
+ // we can get away with this since we know the encoder will only correct the is_last flags
+ m[i] = const_cast< ::FLAC__StreamMetadata*>((::FLAC__StreamMetadata*)metadata[i]);
+ }
+-#ifdef _MSC_VER
++#if (defined _MSC_VER) || (defined __SUNPRO_CC)
+ // complete the hack
+ const bool ok = (bool)::FLAC__file_encoder_set_metadata(encoder_, m, num_blocks);
+ delete [] m;
+@@ -368,5 +368,5 @@
+ instance->progress_callback(bytes_written, samples_written, frames_written, total_frames_estimate);
+ }
+
+- };
++ }
+ };
diff --git a/audio/flac/patches/patch-aj b/audio/flac/patches/patch-aj
new file mode 100644
index 00000000000..351b7daa464
--- /dev/null
+++ b/audio/flac/patches/patch-aj
@@ -0,0 +1,40 @@
+$NetBSD: patch-aj,v 1.1 2004/11/16 12:05:54 sketch Exp $
+
+--- ./include/FLAC++/encoder.h.orig 2004-11-15 18:22:45.246765000 +0000
++++ ./include/FLAC++/encoder.h 2004-11-15 18:23:16.227987000 +0000
+@@ -159,7 +159,7 @@
+ virtual ::FLAC__StreamEncoderWriteStatus write_callback(const FLAC__byte buffer[], unsigned bytes, unsigned samples, unsigned current_frame) = 0;
+ virtual void metadata_callback(const ::FLAC__StreamMetadata *metadata) = 0;
+
+-#if (defined _MSC_VER) || (defined __GNUG__ && (__GNUG__ < 2 || (__GNUG__ == 2 && __GNUC_MINOR__ < 96)))
++#if (defined _MSC_VER) || (defined __GNUG__ && (__GNUG__ < 2 || (__GNUG__ == 2 && __GNUC_MINOR__ < 96))) || (defined __SUNPRO_CC)
+ // lame hack: some MSVC/GCC versions can't see a protected encoder_ from nested State::resolved_as_cstring()
+ friend State;
+ #endif
+@@ -259,7 +259,7 @@
+ virtual ::FLAC__SeekableStreamEncoderTellStatus tell_callback(FLAC__uint64 *absolute_byte_offset) = 0;
+ virtual ::FLAC__StreamEncoderWriteStatus write_callback(const FLAC__byte buffer[], unsigned bytes, unsigned samples, unsigned current_frame) = 0;
+
+-#if (defined _MSC_VER) || (defined __GNUG__ && (__GNUG__ < 2 || (__GNUG__ == 2 && __GNUC_MINOR__ < 96)))
++#if (defined _MSC_VER) || (defined __GNUG__ && (__GNUG__ < 2 || (__GNUG__ == 2 && __GNUC_MINOR__ < 96))) || (defined __SUNPRO_CC)
+ // lame hack: some MSVC/GCC versions can't see a protected encoder_ from nested State::resolved_as_cstring()
+ friend State;
+ #endif
+@@ -360,7 +360,7 @@
+ protected:
+ virtual void progress_callback(FLAC__uint64 bytes_written, FLAC__uint64 samples_written, unsigned frames_written, unsigned total_frames_estimate);
+
+-#if (defined _MSC_VER) || (defined __GNUG__ && (__GNUG__ < 2 || (__GNUG__ == 2 && __GNUC_MINOR__ < 96)))
++#if (defined _MSC_VER) || (defined __GNUG__ && (__GNUG__ < 2 || (__GNUG__ == 2 && __GNUC_MINOR__ < 96))) || (defined __SUNPRO_CC)
+ // lame hack: some MSVC/GCC versions can't see a protected encoder_ from nested State::resolved_as_cstring()
+ friend State;
+ #endif
+@@ -375,7 +375,7 @@
+
+ /* \} */
+
+- };
++ }
+ };
+
+ #endif
diff --git a/audio/flac/patches/patch-ak b/audio/flac/patches/patch-ak
new file mode 100644
index 00000000000..27648ab12cc
--- /dev/null
+++ b/audio/flac/patches/patch-ak
@@ -0,0 +1,13 @@
+$NetBSD: patch-ak,v 1.1 2004/11/16 12:05:54 sketch Exp $
+
+--- ./include/FLAC++/metadata.h.orig 2004-11-15 18:23:49.895423000 +0000
++++ ./include/FLAC++/metadata.h 2004-11-15 18:24:03.120333000 +0000
+@@ -978,7 +978,7 @@
+
+ /* \} */
+
+- };
++ }
+ };
+
+ #endif
diff --git a/audio/flac/patches/patch-al b/audio/flac/patches/patch-al
new file mode 100644
index 00000000000..6ab7d370e55
--- /dev/null
+++ b/audio/flac/patches/patch-al
@@ -0,0 +1,20 @@
+$NetBSD: patch-al,v 1.1 2004/11/16 12:05:54 sketch Exp $
+
+--- ./src/libFLAC++/metadata.cpp.orig 2004-11-16 11:00:08.317545000 +0000
++++ ./src/libFLAC++/metadata.cpp 2004-11-16 11:00:19.507566000 +0000
+@@ -75,7 +75,7 @@
+ return ret;
+ }
+
+- };
++ }
+
+ FLACPP_API Prototype *clone(const Prototype *object)
+ {
+@@ -1283,5 +1283,5 @@
+ return ret;
+ }
+
+- };
++ }
+ };
diff --git a/audio/flac/patches/patch-am b/audio/flac/patches/patch-am
new file mode 100644
index 00000000000..0c9196f1c9e
--- /dev/null
+++ b/audio/flac/patches/patch-am
@@ -0,0 +1,11 @@
+$NetBSD: patch-am,v 1.1 2004/11/16 12:05:54 sketch Exp $
+
+--- ./src/libFLAC++/seekable_stream_decoder.cpp.orig 2004-11-16 11:01:24.773461000 +0000
++++ ./src/libFLAC++/seekable_stream_decoder.cpp 2004-11-16 11:01:30.719312000 +0000
+@@ -282,5 +282,5 @@
+ instance->error_callback(status);
+ }
+
+- };
++ }
+ };
diff --git a/audio/flac/patches/patch-an b/audio/flac/patches/patch-an
new file mode 100644
index 00000000000..8847fe4267c
--- /dev/null
+++ b/audio/flac/patches/patch-an
@@ -0,0 +1,29 @@
+$NetBSD: patch-an,v 1.1 2004/11/16 12:05:54 sketch Exp $
+
+--- ./src/libFLAC++/seekable_stream_encoder.cpp.orig 2004-11-16 11:02:36.626862000 +0000
++++ ./src/libFLAC++/seekable_stream_encoder.cpp 2004-11-16 11:03:14.289382000 +0000
+@@ -168,7 +168,7 @@
+ bool SeekableStream::set_metadata(FLAC::Metadata::Prototype **metadata, unsigned num_blocks)
+ {
+ FLAC__ASSERT(is_valid());
+-#ifdef _MSC_VER
++#if (defined _MSC_VER) || (defined __SUNPRO_CC)
+ // MSVC++ can't handle:
+ // ::FLAC__StreamMetadata *m[num_blocks];
+ // so we do this ugly workaround
+@@ -180,7 +180,7 @@
+ // we can get away with this since we know the encoder will only correct the is_last flags
+ m[i] = const_cast< ::FLAC__StreamMetadata*>((::FLAC__StreamMetadata*)metadata[i]);
+ }
+-#ifdef _MSC_VER
++#if (defined _MSC_VER) || (defined __SUNPRO_CC)
+ // complete the hack
+ const bool ok = (bool)::FLAC__seekable_stream_encoder_set_metadata(encoder_, m, num_blocks);
+ delete [] m;
+@@ -371,5 +371,5 @@
+ return instance->write_callback(buffer, bytes, samples, current_frame);
+ }
+
+- };
++ }
+ };
diff --git a/audio/flac/patches/patch-ao b/audio/flac/patches/patch-ao
new file mode 100644
index 00000000000..7f8341ecf60
--- /dev/null
+++ b/audio/flac/patches/patch-ao
@@ -0,0 +1,11 @@
+$NetBSD: patch-ao,v 1.1 2004/11/16 12:05:54 sketch Exp $
+
+--- ./src/libFLAC++/stream_decoder.cpp.orig 2004-11-16 11:04:04.924224000 +0000
++++ ./src/libFLAC++/stream_decoder.cpp 2004-11-16 11:04:10.117270000 +0000
+@@ -218,5 +218,5 @@
+ instance->error_callback(status);
+ }
+
+- };
++ }
+ };
diff --git a/audio/flac/patches/patch-ap b/audio/flac/patches/patch-ap
new file mode 100644
index 00000000000..43e915a0407
--- /dev/null
+++ b/audio/flac/patches/patch-ap
@@ -0,0 +1,29 @@
+$NetBSD: patch-ap,v 1.1 2004/11/16 12:05:54 sketch Exp $
+
+--- ./src/libFLAC++/stream_encoder.cpp.orig 2004-11-16 11:05:01.874049000 +0000
++++ ./src/libFLAC++/stream_encoder.cpp 2004-11-16 11:05:29.674481000 +0000
+@@ -169,7 +169,7 @@
+ bool Stream::set_metadata(FLAC::Metadata::Prototype **metadata, unsigned num_blocks)
+ {
+ FLAC__ASSERT(is_valid());
+-#ifdef _MSC_VER
++#if (defined _MSC_VER) || (defined __SUNPRO_CC)
+ // MSVC++ can't handle:
+ // ::FLAC__StreamMetadata *m[num_blocks];
+ // so we do this ugly workaround
+@@ -181,7 +181,7 @@
+ // we can get away with this since we know the encoder will only correct the is_last flags
+ m[i] = const_cast< ::FLAC__StreamMetadata*>((::FLAC__StreamMetadata*)metadata[i]);
+ }
+-#ifdef _MSC_VER
++#if (defined _MSC_VER) || (defined __SUNPRO_CC)
+ // complete the hack
+ const bool ok = (bool)::FLAC__stream_encoder_set_metadata(encoder_, m, num_blocks);
+ delete [] m;
+@@ -356,5 +356,5 @@
+ instance->metadata_callback(metadata);
+ }
+
+- };
++ }
+ };
diff --git a/audio/flac/patches/patch-aq b/audio/flac/patches/patch-aq
new file mode 100644
index 00000000000..317a28632d5
--- /dev/null
+++ b/audio/flac/patches/patch-aq
@@ -0,0 +1,11 @@
+$NetBSD: patch-aq,v 1.1 2004/11/16 12:05:54 sketch Exp $
+
+--- ./src/libOggFLAC++/file_decoder.cpp.orig 2004-11-16 11:08:42.176457000 +0000
++++ ./src/libOggFLAC++/file_decoder.cpp 2004-11-16 11:08:59.074183000 +0000
+@@ -238,5 +238,5 @@
+ instance->error_callback(status);
+ }
+
+- };
++ }
+ };
diff --git a/audio/flac/patches/patch-ar b/audio/flac/patches/patch-ar
new file mode 100644
index 00000000000..7c34b0be12a
--- /dev/null
+++ b/audio/flac/patches/patch-ar
@@ -0,0 +1,40 @@
+$NetBSD: patch-ar,v 1.1 2004/11/16 12:05:54 sketch Exp $
+
+--- ./include/OggFLAC++/decoder.h.orig 2004-11-16 11:09:28.868389000 +0000
++++ ./include/OggFLAC++/decoder.h 2004-11-16 11:10:55.717825000 +0000
+@@ -144,7 +144,7 @@
+ virtual void metadata_callback(const ::FLAC__StreamMetadata *metadata) = 0;
+ virtual void error_callback(::FLAC__StreamDecoderErrorStatus status) = 0;
+
+-#if (defined _MSC_VER) || (defined __GNUG__ && (__GNUG__ < 2 || (__GNUG__ == 2 && __GNUC_MINOR__ < 96)))
++#if (defined _MSC_VER) || (defined __GNUG__ && (__GNUG__ < 2 || (__GNUG__ == 2 && __GNUC_MINOR__ < 96))) || (defined __SUNPRO_CC)
+ // lame hack: some MSVC/GCC versions can't see a protected decoder_ from nested State::resolved_as_cstring()
+ friend State;
+ #endif
+@@ -240,7 +240,7 @@
+ virtual void metadata_callback(const ::FLAC__StreamMetadata *metadata) = 0;
+ virtual void error_callback(::FLAC__StreamDecoderErrorStatus status) = 0;
+
+-#if (defined _MSC_VER) || (defined __GNUG__ && (__GNUG__ < 2 || (__GNUG__ == 2 && __GNUC_MINOR__ < 96)))
++#if (defined _MSC_VER) || (defined __GNUG__ && (__GNUG__ < 2 || (__GNUG__ == 2 && __GNUC_MINOR__ < 96))) || (defined __SUNPRO_CC)
+ // lame hack: some MSVC/GCC versions can't see a protected decoder_ from nested State::resolved_as_cstring()
+ friend State;
+ #endif
+@@ -334,7 +334,7 @@
+ virtual void metadata_callback(const ::FLAC__StreamMetadata *metadata) = 0;
+ virtual void error_callback(::FLAC__StreamDecoderErrorStatus status) = 0;
+
+-#if (defined _MSC_VER) || (defined __GNUG__ && (__GNUG__ < 2 || (__GNUG__ == 2 && __GNUC_MINOR__ < 96)))
++#if (defined _MSC_VER) || (defined __GNUG__ && (__GNUG__ < 2 || (__GNUG__ == 2 && __GNUC_MINOR__ < 96))) || (defined __SUNPRO_CC)
+ // lame hack: some MSVC/GCC versions can't see a protected decoder_ from nested State::resolved_as_cstring()
+ friend State;
+ #endif
+@@ -351,7 +351,7 @@
+
+ /* \} */
+
+- };
++ }
+ };
+
+ #endif
diff --git a/audio/flac/patches/patch-as b/audio/flac/patches/patch-as
new file mode 100644
index 00000000000..ae33be1df07
--- /dev/null
+++ b/audio/flac/patches/patch-as
@@ -0,0 +1,40 @@
+$NetBSD: patch-as,v 1.1 2004/11/16 12:05:54 sketch Exp $
+
+--- ./include/OggFLAC++/encoder.h.orig 2004-11-16 11:11:52.196262000 +0000
++++ ./include/OggFLAC++/encoder.h 2004-11-16 11:12:18.445244000 +0000
+@@ -162,7 +162,7 @@
+ virtual ::FLAC__StreamEncoderWriteStatus write_callback(const FLAC__byte buffer[], unsigned bytes, unsigned samples, unsigned current_frame) = 0;
+ virtual void metadata_callback(const ::FLAC__StreamMetadata *metadata) = 0;
+
+-#if (defined _MSC_VER) || (defined __GNUG__ && (__GNUG__ < 2 || (__GNUG__ == 2 && __GNUC_MINOR__ < 96)))
++#if (defined _MSC_VER) || (defined __GNUG__ && (__GNUG__ < 2 || (__GNUG__ == 2 && __GNUC_MINOR__ < 96))) || (defined __SUNPRO_CC)
+ // lame hack: some MSVC/GCC versions can't see a protected encoder_ from nested State::resolved_as_cstring()
+ friend State;
+ #endif
+@@ -263,7 +263,7 @@
+ virtual ::FLAC__SeekableStreamEncoderTellStatus tell_callback(FLAC__uint64 *absolute_byte_offset) = 0;
+ virtual ::FLAC__StreamEncoderWriteStatus write_callback(const FLAC__byte buffer[], unsigned bytes, unsigned samples, unsigned current_frame) = 0;
+
+-#if (defined _MSC_VER) || (defined __GNUG__ && (__GNUG__ < 2 || (__GNUG__ == 2 && __GNUC_MINOR__ < 96)))
++#if (defined _MSC_VER) || (defined __GNUG__ && (__GNUG__ < 2 || (__GNUG__ == 2 && __GNUC_MINOR__ < 96))) || (defined __SUNPRO_CC)
+ // lame hack: some MSVC/GCC versions can't see a protected encoder_ from nested State::resolved_as_cstring()
+ friend State;
+ #endif
+@@ -365,7 +365,7 @@
+ protected:
+ virtual void progress_callback(FLAC__uint64 bytes_written, FLAC__uint64 samples_written, unsigned frames_written, unsigned total_frames_estimate);
+
+-#if (defined _MSC_VER) || (defined __GNUG__ && (__GNUG__ < 2 || (__GNUG__ == 2 && __GNUC_MINOR__ < 96)))
++#if (defined _MSC_VER) || (defined __GNUG__ && (__GNUG__ < 2 || (__GNUG__ == 2 && __GNUC_MINOR__ < 96))) || (defined __SUNPRO_CC)
+ // lame hack: some MSVC/GCC versions can't see a protected encoder_ from nested State::resolved_as_cstring()
+ friend State;
+ #endif
+@@ -380,7 +380,7 @@
+
+ /* \} */
+
+- };
++ }
+ };
+
+ #endif
diff --git a/audio/flac/patches/patch-at b/audio/flac/patches/patch-at
new file mode 100644
index 00000000000..9c0842e3448
--- /dev/null
+++ b/audio/flac/patches/patch-at
@@ -0,0 +1,11 @@
+$NetBSD: patch-at,v 1.1 2004/11/16 12:05:54 sketch Exp $
+
+--- ./src/libOggFLAC++/file_encoder.cpp.orig 2004-11-16 11:12:44.142879000 +0000
++++ ./src/libOggFLAC++/file_encoder.cpp 2004-11-16 11:12:52.120091000 +0000
+@@ -349,5 +349,5 @@
+ instance->progress_callback(bytes_written, samples_written, frames_written, total_frames_estimate);
+ }
+
+- };
++ }
+ };
diff --git a/audio/flac/patches/patch-au b/audio/flac/patches/patch-au
new file mode 100644
index 00000000000..47442fa4101
--- /dev/null
+++ b/audio/flac/patches/patch-au
@@ -0,0 +1,11 @@
+$NetBSD: patch-au,v 1.1 2004/11/16 12:05:54 sketch Exp $
+
+--- ./src/libOggFLAC++/seekable_stream_decoder.cpp.orig 2004-11-16 11:14:14.924132000 +0000
++++ ./src/libOggFLAC++/seekable_stream_decoder.cpp 2004-11-16 11:14:19.658710000 +0000
+@@ -288,5 +288,5 @@
+ instance->error_callback(status);
+ }
+
+- };
++ }
+ };
diff --git a/audio/flac/patches/patch-av b/audio/flac/patches/patch-av
new file mode 100644
index 00000000000..6018a2c5d97
--- /dev/null
+++ b/audio/flac/patches/patch-av
@@ -0,0 +1,11 @@
+$NetBSD: patch-av,v 1.1 2004/11/16 12:05:54 sketch Exp $
+
+--- ./src/libOggFLAC++/seekable_stream_encoder.cpp.orig 2004-11-16 11:15:04.815910000 +0000
++++ ./src/libOggFLAC++/seekable_stream_encoder.cpp 2004-11-16 11:15:09.120236000 +0000
+@@ -362,5 +362,5 @@
+ return instance->write_callback(buffer, bytes, samples, current_frame);
+ }
+
+- };
++ }
+ };
diff --git a/audio/flac/patches/patch-aw b/audio/flac/patches/patch-aw
new file mode 100644
index 00000000000..1a546481319
--- /dev/null
+++ b/audio/flac/patches/patch-aw
@@ -0,0 +1,11 @@
+$NetBSD: patch-aw,v 1.1 2004/11/16 12:05:54 sketch Exp $
+
+--- ./src/libOggFLAC++/stream_decoder.cpp.orig 2004-11-16 11:15:53.283905000 +0000
++++ ./src/libOggFLAC++/stream_decoder.cpp 2004-11-16 11:15:57.951343000 +0000
+@@ -224,5 +224,5 @@
+ instance->error_callback(status);
+ }
+
+- };
++ }
+ };
diff --git a/audio/flac/patches/patch-ax b/audio/flac/patches/patch-ax
new file mode 100644
index 00000000000..fd42b8ccdbc
--- /dev/null
+++ b/audio/flac/patches/patch-ax
@@ -0,0 +1,11 @@
+$NetBSD: patch-ax,v 1.1 2004/11/16 12:05:54 sketch Exp $
+
+--- ./src/libOggFLAC++/stream_encoder.cpp.orig 2004-11-16 11:17:13.087258000 +0000
++++ ./src/libOggFLAC++/stream_encoder.cpp 2004-11-16 11:17:17.124073000 +0000
+@@ -342,5 +342,5 @@
+ instance->metadata_callback(metadata);
+ }
+
+- };
++ }
+ };