2010-01-04 23:47:07 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Pixman < Formula
|
2010-01-04 23:47:07 +00:00
|
|
|
homepage 'http://www.cairographics.org/'
|
2011-11-16 19:09:07 +00:00
|
|
|
url 'http://cairographics.org/releases/pixman-0.24.0.tar.gz'
|
|
|
|
sha1 '5459916d979e3db93aac45ffda2412cd0500f393'
|
2010-01-04 23:47:07 +00:00
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2010-01-04 23:47:07 +00:00
|
|
|
|
|
|
|
def install
|
2011-09-09 01:17:43 +00:00
|
|
|
if ENV.compiler == :llvm
|
2011-10-14 20:25:02 +00:00
|
|
|
if MacOS.xcode_version >= "4.1"
|
2011-09-09 01:17:43 +00:00
|
|
|
ENV.clang
|
|
|
|
else
|
|
|
|
ENV.gcc_4_2
|
|
|
|
end
|
|
|
|
end
|
2011-03-14 21:39:00 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--enable-gtk=no" # Don't need to build tests
|
2010-01-04 23:47:07 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|