]> git.tdb.fi Git - builder.git/commitdiff
Recent versions of sigc++ require C++11
authorMikko Rasa <tdb@tdb.fi>
Tue, 13 Oct 2015 19:52:18 +0000 (22:52 +0300)
committerMikko Rasa <tdb@tdb.fi>
Tue, 13 Oct 2015 19:52:18 +0000 (22:52 +0300)
bootstrap.sh
packages/sigc++-2.0.bpk [new file with mode: 0644]

index 02fbd33445a9735dd78e5c3c3d71f7446d54619d..9497096ac31fbafc899dc00fda2ef37c3a46f9e7 100755 (executable)
@@ -6,6 +6,9 @@ INCLUDEDIR=temp/bootstrap/include
 REQUIRED="core datafile"
 CFLAGS="-I$INCLUDEDIR `pkg-config --cflags sigc++-2.0`"
 LIBS="`pkg-config --libs sigc++-2.0` -lpthread"
+if pkg-config --exists "sigc++-2.0 >= 2.5.1"; then
+       CFLAGS="$CFLAGS -std=c++11"
+fi
 MACHINE="`uname -m`"
 SYSTEM="`uname -s`"
 if [ "$MACHINE" = "x86_64" ]; then
diff --git a/packages/sigc++-2.0.bpk b/packages/sigc++-2.0.bpk
new file mode 100644 (file)
index 0000000..88cd3be
--- /dev/null
@@ -0,0 +1,32 @@
+binary_package "sigc++-2.0"
+{
+       build_info
+       {
+               library "sigc-2.0";
+               incpath "include/sigc++-2.0";
+               standard CXX "c++11";
+       };
+       if_arch "linux-64"
+       {
+               build_info
+               {
+                       incpath "lib/x86_64-linux-gnu/sigc++-2.0/include";
+               };
+       };
+       if_arch "linux-32"
+       {
+               build_info
+               {
+                       incpath "lib/i386-linux-gnu/sigc++-2.0/include";
+               };
+       };
+       if_arch "!linux"
+       {
+               build_info
+               {
+                       incpath "lib/sigc++-2.0/include";
+               };
+       };
+       header "sigc++/sigc++.h";
+       header "sigc++config.h";
+};