2014-10-20 20:45:40 +00:00
|
|
|
require "formula"
|
2011-09-01 10:56:47 +00:00
|
|
|
|
|
|
|
class Fuse4x < Formula
|
2014-10-20 20:45:40 +00:00
|
|
|
homepage "http://fuse4x.github.io"
|
|
|
|
url "https://github.com/fuse4x/fuse/archive/fuse4x_0_9_2.tar.gz"
|
|
|
|
sha1 "3a9700f716eff930dcd2426772c642a09adcc73a"
|
2012-07-28 22:46:24 +00:00
|
|
|
|
2014-10-20 20:45:40 +00:00
|
|
|
depends_on "autoconf" => :build
|
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "libtool" => :build
|
|
|
|
depends_on "gettext" => :build
|
2014-08-29 19:05:12 +00:00
|
|
|
depends_on ConflictsWithBinaryOsxfuse
|
2014-10-20 20:45:40 +00:00
|
|
|
depends_on UnsignedKextRequirement
|
|
|
|
depends_on "fuse4x-kext"
|
2012-02-28 17:18:43 +00:00
|
|
|
|
2014-10-20 20:45:40 +00:00
|
|
|
conflicts_with "osxfuse", :because => "both install `fuse.pc`"
|
2013-11-17 04:24:06 +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
|
|
|
|
2014-10-20 20:45:40 +00:00
|
|
|
inreplace "makeconf.sh", "libtoolize", "glibtoolize"
|
|
|
|
system "./makeconf.sh"
|
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}"
|
2014-10-20 20:45:40 +00:00
|
|
|
system "make", "install"
|
2011-09-01 10:56:47 +00:00
|
|
|
end
|
|
|
|
end
|