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>
Older versions of XQuartz, including the one distributed by Apple with
OS X, contain an insufficient version of pixman for recent cairo.
Potentially the :pixman dep could be taught to only delegate to XQuartz
if it is up to date enough, but until then, always depend on our pixman.
FixesHomebrew/homebrew#14072.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Cairo-1.10.2 doesn't build well with link time optimization.
Patch `configure` to remove `-flto`. This fixes the build error
with llvm. This also fixes a build error when brewing cairo as
a universal library.
Add `--universal` option. Works if gettext & glib are universal.
Patch `configure` to change `-Werror-implicit-function-declaration`
to a warning with `-Wimplicit-function-declaration`. Fixes a
build error when universal & clang.
Tested on Lion with clang and llvm from XCode-4.3.3.
Tested by building py2cairo and `import cairo`.
FixesHomebrew/homebrew#12923 and Homebrew/homebrew#10400
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This causes configure to pick the wrong libpixman on at least 10.6, and
issues with SVG on at least 10.7. So remove it, and we'll try to fix any
remaining issues with a different approach, e.g. special ENV vars for
freetype.
cf Homebrew/homebrew#11036, Homebrew/homebrew#11042, Homebrew/homebrew#11049.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
XCB is a more "modern" way of communicating with X11 servers than
straight XLib. It is required by some X11 applications. Enabling
support in cairo should not affect applications which don't use it
explicitly.
ClosesHomebrew/homebrew#9598.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
* Use new "url" features
* Use keg_only DSL
* Use "skip_clean :all" DSL
* Whitespace and style cleanups
* Make bash invocations less silly
* Use new man2-man8 helpers
* Remove "FileUtils." since it is included in Formula
* Use real names for deps instead of aliases
* ENV.x11 now updates path, so remove that from individual brews