aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/pixman.rb
blob: 49b80a22f190ce8cd60371bc03dd53514e6fca29 (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
require 'formula'

class Pixman < Formula
  homepage 'http://cairographics.org/'
  url 'http://cairographics.org/releases/pixman-0.24.4.tar.gz'
  sha1 'efaa09789128ebc42d17a11d2e350b7217a7cd05'

  depends_on 'pkg-config' => :build

  fails_with :llvm

  def options
    [["--universal", "Build a universal binary."]]
  end

  def install
    ENV.x11
    ENV.universal_binary if ARGV.build_universal?

    # Disable gtk as it is only used to build tests
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--enable-gtk=no"
    system "make install"
  end
end