diff options
| author | Larry Shaffer | 2013-11-13 18:43:30 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2013-11-13 21:08:44 -0800 |
| commit | 316fcdbcea551f2c90c67a2b4ae8a210537b1d35 (patch) | |
| tree | 22a3fb8dfadddb96aaba1bedf40a747f8e8550a7 /Library | |
| parent | 006540266285d52e91f1514f43e965587082907b (diff) | |
| download | homebrew-316fcdbcea551f2c90c67a2b4ae8a210537b1d35.tar.bz2 | |
libkml: force internal third-party libs to be linked statically
Closes #24282.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/libkml.rb | 22 |
1 files changed, 18 insertions, 4 deletions
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? |
