aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2012-03-14 06:54:15 -0700
committerAdam Vandenberg2012-03-14 06:54:15 -0700
commitb933aabc3f3dfc4ff4098d9706fa26a133adf9d0 (patch)
tree5fb786b673ad57fbfbbb7c0fff2fd1d898a41d52 /Library
parent2673ee6e8de7384f7c42460464cb2886e3d5c8a0 (diff)
downloadhomebrew-b933aabc3f3dfc4ff4098d9706fa26a133adf9d0.tar.bz2
id3lib: use MacPorts 'main' patch to work with clang
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/id3lib.rb11
1 files changed, 7 insertions, 4 deletions
diff --git a/Library/Formula/id3lib.rb b/Library/Formula/id3lib.rb
index 0e198b423..17a6a090c 100644
--- a/Library/Formula/id3lib.rb
+++ b/Library/Formula/id3lib.rb
@@ -7,8 +7,11 @@ class Id3lib < Formula
md5 '19f27ddd2dda4b2d26a559a4f0f402a7'
def patches
- {:p1 => DATA }
- end unless ARGV.build_head?
+ p = []
+ p << DATA unless ARGV.build_head?
+ # Fix main defined with unsigned int instead of int
+ p << "https://trac.macports.org/export/90780/trunk/dports/audio/id3lib/files/id3lib-main.patch"
+ end
fails_with_llvm "Segfault during linking", :build => 2326
@@ -18,8 +21,8 @@ class Id3lib < Formula
end
end
-# Wrong header size... I believe this bug is fixed in id3lib HEAD.
-# Bug: http://sourceforge.net/tracker/index.php?func=detail&amp;aid=697951&amp;group_id=979&amp;atid=100979
+# Wrong header size... I believe this bug is fixed in id3lib HEAD. See:
+# http://sourceforge.net/tracker/index.php?func=detail&amp;aid=697951&amp;group_id=979&amp;atid=100979
__END__
diff --git a/src/mp3_parse.cpp b/src/mp3_parse.cpp
index 41d8560..fc8992b 100755