diff options
| author | Tryn Mirell | 2013-10-22 17:53:55 -0500 |
|---|---|---|
| committer | Adam Vandenberg | 2013-10-24 07:27:12 -0700 |
| commit | 0ac2e4dacf75facbeff6c71579334a0d7308f786 (patch) | |
| tree | b30ff0e16159dcead1b9794db0b2c81383f69e93 /Library/Formula | |
| parent | 458b2d965c421c7dbe4013a5a2298d9f5d48e69f (diff) | |
| download | homebrew-0ac2e4dacf75facbeff6c71579334a0d7308f786.tar.bz2 | |
id3lib: Consolidate patches. Fix compiling with clang.
Closes #23446.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/id3lib.rb | 28 |
1 files changed, 9 insertions, 19 deletions
diff --git a/Library/Formula/id3lib.rb b/Library/Formula/id3lib.rb index 8674b5c58..8ab18acb5 100644 --- a/Library/Formula/id3lib.rb +++ b/Library/Formula/id3lib.rb @@ -7,11 +7,17 @@ class Id3lib < Formula head "cvs://:pserver:anonymous@id3lib.cvs.sourceforge.net:/cvsroot/id3lib:id3lib-devel" + depends_on 'autoconf' => :build + depends_on 'automake' => :build + depends_on 'libtool' => :build + def patches p = [] - p << DATA unless build.head? - # Fix main defined with unsigned int instead of int + p << "https://trac.macports.org/export/112431/trunk/dports/audio/id3lib/files/id3lib-vbr-overflow.patch" p << "https://trac.macports.org/export/90780/trunk/dports/audio/id3lib/files/id3lib-main.patch" + p << "https://trac.macports.org/export/112430/trunk/dports/audio/id3lib/files/no-iomanip.h.patch" + p << "https://trac.macports.org/export/112430/trunk/dports/audio/id3lib/files/automake.patch" + p << "https://trac.macports.org/export/112430/trunk/dports/audio/id3lib/files/boolcheck.patch" end fails_with :llvm do @@ -20,25 +26,9 @@ class Id3lib < Formula end def install + system "autoreconf -fi" system "./configure", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}" system "make install" end end - -# Wrong header size... I believe this bug is fixed in id3lib HEAD. See: -# http://sourceforge.net/tracker/index.php?func=detail&aid=697951&group_id=979&atid=100979 -__END__ -diff --git a/src/mp3_parse.cpp b/src/mp3_parse.cpp -index 41d8560..fc8992b 100755 ---- a/src/mp3_parse.cpp -+++ b/src/mp3_parse.cpp -@@ -465,7 +465,7 @@ bool Mp3Info::Parse(ID3_Reader& reader, size_t mp3size) - // from http://www.xingtech.com/developer/mp3/ - - const size_t VBR_HEADER_MIN_SIZE = 8; // "xing" + flags are fixed -- const size_t VBR_HEADER_MAX_SIZE = 116; // frames, bytes, toc and scale are optional -+ const size_t VBR_HEADER_MAX_SIZE = 120; // frames, bytes, toc and scale are optional - - if (mp3size >= vbr_header_offest + VBR_HEADER_MIN_SIZE) - { |
