ae836cb907
- Upgrade cairo to version 1.12.4 - Remove the patch that's not needed anymore. - Add `env :std if build.universal?` to fix missing `__uint128_t` Fixes Homebrew/homebrew#15029 Closes Homebrew/homebrew#15560. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
40 lines
1.1 KiB
Ruby
40 lines
1.1 KiB
Ruby
require 'formula'
|
|
|
|
# Use a mirror because of:
|
|
# http://lists.cairographics.org/archives/cairo/2012-September/023454.html
|
|
|
|
class Cairo < Formula
|
|
homepage 'http://cairographics.org/'
|
|
url 'http://cairographics.org/releases/cairo-1.12.4.tar.xz'
|
|
mirror 'http://ftp-nyc.osuosl.org/pub/gentoo/distfiles/cairo-1.12.4.tar.xz'
|
|
sha256 'a467b2e1f04bfd3f848370ce5e82cfe0a7f712bac05a04d133bc34c94f677a28'
|
|
|
|
keg_only :provided_pre_mountain_lion
|
|
|
|
option :universal
|
|
option 'without-x', 'Build without X11 support'
|
|
|
|
env :std if build.universal?
|
|
|
|
depends_on :libpng
|
|
depends_on 'pixman'
|
|
depends_on 'pkg-config' => :build
|
|
depends_on 'xz'=> :build
|
|
depends_on 'glib' unless build.include? 'without-x'
|
|
depends_on :x11 unless build.include? 'without-x'
|
|
|
|
def install
|
|
ENV.universal_binary if build.universal?
|
|
|
|
args = %W[
|
|
--disable-dependency-tracking
|
|
--prefix=#{prefix}
|
|
]
|
|
|
|
args << '--with-x' unless build.include? 'without-x'
|
|
args << '--enable-xcb=no' if MacOS.version == :leopard
|
|
|
|
system "./configure", *args
|
|
system "make install"
|
|
end
|
|
end
|