cairomm: new package
authorJames Knight <james.knight@rockwellcollins.com>
Thu, 3 Dec 2015 21:36:42 +0000 (16:36 -0500)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 16 Dec 2015 21:41:48 +0000 (22:41 +0100)
[Thomas:
 - rename package from libcairomm to cairomm in order to match
   upstream name.
 - put the package next to cairo in menuconfig
 - add missing dependency on libsigc
 - add missing depends on BR2_INSTALL_LIBSTDCPP
 - fix license: it's LGPLv2+, not LGPLv2.]

Signed-off-by: James Knight <james.knight@rockwellcollins.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/Config.in
package/cairomm/Config.in [new file with mode: 0644]
package/cairomm/cairomm.hash [new file with mode: 0644]
package/cairomm/cairomm.mk [new file with mode: 0644]

index 2e9554c02202535a649c756bb1b3441e5a087266..cd1c6794e6f9fb109998b9729b8dd55fd86092dc 100644 (file)
@@ -810,6 +810,7 @@ menu "Graphics"
        source "package/atk/Config.in"
        source "package/bullet/Config.in"
        source "package/cairo/Config.in"
+       source "package/cairomm/Config.in"
        source "package/exiv2/Config.in"
        source "package/fltk/Config.in"
        source "package/fontconfig/Config.in"
diff --git a/package/cairomm/Config.in b/package/cairomm/Config.in
new file mode 100644 (file)
index 0000000..4477b37
--- /dev/null
@@ -0,0 +1,21 @@
+config BR2_PACKAGE_CAIROMM
+       bool "cairomm"
+       select BR2_PACKAGE_CAIRO
+       select BR2_PACKAGE_LIBGLIB2
+       select BR2_PACKAGE_LIBSIGC
+       depends on BR2_ARCH_HAS_ATOMICS # cairo
+       depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # C++11
+       depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2
+       depends on BR2_USE_WCHAR # libglib2
+       depends on BR2_USE_MMU # libglib2
+       depends on BR2_INSTALL_LIBSTDCPP
+       help
+         The cairomm package is a set of C++ bindings for Cairo.
+
+         http://www.gtkmm.org/
+
+comment "cairomm needs a toolchain w/ C++, wchar, threads, gcc >= 4.8"
+       depends on BR2_USE_MMU
+       depends on BR2_ARCH_HAS_ATOMICS
+       depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 || !BR2_USE_WCHAR \
+               || !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INSTALL_LIBSTDCPP
diff --git a/package/cairomm/cairomm.hash b/package/cairomm/cairomm.hash
new file mode 100644 (file)
index 0000000..bebd474
--- /dev/null
@@ -0,0 +1,2 @@
+# From http://ftp.gnome.org/pub/gnome/sources/cairomm/1.12/cairomm-1.12.0.sha256sum
+sha256 a54ada8394a86182525c0762e6f50db6b9212a2109280d13ec6a0b29bfd1afe6        cairomm-1.12.0.tar.xz
diff --git a/package/cairomm/cairomm.mk b/package/cairomm/cairomm.mk
new file mode 100644 (file)
index 0000000..7a56a68
--- /dev/null
@@ -0,0 +1,16 @@
+################################################################################
+#
+# cairomm
+#
+################################################################################
+
+CAIROMM_VERSION_MAJOR = 1.12
+CAIROMM_VERSION = $(CAIROMM_VERSION_MAJOR).0
+CAIROMM_LICENSE = LGPLv2+
+CAIROMM_LICENSE_FILES = COPYING
+CAIROMM_SOURCE = cairomm-$(CAIROMM_VERSION).tar.xz
+CAIROMM_SITE = http://ftp.gnome.org/pub/gnome/sources/cairomm/$(CAIROMM_VERSION_MAJOR)
+CAIROMM_INSTALL_STAGING = YES
+CAIROMM_DEPENDENCIES = cairo libglib2 libsigc host-pkgconf
+
+$(eval $(autotools-package))