mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-28 11:59:43 -05:00
pixman uses includes from X11. Declaring Env.x11 makes this explicit (even if it may work on your system without). Xcode without CLTs needs to set this explicit in order to add the right sdk path. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
32 lines
758 B
Ruby
32 lines
758 B
Ruby
require 'formula'
|
|
|
|
class Pixman < Formula
|
|
homepage 'http://www.cairographics.org/'
|
|
url 'http://cairographics.org/releases/pixman-0.24.2.tar.gz'
|
|
sha1 'acfc724d8032d3c0677b4466807e120e0c867678'
|
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
def options
|
|
[["--universal", "Build a universal binary."]]
|
|
end
|
|
|
|
def install
|
|
ENV.x11
|
|
ENV.universal_binary if ARGV.build_universal?
|
|
if ENV.compiler == :llvm
|
|
if MacOS.xcode_version >= "4.1"
|
|
ENV.clang
|
|
else
|
|
ENV.gcc_4_2
|
|
end
|
|
end
|
|
|
|
# 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
|