[Buildroot] [PATCH 4/6] package/cairomm1_14: new package

Lang Daniel d.lang at abatec.at
Fri Feb 24 08:42:58 UTC 2023


This is the version needed by gtkmm3.

Signed-off-by: Daniel Lang <d.lang at abatec.at>
---
 DEVELOPERS                           |  2 ++
 package/Config.in                    |  1 +
 package/cairomm/Config.in            |  2 +-
 package/cairomm1_14/Config.in        | 22 ++++++++++++++++++++++
 package/cairomm1_14/cairomm1_14.hash |  3 +++
 package/cairomm1_14/cairomm1_14.mk   | 16 ++++++++++++++++
 6 files changed, 45 insertions(+), 1 deletion(-)
 create mode 100644 package/cairomm1_14/Config.in
 create mode 100644 package/cairomm1_14/cairomm1_14.hash
 create mode 100644 package/cairomm1_14/cairomm1_14.mk

diff --git a/DEVELOPERS b/DEVELOPERS
index a1294addea..de36a0cdcb 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -642,6 +642,8 @@ F:	package/dacapo/
 N:	Daniel Lang <d.lang at abatec.at>
 F:	package/atkmm/
 F:	package/atkmm2_28/
+F:	package/cairomm/
+F:	package/cairomm1_14/
 F:	package/dbus-cxx/
 F:	package/glibmm/
 F:	package/glibmm2_66/
diff --git a/package/Config.in b/package/Config.in
index 03fcd9096c..e5e9d7f875 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1562,6 +1562,7 @@ menu "Graphics"
 	source "package/bullet/Config.in"
 	source "package/cairo/Config.in"
 	source "package/cairomm/Config.in"
+	source "package/cairomm1_14/Config.in"
 	source "package/chipmunk/Config.in"
 	source "package/exempi/Config.in"
 	source "package/exiv2/Config.in"
diff --git a/package/cairomm/Config.in b/package/cairomm/Config.in
index dae52f01f7..75f6692b8a 100644
--- a/package/cairomm/Config.in
+++ b/package/cairomm/Config.in
@@ -1,5 +1,5 @@
 config BR2_PACKAGE_CAIROMM
-	bool "cairomm"
+	bool "cairomm (latest)"
 	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_7 # libsigc
 	depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2
 	depends on BR2_USE_WCHAR # libglib2
diff --git a/package/cairomm1_14/Config.in b/package/cairomm1_14/Config.in
new file mode 100644
index 0000000000..6e767d2428
--- /dev/null
+++ b/package/cairomm1_14/Config.in
@@ -0,0 +1,22 @@
+config BR2_PACKAGE_CAIROMM1_14
+	bool "cairomm (1.14.x)"
+	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # 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
+	select BR2_PACKAGE_CAIRO
+	select BR2_PACKAGE_LIBGLIB2
+	select BR2_PACKAGE_LIBSIGC2
+	help
+	  The cairomm package is a set of C++ bindings for Cairo.
+
+	  This is the last version before the API and ABI change
+	  introduced in 1.16.0 which requires C++17.
+
+	  http://www.gtkmm.org/
+
+comment "cairomm (1.14.x) needs a toolchain w/ C++, wchar, threads, gcc >= 4.9"
+	depends on BR2_USE_MMU
+	depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || !BR2_USE_WCHAR \
+		|| !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INSTALL_LIBSTDCPP
diff --git a/package/cairomm1_14/cairomm1_14.hash b/package/cairomm1_14/cairomm1_14.hash
new file mode 100644
index 0000000000..521e7cc546
--- /dev/null
+++ b/package/cairomm1_14/cairomm1_14.hash
@@ -0,0 +1,3 @@
+# Locally computed
+sha256  ee12b920b2d47cea1b6e20c367690d726eb22b4ca9fc711db329d03adcc0c8e0  cairomm-1.14.4.tar.gz
+sha256  bfe4a52dc4645385f356a8e83cc54216a293e3b6f1cb4f79f5fc0277abf937fd  COPYING
diff --git a/package/cairomm1_14/cairomm1_14.mk b/package/cairomm1_14/cairomm1_14.mk
new file mode 100644
index 0000000000..5d076ddf0a
--- /dev/null
+++ b/package/cairomm1_14/cairomm1_14.mk
@@ -0,0 +1,16 @@
+################################################################################
+#
+# cairomm1_14
+#
+################################################################################
+
+CAIROMM1_14_VERSION = 1.14.4
+CAIROMM1_14_LICENSE = LGPL-2.0+
+CAIROMM1_14_LICENSE_FILES = COPYING
+CAIROMM1_14_SOURCE = cairomm-$(CAIROMM1_14_VERSION).tar.gz
+CAIROMM1_14_SITE = https://gitlab.freedesktop.org/cairo/cairomm/-/archive/$(CAIROMM1_14_VERSION)
+CAIROMM1_14_INSTALL_STAGING = YES
+CAIROMM1_14_DEPENDENCIES = cairo libglib2 libsigc2 host-pkgconf
+CAIROMM1_14_CONF_OPTS = -Dbuild-examples=false -Dbuild-tests=false
+
+$(eval $(meson-package))
-- 
2.25.1


More information about the buildroot mailing list