mirror of
https://github.com/gromgit/homebrew-fuse.git
synced 2025-12-08 09:11:37 +00:00
NOTE: I don't have an M1 Mac, so the only testing I can do is with a non-`/usr/local` Intel Homebrew installation. This should take care of "`cc` shim forbids `/usr/local` if Homebrew not installed under `/usr/local`", which is the default setup for M1 Homebrew.
54 lines
1.9 KiB
Ruby
54 lines
1.9 KiB
Ruby
require_relative "../require/macfuse"
|
|
|
|
class SimpleMtpfsMac < Formula
|
|
desc "Simple MTP fuse filesystem driver"
|
|
homepage "https://github.com/phatina/simple-mtpfs"
|
|
url "https://github.com/phatina/simple-mtpfs/archive/v0.4.0.tar.gz"
|
|
sha256 "1d011df3fa09ad0a5c09d48d84c03e6cddf86390af9eb4e0c178193f32f0e2fc"
|
|
license "GPL-2.0-or-later"
|
|
|
|
bottle do
|
|
root_url "https://github.com/gromgit/homebrew-fuse/releases/download/simple-mtpfs-mac-0.4.0"
|
|
sha256 cellar: :any, big_sur: "ab2daeee7f6e6c6bd9795f34b7d1746b3e9add149e4a33e88db29be02de20541"
|
|
sha256 cellar: :any, catalina: "6a07721c8bbd594f8ceeaf3a2503e780d3eb6ce3c4431ca785c40c8c71e8900c"
|
|
sha256 cellar: :any, mojave: "bbe032821fb0ea78e661a16fd79a185d969e8b2a602fd990c8ceb035cc7fee84"
|
|
end
|
|
|
|
depends_on "autoconf" => :build
|
|
depends_on "autoconf-archive" => :build # required for AX_CXX_COMPILE_STDCXX_17
|
|
depends_on "automake" => :build
|
|
depends_on "pkg-config" => :build
|
|
depends_on "libmtp"
|
|
depends_on MacfuseRequirement
|
|
depends_on :macos
|
|
|
|
patch :DATA
|
|
|
|
def install
|
|
setup_fuse
|
|
system "./autogen.sh"
|
|
system "./configure", "--prefix=#{prefix}"
|
|
system "make"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
system bin/"simple-mtpfs", "-h"
|
|
end
|
|
end
|
|
__END__
|
|
diff --git a/configure.ac b/configure.ac
|
|
index 321cfec..a5e9294 100644
|
|
--- a/configure.ac
|
|
+++ b/configure.ac
|
|
@@ -25,8 +25,8 @@ test "x$os_name" == "xDarwin" || AC_CHECK_FUNCS([fdatasync])
|
|
|
|
PKG_CHECK_MODULES([FUSE], [fuse >= 2.7.3])
|
|
if test "x$os_name" == "xDarwin"; then
|
|
- AC_SUBST([FUSE_CFLAGS],["-D_FILE_OFFSET_BITS=64 -D_DARWIN_USE_64_BIT_INODE -I/usr/local/include/osxfuse"])
|
|
- AC_SUBST([FUSE_LIBS],["-L/usr/local/lib -losxfuse -pthread -liconv"])
|
|
+ AC_SUBST([FUSE_CFLAGS],["-D_FILE_OFFSET_BITS=64 -D_DARWIN_USE_64_BIT_INODE -I/usr/local/include/fuse"])
|
|
+ AC_SUBST([FUSE_LIBS],["-L/usr/local/lib -lfuse -pthread -liconv"])
|
|
fi
|
|
|
|
PKG_CHECK_MODULES(
|