From 316fcdbcea551f2c90c67a2b4ae8a210537b1d35 Mon Sep 17 00:00:00 2001 From: Larry Shaffer Date: Wed, 13 Nov 2013 18:43:30 -0700 Subject: libkml: force internal third-party libs to be linked statically Closes #24282. Signed-off-by: Adam Vandenberg --- Library/Formula/libkml.rb | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/libkml.rb b/Library/Formula/libkml.rb index da12cfa76..159228aa0 100644 --- a/Library/Formula/libkml.rb +++ b/Library/Formula/libkml.rb @@ -13,11 +13,25 @@ class Libkml < Formula depends_on :libtool end - conflicts_with 'uriparser', :because => 'both install `liburiparser.dylib`' + def patches + p = [] + # Fix compilation with clang and gcc 4.7+ + # https://code.google.com/p/libkml/issues/detail?id=179 + p << DATA - # Fix compilation with clang and gcc 4.7+ - # https://code.google.com/p/libkml/issues/detail?id=179 - def patches; DATA; end + # Correct an issue where internal third-party libs (libminizip and liburiparser) + # are installed as dylibs. liburiparser conflicts with uriparser formula. + # libminizip conflicts with new formula, and some of its symbols have been + # renamed with prefixes of "libkml_", i.e, can't be linked against for other builds + # Fix just forces internal libs to be linked statically until the following + # is addressed upstream: https://code.google.com/p/libkml/issues/detail?id=50 + if build.head? + p << "https://gist.github.com/dakcarto/7420023/raw" + else + p << "https://gist.github.com/dakcarto/7419882/raw" + end + return p + end def install if build.head? -- cgit v1.2.3