gstreamermm + gtkmm: C++11

due to their dependencies on glibmm and libsigc++, these formulas now
also require a C++11 compliant compiler
revision bumps
This commit is contained in:
Tom Schoonjans 2015-09-24 19:11:17 +01:00 committed by Dominyk Tiller
parent c28caa510e
commit 193da10b50
2 changed files with 9 additions and 49 deletions

View file

@ -3,6 +3,7 @@ class Gstreamermm < Formula
homepage "http://gstreamer.freedesktop.org/bindings/cplusplus.html"
url "https://download.gnome.org/sources/gstreamermm/1.4/gstreamermm-1.4.3.tar.xz"
sha256 "f1c11ee1cf7537d77de7f8d486e09c5140cc4bb78882849718cd88959a55462e"
revision 1
bottle do
cellar :any
@ -17,13 +18,10 @@ class Gstreamermm < Formula
depends_on "glibmm"
depends_on "gst-plugins-base"
# though the library does not require a C++11 compliant compiler, the examples do,
# causing a build-time error on Mountain Lion
# no need to report this upstream, since the upcoming new release has the C++11 requirement
# already in configure.ac
patch :DATA
needs :cxx11
def install
ENV.cxx11
system "./configure", "--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}"
@ -93,48 +91,7 @@ class Gstreamermm < Formula
-lintl
-lsigc-2.0
]
system ENV.cxx, "test.cpp", "-o", "test", *flags
system ENV.cxx, "-std=c++11", "test.cpp", "-o", "test", *flags
system "./test"
end
end
__END__
diff --git a/examples/dynamic_changing_element/main.cc b/examples/dynamic_changing_element/main.cc
index 6192f45..e3ca128 100644
--- a/examples/dynamic_changing_element/main.cc
+++ b/examples/dynamic_changing_element/main.cc
@@ -20,13 +20,24 @@ RefPtr<Element> conv_before,
conv_after,
curr_effect;
RefPtr<Pipeline> pipeline;
-std::vector<Glib::ustring> effects = {"identity", "exclusion",
- "navigationtest", "agingtv", "videoflip", "vertigotv",
- "gaussianblur", "shagadelictv", "edgetv"};
+std::vector<Glib::ustring> effects;
int curr_position = 0;
RefPtr<Glib::MainLoop> main_loop;
+void effects_init()
+{
+ effects.push_back("identity");
+ effects.push_back("exclusion");
+ effects.push_back("navigationtest");
+ effects.push_back("agingtv");
+ effects.push_back("videoflip");
+ effects.push_back("vertigotv");
+ effects.push_back("gaussianblur");
+ effects.push_back("shagadelictv");
+ effects.push_back("edgetv");
+}
+
PadProbeReturn event_probe_cb (const RefPtr<Pad>& pad, const PadProbeInfo& info)
{
RefPtr<Event> event = info.get_event();
@@ -79,6 +90,7 @@ bool on_timeout()
int main(int argc, char** argv)
{
+ effects_init();
init(argc, argv);
main_loop = Glib::MainLoop::create();

View file

@ -3,7 +3,7 @@ class Gtkmm < Formula
homepage "http://www.gtkmm.org/"
url "https://download.gnome.org/sources/gtkmm/2.24/gtkmm-2.24.4.tar.xz"
sha256 "443a2ff3fcb42a915609f1779000390c640a6d7fd19ad8816e6161053696f5ee"
revision 1
revision 2
bottle do
cellar :any
@ -21,7 +21,10 @@ class Gtkmm < Formula
depends_on "atkmm"
depends_on "cairomm"
needs :cxx11
def install
ENV.cxx11
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "make", "install"
end
@ -116,7 +119,7 @@ class Gtkmm < Formula
-lpangomm-1.4
-lsigc-2.0
]
system ENV.cxx, "test.cpp", "-o", "test", *flags
system ENV.cxx, "-std=c++11", "test.cpp", "-o", "test", *flags
system "./test"
end
end