diff options
| author | François Hodierne | 2014-02-24 13:23:05 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2014-02-24 13:23:05 +0000 |
| commit | f48d7275389fbc9e1d42aaee2b64b353795a5c9c (patch) | |
| tree | a2f56ed3f35808e04c7fac84d8c670b625fd46a1 /Library/Formula | |
| parent | 75d6f5bcaabbb250a127f3bdb751f4ff1114fe27 (diff) | |
| download | homebrew-f48d7275389fbc9e1d42aaee2b64b353795a5c9c.tar.bz2 | |
libmemcached: add optional sasl support
Closes #26692.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/libmemcached.rb | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/Library/Formula/libmemcached.rb b/Library/Formula/libmemcached.rb index 0386caf49..4533f6554 100644 --- a/Library/Formula/libmemcached.rb +++ b/Library/Formula/libmemcached.rb @@ -5,12 +5,24 @@ class Libmemcached < Formula url 'https://launchpad.net/libmemcached/1.0/1.0.17/+download/libmemcached-1.0.17.tar.gz' sha1 '1023bc8c738b1f5b8ea2cd16d709ec6b47c3efa8' - depends_on 'memcached' + option "with-sasl", "Build with sasl support" + + if build.with? "sasl" + depends_on "memcached" => "enable-sasl" + else + depends_on "memcached" + end def install ENV.append_to_cflags "-undefined dynamic_lookup" if MacOS.version <= :leopard - system "./configure", "--prefix=#{prefix}" + args = ["--prefix=#{prefix}"] + + if build.with? "sasl" + args << "--with-memcached-sasl=#{Formula.factory("memcached").bin}/memcached" + end + + system "./configure", *args system "make install" end |
