blob: 42e03c6d7ab9beba4f56ee0e875db0ae8e7c8211 (
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
  | 
require 'formula'
class Fuse4x < Formula
  homepage 'http://fuse4x.github.com'
  url 'https://github.com/fuse4x/fuse/tarball/fuse4x_0_9_1'
  version '0.9.1'
  sha1 '31eff485411f106daa81ef6c7c3d31abbdcd41b4'
  # Always use newer versions of these tools
  depends_on 'automake' => :build
  depends_on 'libtool' => :build
  depends_on 'gettext'
  depends_on 'fuse4x-kext'
  def install
    # Build universal if the hardware can handle it---otherwise 32 bit only
    MacOS.prefer_64_bit? ? ENV.universal_binary : ENV.m32
    system "autoreconf", "--force", "--install"
    # force 64bit inodes on 10.5. On 10.6+ this is no-op.
    ENV.append_to_cflags "-D_DARWIN_USE_64_BIT_INODE"
    system "./configure", "--disable-dependency-tracking",
                          "--disable-static",
                          "--prefix=#{prefix}"
    system "make install"
  end
end
  |