2011-09-01 10:56:47 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Fuse4x < Formula
|
|
|
|
homepage 'http://fuse4x.org/'
|
2012-03-07 22:52:30 +00:00
|
|
|
url 'https://github.com/fuse4x/fuse.git', :tag => "fuse4x_0_9_0"
|
|
|
|
version "0.9.0"
|
2011-09-01 10:56:47 +00:00
|
|
|
|
2012-03-22 03:17:01 +00:00
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "libtool" => :build
|
2011-09-01 10:56:47 +00:00
|
|
|
depends_on 'gettext'
|
|
|
|
depends_on 'fuse4x-kext'
|
2012-02-28 17:18:43 +00:00
|
|
|
|
2011-09-01 10:56:47 +00:00
|
|
|
def install
|
2011-09-20 17:13:16 +00:00
|
|
|
# Build universal if the hardware can handle it---otherwise 32 bit only
|
|
|
|
MacOS.prefer_64_bit? ? ENV.universal_binary : ENV.m32
|
2011-09-01 10:56:47 +00:00
|
|
|
|
2012-02-27 12:21:50 +00:00
|
|
|
system "autoreconf", "--force", "--install"
|
2011-09-20 17:13:16 +00:00
|
|
|
|
2012-03-18 20:07:17 +00:00
|
|
|
# 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}"
|
2011-09-01 10:56:47 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|