2010-05-25 16:29:08 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Cairomm < Formula
|
2010-05-25 16:29:08 +00:00
|
|
|
homepage 'http://cairographics.org/cairomm/'
|
2011-05-15 20:38:34 +00:00
|
|
|
url 'http://cairographics.org/releases/cairomm-1.10.0.tar.gz'
|
|
|
|
sha256 '068d96c43eae7b0a3d98648cbfc6fbd16acc385858e9ba6d37b5a47e4dba398f'
|
2014-03-23 02:25:54 +00:00
|
|
|
revision 1
|
2010-05-25 16:29:08 +00:00
|
|
|
|
2014-02-24 15:49:34 +00:00
|
|
|
bottle do
|
2014-03-23 02:33:21 +00:00
|
|
|
sha1 "cd8a555f260bb8b8fe8f82e79b19413255df4e04" => :mavericks
|
|
|
|
sha1 "76bd3aa998281c12a7b5e936bc3c03462a07e4e6" => :mountain_lion
|
|
|
|
sha1 "8640ddb943e78dc271c870d259c079bbbfcba668" => :lion
|
2014-02-24 15:49:34 +00:00
|
|
|
end
|
|
|
|
|
2012-08-12 04:19:06 +00:00
|
|
|
option 'without-x', 'Build without X11 support'
|
2014-01-07 08:50:25 +00:00
|
|
|
option :cxx11
|
2012-08-12 04:19:06 +00:00
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2014-01-07 08:50:25 +00:00
|
|
|
if build.cxx11?
|
|
|
|
depends_on 'libsigc++' => 'c++11'
|
|
|
|
else
|
|
|
|
depends_on 'libsigc++'
|
|
|
|
end
|
2014-03-23 02:25:54 +00:00
|
|
|
|
2013-12-09 21:10:40 +00:00
|
|
|
depends_on 'cairo'
|
2014-03-23 02:25:54 +00:00
|
|
|
depends_on 'libpng'
|
2014-03-06 20:40:26 +00:00
|
|
|
depends_on :x11 if build.with? "x"
|
2010-05-25 16:29:08 +00:00
|
|
|
|
|
|
|
def install
|
2014-01-07 08:50:25 +00:00
|
|
|
ENV.cxx11 if build.cxx11?
|
2010-05-25 16:29:08 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
2011-10-18 20:41:42 +00:00
|
|
|
"--prefix=#{prefix}"
|
2010-05-25 16:29:08 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|