2da1555e8b
ext2fuse has been broken for a while because it's an old piece of code that needs a few cflags for clang. Macports also defines a different precompiler variable, `-D__FreeBSD__=10` which it turns out fixes all our build errors and aslo fixes the need we had for defining `SSIZE_T` - Add to CFLAGS `-D__FreeBSD__=10 -DENABLE_SWAPFS` like MP. - Add a `--std=gnu89` flag if compiler is clang - Remove the unneeded CFLAG. - Works great with superenv. Fixes Homebrew/homebrew#12207 Closes Homebrew/homebrew#15070. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
20 lines
628 B
Ruby
20 lines
628 B
Ruby
require 'formula'
|
|
|
|
class Ext2fuse < Formula
|
|
homepage 'http://sourceforge.net/projects/ext2fuse'
|
|
url 'http://sourceforge.net/projects/ext2fuse/files/ext2fuse/0.8.1/ext2fuse-src-0.8.1.tar.gz'
|
|
sha1 '6a13fce7842ead1485a4f48cb57c1272d990b5a5'
|
|
|
|
depends_on 'fuse4x'
|
|
depends_on 'e2fsprogs'
|
|
|
|
def install
|
|
ENV.append 'LIBS', "-lfuse4x"
|
|
ENV.append 'CFLAGS', '-D__FreeBSD__=10 -DENABLE_SWAPFS'
|
|
ENV.append 'CFLAGS', '--std=gnu89' if ENV.compiler == :clang
|
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
"--prefix=#{prefix}"
|
|
system "make install"
|
|
end
|
|
end
|