2010-02-14 01:59:16 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Clutter < Formula
|
2013-07-12 02:16:04 +00:00
|
|
|
homepage 'https://wiki.gnome.org/Clutter'
|
2014-04-03 14:25:42 +00:00
|
|
|
url 'http://ftp.gnome.org/pub/gnome/sources/clutter/1.14/clutter-1.14.4.tar.xz'
|
2013-10-07 01:56:55 +00:00
|
|
|
sha256 'c996d91fff6fff24d9e23dcd545439ebc6b999fb1cf9ee44c28ca54c49c0ee1c'
|
2012-10-24 06:11:19 +00:00
|
|
|
|
|
|
|
option 'without-x', 'Build without X11 support'
|
2010-02-14 01:59:16 +00:00
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2012-08-23 05:52:56 +00:00
|
|
|
depends_on 'glib'
|
|
|
|
depends_on 'gdk-pixbuf'
|
|
|
|
depends_on 'cogl'
|
|
|
|
depends_on 'cairo' # for cairo-gobject
|
2011-04-10 14:54:55 +00:00
|
|
|
depends_on 'atk'
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'pango'
|
2012-08-23 05:52:56 +00:00
|
|
|
depends_on 'json-glib'
|
2014-03-06 20:40:26 +00:00
|
|
|
depends_on :x11 => '2.5.1' if build.with? 'x'
|
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}
|
|
|
|
--disable-introspection
|
|
|
|
--disable-silent-rules
|
|
|
|
--disable-Bsymbolic
|
|
|
|
--disable-tests
|
|
|
|
--disable-examples
|
|
|
|
--disable-gtk-doc-html
|
|
|
|
]
|
2013-10-07 01:56:55 +00:00
|
|
|
|
|
|
|
if build.with? 'x'
|
|
|
|
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
|
|
|
|
|
2012-10-24 06:11:19 +00:00
|
|
|
system './configure', *args
|
|
|
|
system 'make install'
|
2010-02-14 01:59:16 +00:00
|
|
|
end
|
|
|
|
end
|