diff options
| -rw-r--r-- | Library/Formula/mongo-c.rb | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Library/Formula/mongo-c.rb b/Library/Formula/mongo-c.rb index e79b30df5..7be75c1f4 100644 --- a/Library/Formula/mongo-c.rb +++ b/Library/Formula/mongo-c.rb @@ -12,7 +12,12 @@ class MongoC < Formula sha1 "b547c663729e6ec4944462c8d305643dd83d452f" => :mountain_lion end - head "https://github.com/mongodb/mongo-c-driver.git" + head do + url "https://github.com/mongodb/mongo-c-driver.git" + depends_on "autoconf" => :build + depends_on "automake" => :build + depends_on "libtool" => :build + end depends_on "pkg-config" => :build depends_on "libbson" @@ -22,6 +27,10 @@ class MongoC < Formula # --enable-sasl=no: https://jira.mongodb.org/browse/CDRIVER-447 args = ["--prefix=#{prefix}", "--enable-sasl=no"] + if build.head? + system "./autogen.sh" + end + if build.with?('openssl') args << "--enable-ssl=yes" else |
