2010-04-24 17:33:55 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Fontconfig < Formula
|
2010-04-24 17:33:55 +00:00
|
|
|
homepage 'http://fontconfig.org/'
|
2012-08-04 09:09:01 +00:00
|
|
|
url 'http://fontconfig.org/release/fontconfig-2.10.1.tar.gz'
|
|
|
|
sha1 'e377cbe989cd22d3a10020309c906ecbbcac0043'
|
2010-04-24 17:33:55 +00:00
|
|
|
|
2011-03-16 05:01:31 +00:00
|
|
|
keg_only :provided_by_osx,
|
2012-08-04 09:09:35 +00:00
|
|
|
"Leopard comes with version 2.4.x, which is too old for many packages." \
|
2012-08-09 05:21:14 +00:00
|
|
|
if MacOS::X11.installed?
|
2010-04-24 17:33:55 +00:00
|
|
|
|
2012-08-04 09:09:35 +00:00
|
|
|
depends_on :freetype
|
2011-03-16 05:01:31 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2010-10-16 16:00:07 +00:00
|
|
|
|
2010-04-24 17:33:55 +00:00
|
|
|
def install
|
|
|
|
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|