2011-11-01 10:25:23 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Ext2fuse < Formula
|
|
|
|
homepage 'http://sourceforge.net/projects/ext2fuse'
|
2014-02-27 14:19:55 +00:00
|
|
|
url 'https://downloads.sourceforge.net/project/ext2fuse/ext2fuse/0.8.1/ext2fuse-src-0.8.1.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '6a13fce7842ead1485a4f48cb57c1272d990b5a5'
|
2011-11-01 10:25:23 +00:00
|
|
|
|
2013-11-17 04:11:59 +00:00
|
|
|
depends_on 'osxfuse'
|
2011-11-01 10:25:23 +00:00
|
|
|
depends_on 'e2fsprogs'
|
|
|
|
|
|
|
|
def install
|
2013-11-17 04:11:59 +00:00
|
|
|
ENV.append "LIBS", "-losxfuse"
|
|
|
|
ENV.append "CFLAGS", "-D__FreeBSD__=10 -DENABLE_SWAPFS -I#{HOMEBREW_PREFIX}/opt/osxfuse/include/osxfuse/fuse"
|
|
|
|
ENV.append "CFLAGS", "--std=gnu89" if ENV.compiler == :clang
|
2011-11-01 10:25:23 +00:00
|
|
|
|
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|