2014-04-27 22:38:38 +00:00
|
|
|
require "formula"
|
2010-02-14 01:59:16 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Clutter < Formula
|
2014-04-29 17:26:45 +00:00
|
|
|
homepage "https://wiki.gnome.org/Projects/Clutter"
|
2014-09-23 06:48:58 +00:00
|
|
|
url "http://ftp.gnome.org/pub/gnome/sources/clutter/1.20/clutter-1.20.0.tar.xz"
|
|
|
|
sha256 "cc940809e6e1469ce349c4bddb0cbcc2c13c087d4fc15cda9278d855ee2d1293"
|
2012-10-24 06:11:19 +00:00
|
|
|
|
2014-08-25 04:18:07 +00:00
|
|
|
bottle do
|
2014-09-23 06:48:58 +00:00
|
|
|
sha1 "f9ef97d254247e2e0ab98fbaf3723d577c115ab4" => :mavericks
|
|
|
|
sha1 "063234b823140c65483e9ac0dbbf4af63764431b" => :mountain_lion
|
|
|
|
sha1 "7565ae43a559f988271cfdf8a745cc7919659efe" => :lion
|
2014-08-25 04:18:07 +00:00
|
|
|
end
|
|
|
|
|
2014-04-27 22:38:38 +00:00
|
|
|
option "without-x", "Build without X11 support"
|
2010-02-14 01:59:16 +00:00
|
|
|
|
2014-04-27 22:38:38 +00:00
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "glib"
|
|
|
|
depends_on "gdk-pixbuf"
|
|
|
|
depends_on "cogl"
|
|
|
|
depends_on "cairo" # for cairo-gobject
|
|
|
|
depends_on "atk"
|
|
|
|
depends_on "pango"
|
|
|
|
depends_on "json-glib"
|
|
|
|
depends_on :x11 => "2.5.1" if build.with? "x"
|
|
|
|
depends_on "gobject-introspection"
|
2010-02-14 01:59:16 +00:00
|
|
|
|
|
|
|
def install
|
2012-10-24 06:11:19 +00:00
|
|
|
args = %W[
|
|
|
|
--disable-dependency-tracking
|
|
|
|
--disable-debug
|
|
|
|
--prefix=#{prefix}
|
2014-04-27 22:38:38 +00:00
|
|
|
--enable-introspection=yes
|
2012-10-24 06:11:19 +00:00
|
|
|
--disable-silent-rules
|
|
|
|
--disable-Bsymbolic
|
|
|
|
--disable-tests
|
|
|
|
--disable-examples
|
|
|
|
--disable-gtk-doc-html
|
|
|
|
]
|
2013-10-07 01:56:55 +00:00
|
|
|
|
2014-04-27 22:38:38 +00:00
|
|
|
if build.with? "x"
|
2013-10-07 01:56:55 +00:00
|
|
|
args.concat %w{
|
|
|
|
--with-x --enable-x11-backend=yes
|
|
|
|
--enable-gdk-pixbuf=yes
|
|
|
|
--enable-quartz-backend=no
|
|
|
|
}
|
|
|
|
else
|
|
|
|
args.concat %w{
|
|
|
|
--without-x --enable-x11-backend=no
|
|
|
|
--enable-gdk-pixbuf=no
|
|
|
|
--enable-quartz-backend=yes
|
|
|
|
}
|
|
|
|
end
|
|
|
|
|
2014-04-27 22:38:38 +00:00
|
|
|
system "./configure", *args
|
|
|
|
system "make install"
|
2010-02-14 01:59:16 +00:00
|
|
|
end
|
|
|
|
end
|