require 'formula' class Libmemcached < Formula homepage 'http://libmemcached.org' url 'https://launchpad.net/libmemcached/1.0/1.0.15/+download/libmemcached-1.0.15.tar.gz' sha1 'd49ceec8efcc13c2a6ab15416d9caeeeeaa49a48' depends_on 'memcached' def install ENV.append_to_cflags "-undefined dynamic_lookup" if MacOS.version == :leopard system "./configure", "--prefix=#{prefix}" system "make install" end end