aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/mp3splt.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Formula/mp3splt.rb b/Library/Formula/mp3splt.rb
index cda965be2..07e917950 100644
--- a/Library/Formula/mp3splt.rb
+++ b/Library/Formula/mp3splt.rb
@@ -8,6 +8,11 @@ class Mp3splt < Formula
depends_on 'libmp3splt'
def install
+ # Use of getline(); see https://sourceforge.net/p/mp3splt/bugs/149/
+ if MacOS.version <= :snow_leopard
+ inreplace 'src/freedb.c', /getline\(&(.+, )&(.+, .+\) == )-1/, 'fgets(\1\2NULL'
+ end
+
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"