2012-02-06 21:55:05 +00:00
|
|
|
class Atkmm < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Official C++ interface for the ATK accessibility toolkit library"
|
2016-10-10 21:58:44 +00:00
|
|
|
homepage "https://www.gtkmm.org/"
|
2015-11-30 09:26:07 +00:00
|
|
|
url "https://download.gnome.org/sources/atkmm/2.24/atkmm-2.24.2.tar.xz"
|
|
|
|
sha256 "ff95385759e2af23828d4056356f25376cfabc41e690ac1df055371537e458bd"
|
2012-02-06 21:55:05 +00:00
|
|
|
|
2014-02-24 15:49:34 +00:00
|
|
|
bottle do
|
2015-10-02 15:03:53 +00:00
|
|
|
cellar :any
|
2016-09-16 22:24:48 +00:00
|
|
|
sha256 "99c33466b55c8f1b850dc129bd737f15c243b7e79782c5927fdc55d59d4df551" => :sierra
|
2015-11-30 09:35:21 +00:00
|
|
|
sha256 "70c5c9652b337efe41f26d61480dad331095a6ded8cae26bc8dc0066c06adfb5" => :el_capitan
|
|
|
|
sha256 "a7ddfcacea2a645a939c0eb7b5d2c026d9f9af9ba3e579ee66df28fbe6339879" => :yosemite
|
|
|
|
sha256 "a39942b931ea636033cd6018ddbe25d050dbcdda5ef80f0c9d9cc81a7d9636d4" => :mavericks
|
2014-02-24 15:49:34 +00:00
|
|
|
end
|
|
|
|
|
2015-08-03 12:55:31 +00:00
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "atk"
|
|
|
|
depends_on "glibmm"
|
2012-02-06 21:55:05 +00:00
|
|
|
|
2015-09-22 12:05:33 +00:00
|
|
|
needs :cxx11
|
|
|
|
|
2012-02-06 21:55:05 +00:00
|
|
|
def install
|
2015-09-22 12:05:33 +00:00
|
|
|
ENV.cxx11
|
2012-02-06 21:55:05 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
|
2015-08-03 12:55:31 +00:00
|
|
|
system "make", "install"
|
2012-02-06 21:55:05 +00:00
|
|
|
end
|
2015-09-22 12:05:33 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
(testpath/"test.cpp").write <<-EOS.undent
|
|
|
|
#include <atkmm/init.h>
|
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
|
|
|
Atk::init();
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
EOS
|
|
|
|
atk = Formula["atk"]
|
|
|
|
gettext = Formula["gettext"]
|
|
|
|
glib = Formula["glib"]
|
|
|
|
glibmm = Formula["glibmm"]
|
|
|
|
libsigcxx = Formula["libsigc++"]
|
2016-07-19 00:06:26 +00:00
|
|
|
flags = %W[
|
2015-09-22 12:05:33 +00:00
|
|
|
-I#{atk.opt_include}/atk-1.0
|
|
|
|
-I#{gettext.opt_include}
|
|
|
|
-I#{glib.opt_include}/glib-2.0
|
|
|
|
-I#{glib.opt_lib}/glib-2.0/include
|
|
|
|
-I#{glibmm.opt_include}/glibmm-2.4
|
|
|
|
-I#{glibmm.opt_lib}/glibmm-2.4/include
|
|
|
|
-I#{include}/atkmm-1.6
|
|
|
|
-I#{libsigcxx.opt_include}/sigc++-2.0
|
|
|
|
-I#{libsigcxx.opt_lib}/sigc++-2.0/include
|
|
|
|
-L#{atk.opt_lib}
|
|
|
|
-L#{gettext.opt_lib}
|
|
|
|
-L#{glib.opt_lib}
|
|
|
|
-L#{glibmm.opt_lib}
|
|
|
|
-L#{libsigcxx.opt_lib}
|
|
|
|
-L#{lib}
|
|
|
|
-latk-1.0
|
|
|
|
-latkmm-1.6
|
|
|
|
-lglib-2.0
|
|
|
|
-lglibmm-2.4
|
|
|
|
-lgobject-2.0
|
|
|
|
-lintl
|
|
|
|
-lsigc-2.0
|
|
|
|
]
|
|
|
|
system ENV.cxx, "-std=c++11", "test.cpp", "-o", "test", *flags
|
|
|
|
system "./test"
|
|
|
|
end
|
2012-02-06 21:55:05 +00:00
|
|
|
end
|