Skip to content

Commit

Permalink
HEAD build (i.e. develop branch) depends on pkg-config
Browse files Browse the repository at this point in the history
  • Loading branch information
smessmer committed Apr 21, 2021
1 parent 8f8047a commit 1b207a7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Formula/cryfs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ class Cryfs < Formula
depends_on MacfuseRequirement
end
depends_on "conan" => :build
depends_on "pkg-config" => :build
end

depends_on "cmake" => :build
Expand All @@ -70,7 +71,11 @@ def install
"-DBUILD_TESTING=off",
]

system "cmake", ".", *configure_args, *std_cmake_args
# macFUSE puts pkg-config into /usr/local/lib/pkgconfig, which is not included in
# homebrew's default PKG_CONFIG_PATH. We need to tell pkg-config about this path for our build
with_env "PKG_CONFIG_PATH" => ENV["PKG_CONFIG_PATH"] + ":/usr/local/lib/pkgconfig" do
system "cmake", ".", *configure_args, *std_cmake_args
end
system "ninja", "install"
end

Expand Down

0 comments on commit 1b207a7

Please sign in to comment.