diff options
author | Rene Ladan <rene@FreeBSD.org> | 2013-07-26 19:19:20 +0000 |
---|---|---|
committer | Rene Ladan <rene@FreeBSD.org> | 2013-07-26 19:19:20 +0000 |
commit | 66fee909266a1dedf3dfc1f03bb0841380d78805 (patch) | |
tree | 4c98d494bc4532b5dd5b19f4e47bcb3babf104c2 /audio/prokyon3/files/patch-src_qmbflacfile.cpp | |
parent | Remove support for Qt3/kde in preparation for full Qt3/kde3 removal (diff) |
KDE3 and QT3 expired on 2013-07-01, remove these ports.
Unfortunately, this also affects some ports using QT3 as a GUI toolkit.
Changes to infrastructure files:
- bsd.kde.mk : obsolete, remove
- bsd.qt.mk : note that a CONFLICTS_BUILD line can probably go after a while
- CHANGES : document the removals from bsd.port.mk
- KNOBS : remove KDE and QT (KDE4 and QT4 should be used instead)
- MOVED : add the removed ports
PR: ports/180745
Submitted by: rene
Approved by: portmgr (bapt)
Exp-run by: bapt
Diffstat (limited to 'audio/prokyon3/files/patch-src_qmbflacfile.cpp')
-rw-r--r-- | audio/prokyon3/files/patch-src_qmbflacfile.cpp | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/audio/prokyon3/files/patch-src_qmbflacfile.cpp b/audio/prokyon3/files/patch-src_qmbflacfile.cpp deleted file mode 100644 index b31a82664721..000000000000 --- a/audio/prokyon3/files/patch-src_qmbflacfile.cpp +++ /dev/null @@ -1,67 +0,0 @@ ---- src/qmbflacfile.cpp.orig 2006-02-01 16:47:52.000000000 +0900 -+++ src/qmbflacfile.cpp 2008-06-04 02:06:11.000000000 +0900 -@@ -33,6 +33,12 @@ - #include <musicbrainz/mb_c.h> - #include <FLAC++/metadata.h> - -+#if !defined(FLAC_API_VERSION_CURRENT) || FLAC_API_VERSION_CURRENT < 8 -+#define LEGACY_FLAC -+#else -+#undef LEGACY_FLAC -+#endif -+ - QMBFLACFile::QMBFLACFile() - : QMBFile(), FLAC::Decoder::File(), offset(0), decode_error(false) { - //we do nothing here. we want to allow checking of return value, -@@ -57,17 +63,27 @@ - int lastslash = filename.findRev('/'); - metadata.SetFileName(filename.right(filename.length() - lastslash - 1)); - -+#ifdef LEGACY_FLAC - //set the filename with the FLAC::Decoder::File class - set_filename(fullfilename.latin1()); -+#endif - - //tell the decoder to call the metadata callback on vorbis comments so we can get the metadata already stored in the file - set_metadata_respond(FLAC__METADATA_TYPE_VORBIS_COMMENT); - - //Start reading the FLAC file -+#ifdef LEGACY_FLAC - FLAC__FileDecoderState state = init(); - - if (state != FLAC__FILE_DECODER_OK) { - qWarning("QMBFLACFile::Extract(): error opening file: %i (%s).", state, FLAC__FileDecoderStateString[state]); -+#else -+ FLAC__StreamDecoderState state; -+ FLAC__StreamDecoderInitStatus initstate = init(fullfilename.latin1()); -+ -+ if (initstate != FLAC__STREAM_DECODER_INIT_STATUS_OK) { -+ qWarning("QMBFLACFile::Extract(): error opening file: %i (%s).", initstate, FLAC__StreamDecoderStateString[initstate]); -+#endif - finish(); - return -1; - } -@@ -75,7 +91,11 @@ - //read through all the metadata so our callback can catch it all - if(!process_until_end_of_metadata ()) { - state = get_state(); -+#ifdef LEGACY_FLAC - qWarning("QMBFLACFile::Extract(): error getting metadata: %i (%s).", state, FLAC__FileDecoderStateString[state]); -+#else -+ qWarning("QMBFLACFile::Extract(): error getting metadata: %i (%s).", state, FLAC__StreamDecoderStateString[state] ); -+#endif - decode_error = true; - finish(); - return -2; -@@ -108,7 +128,11 @@ - while (!decode_error && offset < (unsigned long) bufferlen) { - if (!process_single()) { - state = get_state(); -+#ifdef LEGACY_FLAC - qWarning("QMBFLACFile::Extract(): error getting raw data: %i (%s).", state, FLAC__FileDecoderStateString[state]); -+#else -+ qWarning("QMBFLACFile::Extract(): error getting raw data: %i (%s).", state, FLAC__StreamDecoderStateString[state]); -+#endif - decode_error = true; - finish(); - return -2; |