homebrew-core/Formula/pixman.rb

24 lines
613 B
Ruby
Raw Normal View History

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/'
url 'http://cairographics.org/releases/pixman-0.22.2.tar.gz'
sha1 'b42a7aec5119b1e5ce8eed06452645fa3a4892ac'
2010-01-04 23:47:07 +00:00
depends_on 'pkg-config' => :build
2010-01-04 23:47:07 +00:00
def install
if ENV.compiler == :llvm
if MacOS.xcode_version == "4.1"
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