require/macfuse: add PKG_CONFIG env var

This should cover most autotools `configure` runs.
This commit is contained in:
Adrian Ho 2021-07-20 11:48:43 +08:00
parent 7d2644262b
commit 67f7facf52

View file

@ -61,7 +61,6 @@ class Formula
mkdir "#{alt_fuse_root}/bin" do mkdir "#{alt_fuse_root}/bin" do
cp path/"../../lib/fuse-pkg-config", "." cp path/"../../lib/fuse-pkg-config", "."
inreplace "fuse-pkg-config", "%FUSE_ROOT%", "#{alt_fuse_root}" inreplace "fuse-pkg-config", "%FUSE_ROOT%", "#{alt_fuse_root}"
#ENV.prepend_path "PATH", "#{alt_fuse_root}/bin"
end end
end end
@ -92,6 +91,7 @@ class Formula
ENV.append "CGO_CPPFLAGS", "-I#{alt_fuse_root}/include" ENV.append "CGO_CPPFLAGS", "-I#{alt_fuse_root}/include"
ENV.append "CGO_CPPFLAGS", "-D_USE_FILE_OFFSET_BITS=64" ENV.append "CGO_CPPFLAGS", "-D_USE_FILE_OFFSET_BITS=64"
ENV.append "CGO_LDFLAGS", "-L#{alt_fuse_root}/lib" ENV.append "CGO_LDFLAGS", "-L#{alt_fuse_root}/lib"
ENV.append "PKG_CONFIG", "#{fuse_pkgconfig}"
end end
def setup_fuse def setup_fuse