2010-02-14 01:59:16 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Clutter < Formula
|
2011-04-10 14:54:55 +00:00
|
|
|
homepage 'http://clutter-project.org/'
|
2012-10-24 06:11:19 +00:00
|
|
|
url 'http://ftp.gnome.org/pub/gnome/sources/clutter/1.12/clutter-1.12.2.tar.xz'
|
|
|
|
sha256 '27a8c4495099ea33de39c2d9a911a2c9e00ffa4dcc8f94fafedbcc752c0ddf13'
|
|
|
|
|
|
|
|
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-15 17:55:31 +00:00
|
|
|
depends_on 'xz' => :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'
|
2012-10-24 06:11:19 +00:00
|
|
|
depends_on :x11 unless build.include? 'without-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
|
|
|
|
--enable-quartz-backend
|
|
|
|
]
|
|
|
|
args << '--disable-x11-backend' << '--without-x' if build.include? 'without-x'
|
|
|
|
system './configure', *args
|
|
|
|
system 'make install'
|
2010-02-14 01:59:16 +00:00
|
|
|
end
|
|
|
|
end
|