diff options
Diffstat (limited to 'Library/Formula/tomcat-native.rb')
| -rw-r--r-- | Library/Formula/tomcat-native.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Library/Formula/tomcat-native.rb b/Library/Formula/tomcat-native.rb index 7efb08872..7e7243ba3 100644 --- a/Library/Formula/tomcat-native.rb +++ b/Library/Formula/tomcat-native.rb @@ -12,15 +12,23 @@ class TomcatNative < Formula sha1 "03d417ff8af69aba03c872e3bf7b3de9ca43d44b" => :mountain_lion end + option "with-apr", "Include APR support via Homebrew" + depends_on "libtool" => :build depends_on "tomcat" => :recommended depends_on :java => "1.7" depends_on "openssl" + depends_on "homebrew/apache/apr" => :optional def install cd "jni/native" do + if build.with? 'apr' + apr_path = "#{Formula['homebrew/apache/apr'].prefix}" + else + apr_path = "#{MacOS.sdk_path}/usr" + end system "./configure", "--prefix=#{prefix}", - "--with-apr=#{MacOS.sdk_path}/usr", + "--with-apr=#{apr_path}", "--with-java-home=#{`/usr/libexec/java_home`.chomp}", "--with-ssl=#{Formula["openssl"].prefix}" |
