blob: 8d41434bc0b8ea41e1531fa41cf48e7931b67c1d (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
 | require 'formula'
class Nload < Formula
  homepage 'http://www.roland-riegel.de/nload/'
  url 'http://www.roland-riegel.de/nload/nload-0.7.4.tar.gz'
  sha1 'bb0a168c93c588ad4fd5e3a653b3620b79ada1e8'
  fails_with :llvm do
    build 2334
  end
  depends_on "autoconf" => :build
  depends_on "automake" => :build
  # Patching configure.in file to make configure compile on Mac OS.
  # Patch taken from MacPorts.
  patch :DATA
  def install
    system "./run_autotools"
    system "./configure", "--disable-debug",
                          "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    # Unset LDFLAGS, "-s" causes the linker to crash
    system "make", "install", "LDFLAGS="
  end
end
__END__
diff --git a/configure.in b/configure.in
index 87ecc88..4df8dc3 100644
--- a/configure.in
+++ b/configure.in
@@ -38,7 +38,7 @@ case $host_os in
 
         AC_CHECK_FUNCS([memset])
         ;;
-    *bsd*)
+    *darwin*)
         AC_DEFINE(HAVE_BSD, 1, [Define to 1 if your build target is BSD.])
         AM_CONDITIONAL(HAVE_BSD, true)
 |