diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/mongo-c.rb | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Library/Formula/mongo-c.rb b/Library/Formula/mongo-c.rb index 2498d519d..e79b30df5 100644 --- a/Library/Formula/mongo-c.rb +++ b/Library/Formula/mongo-c.rb @@ -16,11 +16,19 @@ class MongoC < Formula depends_on "pkg-config" => :build depends_on "libbson" - depends_on "openssl" + depends_on "openssl" => :recommended def install # --enable-sasl=no: https://jira.mongodb.org/browse/CDRIVER-447 - system "./configure", "--prefix=#{prefix}", "--enable-sasl=no" + args = ["--prefix=#{prefix}", "--enable-sasl=no"] + + if build.with?('openssl') + args << "--enable-ssl=yes" + else + args << "--enable-ssl=no" + end + + system "./configure", *args system "make", "install" end end |
