homebrew-core/Formula/geoip.rb

28 lines
876 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Geoip < Formula
homepage 'http://www.maxmind.com/app/c'
2012-07-07 18:08:22 +00:00
url 'http://geolite.maxmind.com/download/geoip/api/c/GeoIP-1.4.8.tar.gz'
sha1 '7bafb9918e3c35a6ccc71bb14945245d45c4b796'
# These are needed for the autoreconf it always tries to run.
2012-07-07 18:08:22 +00:00
depends_on :automake
depends_on :libtool
2012-08-10 04:47:59 +00:00
option :universal
def install
2012-08-10 04:47:59 +00:00
ENV.universal_binary if build.universal?
# Fixes a build error on Lion when configure does a variant of autoreconf
# that results in a botched Makefile, causing this error:
# No rule to make target '../libGeoIP/libGeoIP.la', needed by 'geoiplookup'
# This works on Snow Leopard also when it tries but fails to run autoreconf.
system "autoreconf", "-ivf"
2012-08-10 04:47:59 +00:00
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
end
end