[Buildroot] [PATCH 2/8] package/plutosvg: new package

Alsey Coleman Miller <[email protected]>
Newsgroups net.busybox.buildroot
Message-ID <[email protected]>
plutosvg is a small SVG rendering library built on plutovg.

PLUTOSVG_ENABLE_FREETYPE is on because the FreeType integration is what
provides OpenType-SVG rendering - the hooks FreeType calls for the SVG
glyphs in a colour emoji font - which is what consumers of this library
generally want it for.

Signed-off-by: Alsey Coleman Miller <[email protected]>
---
 DEVELOPERS                     |  1 +
 package/Config.in              |  1 +
 package/plutosvg/Config.in     | 10 ++++++++++
 package/plutosvg/plutosvg.hash |  3 +++
 package/plutosvg/plutosvg.mk   | 18 ++++++++++++++++++
 5 files changed, 33 insertions(+)
 create mode 100644 package/plutosvg/Config.in
 create mode 100644 package/plutosvg/plutosvg.hash
 create mode 100644 package/plutosvg/plutosvg.mk

diff --git a/DEVELOPERS b/DEVELOPERS
index 5e39d38fc9..56b01fa5cc 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -170,6 +170,7 @@ F:	package/xen/
 
 N:	Alsey Coleman Miller <[email protected]>
 F:	package/liblc3/
+F:	package/plutosvg/
 F:	package/plutovg/
 
 N:	Alvaro G. M <[email protected]>
diff --git a/package/Config.in b/package/Config.in
index d98705e981..5e1601036c 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -350,6 +350,7 @@ comment "Graphic libraries"
 	source "package/mesa3d-headers/Config.in"
 	source "package/ocrad/Config.in"
 	source "package/ogre/Config.in"
+	source "package/plutosvg/Config.in"
 	source "package/plutovg/Config.in"
 	source "package/psplash/Config.in"
 	source "package/sdl/Config.in"
diff --git a/package/plutosvg/Config.in b/package/plutosvg/Config.in
new file mode 100644
index 0000000000..613b1b8ba6
--- /dev/null
+++ b/package/plutosvg/Config.in
@@ -0,0 +1,10 @@
+config BR2_PACKAGE_PLUTOSVG
+	bool "plutosvg"
+	select BR2_PACKAGE_FREETYPE
+	select BR2_PACKAGE_PLUTOVG
+	help
+	  plutosvg is a small SVG rendering library built on plutovg. It
+	  is built with the FreeType integration enabled, which is what
+	  provides OpenType-SVG (colour emoji) rendering.
+
+	  https://github.com/sammycage/plutosvg
diff --git a/package/plutosvg/plutosvg.hash b/package/plutosvg/plutosvg.hash
new file mode 100644
index 0000000000..fb6c210e93
--- /dev/null
+++ b/package/plutosvg/plutosvg.hash
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256  49d5cfe772d3aa10cd4879f2f6e189f5083c08e4c8ea01bf3d5b87c97dfca7d2  plutosvg-0.0.8.tar.gz
+sha256  a55d1e78eaf75779c336b4ba061e74aae56a21195d234474fb24a398935d6ce1  LICENSE
diff --git a/package/plutosvg/plutosvg.mk b/package/plutosvg/plutosvg.mk
new file mode 100644
index 0000000000..17142a1eb4
--- /dev/null
+++ b/package/plutosvg/plutosvg.mk
@@ -0,0 +1,18 @@
+################################################################################
+#
+# plutosvg
+#
+################################################################################
+
+PLUTOSVG_VERSION = 0.0.8
+PLUTOSVG_SITE = $(call github,sammycage,plutosvg,v$(PLUTOSVG_VERSION))
+PLUTOSVG_LICENSE = MIT
+PLUTOSVG_LICENSE_FILES = LICENSE
+PLUTOSVG_INSTALL_STAGING = YES
+PLUTOSVG_DEPENDENCIES = host-pkgconf freetype plutovg
+
+PLUTOSVG_CONF_OPTS = \
+	-DPLUTOSVG_ENABLE_FREETYPE=ON \
+	-DPLUTOSVG_BUILD_EXAMPLES=OFF
+
+$(eval $(cmake-package))
-- 
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.