2012-06-10 16:22:24 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Cogl < Formula
|
2013-01-16 16:01:25 +00:00
|
|
|
homepage 'http://developer.gnome.org/cogl/'
|
|
|
|
url 'http://ftp.gnome.org/pub/gnome/sources/cogl/1.12/cogl-1.12.2.tar.xz'
|
|
|
|
sha256 '31971d4c6543c589f6fc49ab1724dfbdc7062c58a7da842cb1935e32ca6e1d7e'
|
2012-06-10 16:22:24 +00:00
|
|
|
|
|
|
|
head 'git://git.gnome.org/cogl'
|
|
|
|
|
2012-10-24 05:55:46 +00:00
|
|
|
option 'without-x', 'Build without X11 support'
|
|
|
|
|
2012-06-10 16:22:24 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2012-08-15 17:55:50 +00:00
|
|
|
depends_on 'xz' => :build
|
2012-08-23 05:53:09 +00:00
|
|
|
depends_on 'glib'
|
2012-06-10 16:22:24 +00:00
|
|
|
depends_on 'pango'
|
|
|
|
depends_on 'cairo' # needs cairo-gobject
|
2012-10-24 05:55:46 +00:00
|
|
|
depends_on :x11 if MacOS::X11.installed? or not build.include? 'without-x'
|
2012-06-10 16:22:24 +00:00
|
|
|
|
|
|
|
def install
|
2012-08-27 05:17:49 +00:00
|
|
|
system "./autogen.sh" if build.head?
|
2012-10-24 05:55:46 +00:00
|
|
|
args = %W[
|
|
|
|
--disable-dependency-tracking
|
|
|
|
--prefix=#{prefix}
|
|
|
|
--disable-introspection
|
|
|
|
]
|
|
|
|
args << '--without-x' if build.include? 'without-x'
|
|
|
|
system './configure', *args
|
2012-06-10 16:22:24 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|