2014-10-30 17:02:34 +00:00
|
|
|
require "formula"
|
2010-04-26 16:29:38 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Cairo < Formula
|
2014-10-30 17:02:34 +00:00
|
|
|
homepage "http://cairographics.org/"
|
|
|
|
url "http://cairographics.org/releases/cairo-1.14.0.tar.xz"
|
2014-10-31 21:50:47 +00:00
|
|
|
mirror "http://www.mirrorservice.org/sites/ftp.netbsd.org/pub/pkgsrc/distfiles/cairo-1.14.0.tar.xz"
|
2014-10-30 17:02:34 +00:00
|
|
|
sha256 "2cf5f81432e77ea4359af9dcd0f4faf37d015934501391c311bfd2d19a0134b7"
|
2010-04-26 16:29:38 +00:00
|
|
|
|
2014-02-22 15:18:23 +00:00
|
|
|
bottle do
|
2014-11-03 19:25:25 +00:00
|
|
|
revision 1
|
|
|
|
sha1 "e2db7a27b4b9ddd78875f8fa1820c756b03ed1ac" => :yosemite
|
|
|
|
sha1 "2e975c2003ea16d8186e63c3e59dcc4963227a9e" => :mavericks
|
|
|
|
sha1 "b55dd832e2f702cb9685f3b3822b29f7dec0a34a" => :mountain_lion
|
2014-02-22 15:18:23 +00:00
|
|
|
end
|
|
|
|
|
2012-08-23 16:49:08 +00:00
|
|
|
keg_only :provided_pre_mountain_lion
|
2012-08-04 09:10:55 +00:00
|
|
|
|
2012-08-10 04:47:23 +00:00
|
|
|
option :universal
|
|
|
|
|
2014-10-30 17:02:34 +00:00
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "freetype"
|
|
|
|
depends_on "fontconfig"
|
|
|
|
depends_on "libpng"
|
|
|
|
depends_on "pixman"
|
|
|
|
depends_on "glib"
|
2014-04-07 02:50:41 +00:00
|
|
|
depends_on :x11 => :recommended
|
2011-05-10 21:24:49 +00:00
|
|
|
|
2010-04-26 16:29:38 +00:00
|
|
|
def install
|
2012-08-10 04:47:23 +00:00
|
|
|
ENV.universal_binary if build.universal?
|
2012-03-31 11:31:23 +00:00
|
|
|
|
2012-02-16 20:41:29 +00:00
|
|
|
args = %W[
|
|
|
|
--disable-dependency-tracking
|
2012-08-10 04:47:23 +00:00
|
|
|
--prefix=#{prefix}
|
2013-12-09 21:10:40 +00:00
|
|
|
--enable-gobject=yes
|
2014-11-03 18:43:46 +00:00
|
|
|
--enable-svg=yes
|
2014-04-07 02:50:41 +00:00
|
|
|
--with-x
|
2012-08-10 04:47:23 +00:00
|
|
|
]
|
2012-03-31 11:31:23 +00:00
|
|
|
|
2014-04-07 02:50:41 +00:00
|
|
|
if build.without? "x11"
|
|
|
|
args.delete "--with-x"
|
|
|
|
args << "--enable-xlib=no" << "--enable-xlib-xrender=no"
|
2014-06-02 09:40:24 +00:00
|
|
|
args << "--enable-quartz-image"
|
2012-10-27 11:00:50 +00:00
|
|
|
end
|
|
|
|
|
2014-10-30 17:02:34 +00:00
|
|
|
args << "--enable-xcb=no" if MacOS.version <= :leopard
|
2012-02-16 20:41:29 +00:00
|
|
|
|
|
|
|
system "./configure", *args
|
2010-04-26 16:29:38 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|