Update libgpod formula to prepend PKG_CONFIG_PATH for dependencies during installation, ensuring proper configuration with Homebrew-managed libraries.
This commit is contained in:
@@ -19,6 +19,13 @@ class Libgpod < Formula
|
|||||||
depends_on "sqlite"
|
depends_on "sqlite"
|
||||||
|
|
||||||
def install
|
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
|
# 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
|
# (e.g. looking for automake-1.7). Using autoreconf is the standard Homebrew
|
||||||
# way and works with modern autotools.
|
# way and works with modern autotools.
|
||||||
|
|||||||
Reference in New Issue
Block a user