We use PKG_CONFIG_LIBDIR to reset the default search path, overriding
whatever is baked into the pkg-config executable. This way, we can later
append XQuartz paths here while still allowing any brewed libs to take
precedence, keg-only or not.
Hopefully this will resolve any remaining issues, and let us get rid of
some per-formula hacks.
c.f. Homebrew/homebrew#14474.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Eventually we should try to just get this from XQuartz, but for now
let's depend on cairo for consistency.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Add the flag --disable-visibility to configure, fixes compile errors
with Clang and llvm from CLT-4.3. That flag means don't use ELF
visibility attributes.
FixesHomebrew/homebrew#10283.
ClosesHomebrew/homebrew#10287.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Determining build-time deps as part of the download strategy is probably
a Homebrew 2 topic, so avoid the "you need to install xz" warning by
declaring xz as a dep where used.
The "don't use xz if there are alternatives" policy is still in effect,
though.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
If gobject-introspection is installed, these formulae will attempt to
generate introspection data. For this to "just work", it needs to be
available across all related formulae, which is a project for another
day; until then it just causes build failures.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>