homebrew-core/Formula/afflib.rb

78 lines
2.2 KiB
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Afflib < Formula
2013-11-05 04:02:44 +00:00
homepage 'https://github.com/simsong/AFFLIBv3'
url 'https://github.com/simsong/AFFLIBv3/archive/v3.7.4.tar.gz'
sha1 '589dae6f8439e97ab080026701cd0caa0636ac22'
2014-07-03 12:32:20 +00:00
bottle do
cellar :any
sha1 "c72b3fd14e5d7d5095c4d46c6c77619315112a20" => :mavericks
sha1 "28b07c6caae8ef85348b51ce80561fe10392ad8b" => :mountain_lion
sha1 "3af09ce1f21443b5a072979d97f7cc41035c3643" => :lion
end
2014-06-01 01:15:09 +00:00
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
depends_on "expat" => :optional
depends_on "osxfuse" => :optional
2014-03-18 03:44:46 +00:00
# This patch fixes a bug reported upstream over there
# https://github.com/simsong/AFFLIBv3/issues/4
patch :DATA
def install
2014-06-01 01:15:09 +00:00
system "./bootstrap.sh"
args = ["--disable-dependency-tracking", "--prefix=#{prefix}"]
2014-03-01 21:52:25 +00:00
if build.with? "osxfuse"
ENV['CPPFLAGS'] = "-I#{Formula["osxfuse"].include}/osxfuse"
args << "--enable-fuse"
end
system "./configure", *args
system "make install"
end
end
__END__
diff --git a/bootstrap.sh b/bootstrap.sh
index 3a7af59..7510933 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -6,7 +6,7 @@
echo Bootstrap script to create configure script using autoconf
echo
# use the installed ones first, not matter what the path says.
-export PATH=/usr/bin:/usr/sbin:/bin:$PATH
+#export PATH=/usr/bin:/usr/sbin:/bin:$PATH
touch NEWS README AUTHORS ChangeLog stamp-h
aclocal
LIBTOOLIZE=glibtoolize
diff --git a/configure.ac b/configure.ac
index 47a3e4c..845235b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -244,10 +244,6 @@ AC_ARG_ENABLE(fuse,
if test "x${enable_fuse}" = "xyes" ; then
AC_MSG_NOTICE([FUSE requested])
CPPFLAGS="-D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=26 $CPPFLAGS"
- if test `uname -s` = Darwin ; then
- AC_MSG_NOTICE([FUSE IS NOT SUPPORTED ON MACOS])
- enable_fuse=no
- fi
AC_CHECK_HEADER([fuse.h],,
AC_MSG_NOTICE([fuse.h not found; Disabling FUSE support.])
enable_fuse=no)
@@ -258,7 +254,7 @@ AFFUSE_BIN=
if test "${enable_fuse}" = "yes"; then
AC_DEFINE([USE_FUSE],1,[Use FUSE to mount AFF images])
AFFUSE_BIN='affuse$(EXEEXT)'
- FUSE_LIBS=-lfuse
+ FUSE_LIBS=-losxfuse
fi
AC_SUBST(AFFUSE_BIN)
AM_PROG_CC_C_O dnl for affuse