homebrew-core/Formula/geoip.rb
Tojek Anselm a9653b8818 geoip --universal option
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-11-02 06:55:57 -07:00

17 lines
457 B
Ruby

require 'formula'
class Geoip <Formula
url 'http://geolite.maxmind.com/download/geoip/api/c/GeoIP-1.4.6.tar.gz'
homepage 'http://www.maxmind.com/app/c'
md5 'cb14b1beeb40631a12676b11ca0c309a'
def options
[["--universal", "Build a universal binary."]]
end
def install
ENV.universal_binary if ARGV.include? "--universal"
system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking"
system "make install"
end
end