aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMisty De Meo2013-07-29 18:43:21 -0700
committerMisty De Meo2013-07-29 18:45:03 -0700
commit3684d35e47cd2b162a71ac094cbcfa037462dd95 (patch)
tree97045d5276061e3430141df2384d19752664a148 /Library/Formula
parentebed0c6dc9ca26f8257451cb3eb1b18fa39ccaba (diff)
downloadhomebrew-3684d35e47cd2b162a71ac094cbcfa037462dd95.tar.bz2
dc3dd: fix compilation on >= Lion
Fixes #21510.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/dc3dd.rb13
1 files changed, 9 insertions, 4 deletions
diff --git a/Library/Formula/dc3dd.rb b/Library/Formula/dc3dd.rb
index 62cd9f92a..59315fe02 100644
--- a/Library/Formula/dc3dd.rb
+++ b/Library/Formula/dc3dd.rb
@@ -11,10 +11,15 @@ class Dc3dd < Formula
def patches; DATA; end
def install
- system "./configure", "--disable-debug",
- "--disable-dependency-tracking",
- "--prefix=#{prefix}",
- "--infodir=#{info}"
+ args = %W[--disable-debug
+ --disable-dependency-tracking
+ --prefix=#{prefix}
+ --infodir=#{info}]
+
+ # Check for stpncpy is broken, and the replacement fails to compile
+ # on Lion and newer; see https://github.com/mxcl/homebrew/issues/21510
+ args << "gl_cv_func_stpncpy=yes" if MacOS.version >= :lion
+ system "./configure", *args
system "make"
system "make install"
prefix.install %w[Options_Reference.txt Sample_Commands.txt]