@@ -19,15 +19,31 @@ class RofsFilteredMac < Formula
19
19
depends_on MacfuseRequirement
20
20
depends_on :macos
21
21
22
+ patch :DATA
23
+
22
24
def install
23
25
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"
28
31
end
29
32
30
33
test do
31
34
system "#{ bin } /rofs-filtered" , "--version"
32
35
end
33
36
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