2014-04-19 22:39:55 +00:00
|
|
|
class ClutterGtk < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "GTK+ integration library for Clutter"
|
2014-04-29 17:26:45 +00:00
|
|
|
homepage "https://wiki.gnome.org/Projects/Clutter"
|
2015-06-30 15:59:23 +00:00
|
|
|
url "https://download.gnome.org/sources/clutter-gtk/1.6/clutter-gtk-1.6.2.tar.xz"
|
|
|
|
sha256 "bbd03dfa9a20102d5cdb440513b0a035933da557ad7e9da31546034de2daf069"
|
2014-04-19 22:39:55 +00:00
|
|
|
|
2015-06-24 07:14:58 +00:00
|
|
|
bottle do
|
2015-07-01 20:13:20 +00:00
|
|
|
sha256 "2d186ad62466bf517682c67bcd0a35e2dc901a35ecb0b58186ad68b0fcdc420f" => :yosemite
|
|
|
|
sha256 "30a60e8e1b6f9a2166f63cf541328e67ef363ab80fe73e4579ec1b13c158ee77" => :mavericks
|
|
|
|
sha256 "f7fb4c5553d7853ea96b90c27689128ce144103ebdb7abaee29b06a9aef377ae" => :mountain_lion
|
2015-06-24 07:14:58 +00:00
|
|
|
end
|
|
|
|
|
2014-04-19 22:39:55 +00:00
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "glib"
|
|
|
|
depends_on "gdk-pixbuf"
|
|
|
|
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-gtk-doc-html
|
|
|
|
]
|
|
|
|
|
|
|
|
system "./configure", *args
|
2015-06-24 07:02:54 +00:00
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
(testpath/"test.c").write <<-EOS.undent
|
|
|
|
#include <clutter-gtk/clutter-gtk.h>
|
|
|
|
|
|
|
|
int main(int argc, char *argv[]) {
|
|
|
|
GOptionGroup *group = gtk_clutter_get_option_group();
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
EOS
|
|
|
|
atk = Formula["atk"]
|
|
|
|
cairo = Formula["cairo"]
|
|
|
|
clutter = Formula["clutter"]
|
|
|
|
cogl = Formula["cogl"]
|
|
|
|
fontconfig = Formula["fontconfig"]
|
|
|
|
freetype = Formula["freetype"]
|
|
|
|
gdk_pixbuf = Formula["gdk-pixbuf"]
|
|
|
|
gettext = Formula["gettext"]
|
|
|
|
glib = Formula["glib"]
|
|
|
|
gtkx3 = Formula["gtk+3"]
|
|
|
|
json_glib = Formula["json-glib"]
|
|
|
|
libepoxy = Formula["libepoxy"]
|
|
|
|
libpng = Formula["libpng"]
|
|
|
|
pango = Formula["pango"]
|
|
|
|
pixman = Formula["pixman"]
|
|
|
|
flags = (ENV.cflags || "").split + (ENV.cppflags || "").split + (ENV.ldflags || "").split
|
|
|
|
flags += %W[
|
|
|
|
-I#{atk.opt_include}/atk-1.0
|
|
|
|
-I#{cairo.opt_include}/cairo
|
|
|
|
-I#{clutter.opt_include}/clutter-1.0
|
|
|
|
-I#{cogl.opt_include}/cogl
|
|
|
|
-I#{fontconfig.opt_include}
|
|
|
|
-I#{freetype.opt_include}/freetype2
|
|
|
|
-I#{gdk_pixbuf.opt_include}/gdk-pixbuf-2.0
|
|
|
|
-I#{gettext.opt_include}
|
|
|
|
-I#{glib.opt_include}/gio-unix-2.0/
|
|
|
|
-I#{glib.opt_include}/glib-2.0
|
|
|
|
-I#{glib.opt_lib}/glib-2.0/include
|
|
|
|
-I#{gtkx3.opt_include}/gtk-3.0
|
|
|
|
-I#{include}/clutter-gtk-1.0
|
|
|
|
-I#{json_glib.opt_include}/json-glib-1.0
|
|
|
|
-I#{libepoxy.opt_include}
|
|
|
|
-I#{libpng.opt_include}/libpng16
|
|
|
|
-I#{pango.opt_include}/pango-1.0
|
|
|
|
-I#{pixman.opt_include}/pixman-1
|
|
|
|
-D_REENTRANT
|
|
|
|
-L#{atk.opt_lib}
|
|
|
|
-L#{cairo.opt_lib}
|
|
|
|
-L#{clutter.opt_lib}
|
|
|
|
-L#{cogl.opt_lib}
|
|
|
|
-L#{gdk_pixbuf.opt_lib}
|
|
|
|
-L#{gettext.opt_lib}
|
|
|
|
-L#{glib.opt_lib}
|
|
|
|
-L#{gtkx3.opt_lib}
|
|
|
|
-L#{json_glib.opt_lib}
|
|
|
|
-L#{lib}
|
|
|
|
-L#{pango.opt_lib}
|
|
|
|
-latk-1.0
|
|
|
|
-lcairo
|
|
|
|
-lcairo-gobject
|
|
|
|
-lclutter-1.0
|
|
|
|
-lclutter-gtk-1.0
|
|
|
|
-lcogl
|
|
|
|
-lcogl-pango
|
|
|
|
-lcogl-path
|
|
|
|
-lgdk-3
|
|
|
|
-lgdk_pixbuf-2.0
|
|
|
|
-lgio-2.0
|
|
|
|
-lglib-2.0
|
|
|
|
-lgmodule-2.0
|
|
|
|
-lgobject-2.0
|
|
|
|
-lgtk-3
|
|
|
|
-lintl
|
|
|
|
-ljson-glib-1.0
|
|
|
|
-lpango-1.0
|
|
|
|
-lpangocairo-1.0
|
|
|
|
]
|
|
|
|
system ENV.cc, "test.c", "-o", "test", *flags
|
|
|
|
system "./test"
|
2014-04-19 22:39:55 +00:00
|
|
|
end
|
|
|
|
end
|