aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/jansson.rb
blob: b100b391c1a1090a821581cfd7f1922e05b49605 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require 'formula'

class Jansson < Formula
  url 'http://www.digip.org/jansson/releases/jansson-2.3.tar.gz'
  homepage 'http://www.digip.org/jansson/'
  md5 '17d92cb6200cc06d8403134cb37ad2b8'

  def options
    [["--universal", "Build a universal binary."]]
  end

  def install
    ENV.universal_binary if ARGV.build_universal?
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    system "make install"
  end
end