homebrew-core/Formula/pixman.rb
Naja v. Schmude b792fda39f Pixman: Support Xcode 4.2
Closes Homebrew/homebrew#8121.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2011-10-14 18:39:22 -07:00

23 lines
613 B
Ruby

require 'formula'
class Pixman < Formula
homepage 'http://www.cairographics.org/'
url 'http://cairographics.org/releases/pixman-0.22.2.tar.gz'
sha1 'b42a7aec5119b1e5ce8eed06452645fa3a4892ac'
depends_on 'pkg-config' => :build
def install
if ENV.compiler == :llvm
if MacOS.xcode_version >= "4.1"
ENV.clang
else
ENV.gcc_4_2
end
end
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--enable-gtk=no" # Don't need to build tests
system "make install"
end
end