aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/fontconfig.rb
blob: 397069012ac65daa2dd07644ced864a0d83bc7cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
require 'formula'

class Fontconfig < Formula
  homepage 'http://fontconfig.org/'
  url 'http://fontconfig.org/release/fontconfig-2.10.95.tar.bz2'
  sha1 'f9f4a25b730a9c56f951db6fec639ddeeb92a9d4'

  bottle do
    # Included with X11 so no bottle needed before Mountain Lion.
    sha1 '8429234eb972b93a02dba0925d23c10c1705da77' => :mavericks
    sha1 '8f5835b617380b08d2b38e1f0ee4ee976daa34c5' => :mountain_lion
  end

  keg_only :provided_pre_mountain_lion

  option :universal

  depends_on :freetype
  depends_on 'pkg-config' => :build

  def install
    ENV.universal_binary if build.universal?
    system "./configure", "--disable-dependency-tracking",
                          "--with-add-fonts=/Library/Fonts,~/Library/Fonts",
                          "--prefix=#{prefix}"
    system "make install"
  end
end