aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/geoip.rb
blob: f9e59368b094eb0c82f1610acb8da333ea05ce08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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.build_universal?
    system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking"
    system "make install"
  end
end