diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/doxygen.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Library/Formula/doxygen.rb b/Library/Formula/doxygen.rb index ceb6f2c9a..a77e2af3a 100644 --- a/Library/Formula/doxygen.rb +++ b/Library/Formula/doxygen.rb @@ -21,8 +21,16 @@ class Doxygen < Formula end def install + # libclang is installed under #{HOMEBREW_PREFIX}/opt/llvm/ + if build.with? 'libclang' + inreplace 'configure' do |s| + s.gsub! /libclang_hdr_dir=\".*$/, "libclang_hdr_dir=\"#{HOMEBREW_PREFIX}/opt/llvm/include\"" + s.gsub! /libclang_lib_dir=\".*$/, "libclang_lib_dir=\"#{HOMEBREW_PREFIX}/opt/llvm/lib\"" + end + end + args = ["--prefix", prefix] - args << '--with-libclang' if build.with? 'libclang' + args << '--with-libclang-static' if build.with? 'libclang' args << '--with-doxywizard' if build.with? 'doxywizard' system "./configure", *args # Per Macports: |
