aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorcosmo09202014-04-20 07:39:55 +0900
committerAdam Vandenberg2014-04-28 20:29:39 -0700
commit756b4afcddd2f4e744d6d483108d370eba44c0c3 (patch)
tree1ec58e790edff28a5b0908120561aab417b13921 /Library
parent38a0fb84be037a02b6996ad92d6c9d0eeb57fe08 (diff)
downloadhomebrew-756b4afcddd2f4e744d6d483108d370eba44c0c3.tar.bz2
clutter-gtk 1.2.2
Closes #28561. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/clutter-gtk.rb52
1 files changed, 52 insertions, 0 deletions
diff --git a/Library/Formula/clutter-gtk.rb b/Library/Formula/clutter-gtk.rb
new file mode 100644
index 000000000..f5a72c8a2
--- /dev/null
+++ b/Library/Formula/clutter-gtk.rb
@@ -0,0 +1,52 @@
+require "formula"
+
+class ClutterGtk < Formula
+ homepage "https://wiki.gnome.org/Clutter"
+ url "http://ftp.gnome.org/pub/gnome/sources/clutter-gtk/1.2/clutter-gtk-1.2.2.tar.xz"
+ sha256 "743702bb230519553ca597b585b25af0b8783575fcd09c7fe5bed7dde292893c"
+
+ option "without-x", "Build without X11 support"
+
+ depends_on "pkg-config" => :build
+ depends_on "glib"
+ depends_on "gdk-pixbuf"
+ depends_on "cogl"
+ depends_on "atk"
+ depends_on "pango"
+ depends_on "json-glib"
+ depends_on :x11 => "2.5.1" if build.with? "x"
+ depends_on "gtk+3"
+ depends_on "clutter"
+ depends_on "gobject-introspection"
+
+ def install
+ args = %W[
+ --disable-dependency-tracking
+ --disable-debug
+ --prefix=#{prefix}
+ --enable-introspection=yes
+ --disable-silent-rules
+ --disable-Bsymbolic
+ --disable-tests
+ --disable-examples
+ --disable-gtk-doc-html
+ ]
+
+ 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
+
+ system "./configure", *args
+ system "make install"
+ end
+end