aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorPatrick Li2013-10-23 09:31:27 +1300
committerAdam Vandenberg2013-10-29 07:26:49 -0700
commitbc37329aedc8962cb46f6ba8be03a476d028f135 (patch)
tree2dfdc0fd70b2f32741d011b925b2bd61a59d6e4e /Library
parentf5df4c71b1b63b1e09b1942d9cdddd028487cef0 (diff)
downloadhomebrew-bc37329aedc8962cb46f6ba8be03a476d028f135.tar.bz2
sef: add "--with-brewed-openssl"
Closes #21449. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/serf.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Formula/serf.rb b/Library/Formula/serf.rb
index b5b02f46c..70c5bf9f0 100644
--- a/Library/Formula/serf.rb
+++ b/Library/Formula/serf.rb
@@ -12,10 +12,12 @@ class Serf < Formula
end
option :universal
+ option 'with-brewed-openssl', 'Include OpenSSL support via Homebrew'
depends_on :libtool
depends_on 'sqlite'
depends_on 'scons' => :build
+ depends_on 'openssl' if build.with? 'brewed-openssl'
def install
# SConstruct merges in gssapi linkflags using scons's MergeFlags,
@@ -28,6 +30,7 @@ class Serf < Formula
# scons ignores our compiler and flags unless explicitly passed
args = %W[PREFIX=#{prefix} GSSAPI=/usr CC=#{ENV.cc}
CFLAGS=#{ENV.cflags} LINKFLAGS=#{ENV.ldflags}]
+ args << "OPENSSL=#{Formula.factory('openssl').opt_prefix}" if build.with? 'brewed-openssl'
system "scons", *args
system "scons install"
end