From 09c49423bfffe8163719cde8cd8a308a02687250 Mon Sep 17 00:00:00 2001 From: David Helkowski Date: Thu, 22 Jan 2026 14:31:58 +0900 Subject: [PATCH] Update libgpod formula to prepend PKG_CONFIG_PATH for dependencies during installation, ensuring proper configuration with Homebrew-managed libraries. --- Formula/libgpod.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Formula/libgpod.rb b/Formula/libgpod.rb index 5b4a8f9f7..49f12a789 100644 --- a/Formula/libgpod.rb +++ b/Formula/libgpod.rb @@ -19,6 +19,13 @@ class Libgpod < Formula depends_on "sqlite" def install + # Ensure pkg-config can find Homebrew keg .pc files during configure. + ENV.prepend_path "PKG_CONFIG_PATH", Formula["libplist"].opt_lib/"pkgconfig" + ENV.prepend_path "PKG_CONFIG_PATH", Formula["sqlite"].opt_lib/"pkgconfig" + ENV.prepend_path "PKG_CONFIG_PATH", Formula["glib"].opt_lib/"pkgconfig" + ENV.prepend_path "PKG_CONFIG_PATH", Formula["glib"].opt_share/"pkgconfig" + ENV.prepend_path "PKG_CONFIG_PATH", Formula["gdk-pixbuf"].opt_lib/"pkgconfig" + # Upstream's autogen.sh is very old and may hardcode ancient automake checks # (e.g. looking for automake-1.7). Using autoreconf is the standard Homebrew # way and works with modern autotools.