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.