Update of /cvsroot/fink/experimental/dmrrsn In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16307
Added Files: id3lib3.7-shlibs.info id3lib3.7-shlibs.patch Log Message: package for id3lib3.7 for backwards compatibility --- NEW FILE: id3lib3.7-shlibs.info --- Package: id3lib3.7-shlibs Version: 3.7.13 Revision: 7 Source: mirror:sourceforge:id3lib/id3lib-%v.tar.gz Source-MD5: 19ab352ac8d522ebcabb85f2445bfced SourceDirectory: id3lib-%v BuildDepends: doxygen, popt, gcc3.3 Conflicts: id3lib37-shlibs Replaces: id3lib37-shlibs Patch: %n.patch SetCXXFLAGS: -Wno-long-double -L../src/.libs GCC: 3.3 UpdateConfigGuess: true UpdateConfigGuessInDirs: popt UpdateLibtool: true UpdateLibtoolInDirs: popt ConfigureParams: --mandir='${prefix}/share/man' --enable-static --enable-shared CompileScript: << export CC=gcc-3.3; export CXX=g++-3.3; ./configure %c make CC=gcc-3.3 CXX=g++-3.3 << InstallScript: << make install prefix=%i rm %i/lib/libid3.a %i/lib/libid3.la %i/lib/libid3.dylib rm -R %i/include rm -R %i/bin << DocFiles: COPYING Description: Shared libraries for manipulating ID3v1 and ID3v2 tags Shlibs: %p/lib/libid3-3.7.13.dylib 14.0.0 %n (>= 3.7.13-2) DescDetail: << An open-source, cross-platform software development library for reading, writing, and manipulating ID3v1 and ID3v2 tags. It is an on-going project whose primary goals are full compliance with the ID3v2 standard, portability across several platforms, and providing a powerful and feature-rich API with a highly stable and efficient implementation. << DescPackaging: << The package is provided for the benefit of any existing installed package which depends on id3lib3.7-shlibs. New packages should use id3lib4 instead. This package requires GCC 3.3 to compile. << License: GPL Maintainer: Chris Zubrzycki <[EMAIL PROTECTED]> Homepage: http://id3lib.sourceforge.net/ --- NEW FILE: id3lib3.7-shlibs.patch --- diff -ruN id3lib-3.7.13/src/tag_parse_lyrics3.cpp id3lib-3.7.13.new/src/tag_parse_lyrics3.cpp --- id3lib-3.7.13/src/tag_parse_lyrics3.cpp Mon Sep 11 02:34:06 2000 +++ id3lib-3.7.13.new/src/tag_parse_lyrics3.cpp Thu Sep 26 23:33:14 2002 @@ -200,7 +200,7 @@ // reserve enough space for lyrics3 + id3v1 tag const size_t max_lyr_size = 11 + 5100 + 9 + 128; - size_t lyr_buffer_size = MIN(max_lyr_size, file.tellg()); + size_t lyr_buffer_size = MIN(max_lyr_size, (size_t)file.tellg()); file.seekg(- static_cast<long>(lyr_buffer_size), ios::cur); if (!file) @@ -274,7 +274,7 @@ // Using binary minus rather than unary minus to avoid compiler warning - file.seekg(- MIN(file.tellg(), + file.seekg(- MIN((size_t)file.tellg(), (static_cast<long>(lyr_size) + 6 + 9 + 3)), ios::cur); if (!file) { diff -ruN id3lib-3.7.13/src/utils.cpp id3lib-3.7.13.new/src/utils.cpp --- id3lib-3.7.13/src/utils.cpp Mon Sep 11 03:46:32 2000 +++ id3lib-3.7.13.new/src/utils.cpp Tue Oct 1 21:47:19 2002 @@ -25,6 +25,15 @@ // http://download.sourceforge.net/id3lib/ #include <ctype.h> +#include <fstream> +using namespace std; + +#if (defined(__GNUC__) && __GNUC__ == 2) +#define NOCREATE ios::nocreate +#else +#define NOCREATE ((std::ios_base::openmode)0) +#endif + #include "utils.h" #if defined HAVE_CONFIG_H @@ -231,7 +240,7 @@ bool exists(const char *name) { - ifstream file(name, ios::nocreate); + ifstream file(name, NOCREATE); return file.is_open() != 0; } @@ -275,7 +284,7 @@ { file.close(); } - file.open(name, ios::in | ios::out | ios::binary | ios::nocreate); + file.open(name, ios::in | ios::out | ios::binary | NOCREATE); if (!file) { return ID3E_ReadOnly; @@ -290,7 +299,7 @@ { file.close(); } - file.open(name, ios::in | ios::binary | ios::nocreate); + file.open(name, ios::in | ios::binary | NOCREATE); if (!file) { return ID3E_NoFile; ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Fink-commits mailing list Fink-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-commits