Skip to content

Commit cbc43f0

Browse files
rofs-filtered-mac: update build
1 parent b2198e3 commit cbc43f0

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

Formula/rofs-filtered-mac.rb

+20-4
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,31 @@ class RofsFilteredMac < Formula
1919
depends_on MacfuseRequirement
2020
depends_on :macos
2121

22+
patch :DATA
23+
2224
def install
2325
setup_fuse
24-
mkdir "build" do
25-
system "cmake", "..", "-DCMAKE_INSTALL_SYSCONFDIR=#{etc}", *fuse_cmake_args, *std_cmake_args
26-
system "make", "install"
27-
end
26+
system "cmake", "-S", ".", "-B", "build",
27+
"-DCMAKE_INSTALL_SYSCONFDIR=#{etc}", "-DCMAKE_C_COMPILER=/usr/bin/cc",
28+
*fuse_cmake_args, *std_cmake_args
29+
system "cmake", "--build", "build"
30+
system "cmake", "--install", "build"
2831
end
2932

3033
test do
3134
system "#{bin}/rofs-filtered", "--version"
3235
end
3336
end
37+
__END__
38+
diff --git a/CMakeLists.txt b/CMakeLists.txt
39+
index 53a6687..fc700e6 100644
40+
--- a/CMakeLists.txt
41+
+++ b/CMakeLists.txt
42+
@@ -24,6 +24,7 @@ include_directories(${CMAKE_CURRENT_BINARY_DIR})
43+
44+
# create and configure targets
45+
add_executable(rofs-filtered rofs-filtered.c)
46+
+target_include_directories(rofs-filtered PUBLIC /usr/local/include/fuse)
47+
target_link_libraries(rofs-filtered ${FUSE_LIBRARIES})
48+
49+
# configure installation

0 commit comments

Comments
 (0)