libcroco: new package
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Mon, 14 Dec 2015 11:14:48 +0000 (08:14 -0300)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 15 Dec 2015 21:36:24 +0000 (22:36 +0100)
It's required for the librsvg upgrade (ditto host variant).

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/Config.in
package/libcroco/Config.in [new file with mode: 0644]
package/libcroco/libcroco.hash [new file with mode: 0644]
package/libcroco/libcroco.mk [new file with mode: 0644]

index 26009fb301b1c76d337461e6c587a4c23d1363d9..c3c17764c3867c8a633bb3da4c9a2f1b5d222863 100644 (file)
@@ -1113,6 +1113,7 @@ menu "Other"
        source "package/libcap-ng/Config.in"
        source "package/libcgroup/Config.in"
        source "package/libcofi/Config.in"
+       source "package/libcroco/Config.in"
        source "package/libcrossguid/Config.in"
        source "package/libdaemon/Config.in"
        source "package/libee/Config.in"
diff --git a/package/libcroco/Config.in b/package/libcroco/Config.in
new file mode 100644 (file)
index 0000000..5baf83d
--- /dev/null
@@ -0,0 +1,20 @@
+config BR2_PACKAGE_LIBCROCO
+       bool "libcroco"
+       select BR2_PACKAGE_LIBXML2
+       select BR2_PACKAGE_LIBGLIB2
+       depends on BR2_USE_WCHAR # glib2
+       depends on BR2_TOOLCHAIN_HAS_THREADS # glib2
+       depends on BR2_USE_MMU # glib2
+       help
+         Libcroco is a standalone css2 parsing and manipulation
+         library. The parser provides a low level event driven SAC
+         like api and a css object model like api.
+
+         Libcroco provides a CSS2 selection engine and an
+         experimental xml/css rendering engine.
+
+         https://github.com/GNOME/libcroco
+
+comment "libcroco needs a toolchain w/ wchar, threads"
+       depends on BR2_USE_MMU
+       depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
diff --git a/package/libcroco/libcroco.hash b/package/libcroco/libcroco.hash
new file mode 100644 (file)
index 0000000..20328e4
--- /dev/null
@@ -0,0 +1,2 @@
+# From http://ftp.acc.umu.se/pub/gnome/sources/libcroco/0.6/libcroco-0.6.10.sha256sum
+sha256 72066611df77f5c4fb28268cfc7306ecc1517212a6182c2ea756c326a154246c        libcroco-0.6.10.tar.xz
diff --git a/package/libcroco/libcroco.mk b/package/libcroco/libcroco.mk
new file mode 100644 (file)
index 0000000..2376684
--- /dev/null
@@ -0,0 +1,20 @@
+################################################################################
+#
+# libcroco
+#
+################################################################################
+
+LIBCROCO_VERSION_MAJOR = 0.6
+LIBCROCO_VERSION = $(LIBCROCO_VERSION_MAJOR).10
+LIBCROCO_SITE = http://ftp.gnome.org/pub/gnome/sources/libcroco/$(LIBCROCO_VERSION_MAJOR)
+LIBCROCO_SOURCE = libcroco-$(LIBCROCO_VERSION).tar.xz
+LIBCROCO_INSTALL_STAGING = YES
+LIBCROCO_DEPENDENCIES = host-pkgconf libglib2 libxml2
+LIBCROCO_CONFIG_SCRIPTS = croco-$(LIBCROCO_VERSION_MAJOR)-config
+# NEWS states that it's only LGPL
+# Source code says v2.1+ even though COPYING.LIB is v2
+LIBCROCO_LICENSE = LGPLv2.1+
+LIBCROSO_LICENSE_FILES = COPYING.LIB
+
+$(eval $(autotools-package))
+$(eval $(host-autotools-package))