summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLucas Stach <l.stach@pengutronix.de>2020-04-08 21:29:59 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2020-04-09 15:13:03 +0200
commit8ed25566dda8c722a3ff320224364bdf950e0116 (patch)
tree8078517b53db8620402af6133f05bb888c4ec515
parent7401834437535fad962fb0f68dcdddc93d212935 (diff)
downloadptxdist-8ed25566dda8c722a3ff320224364bdf950e0116.tar.gz
ptxdist-8ed25566dda8c722a3ff320224364bdf950e0116.tar.xz
libwpe: new package
General-purpose library for the WebPlatformForEmbedded-flavored port of WebKit. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Message-Id: <20200408193002.18077-1-l.stach@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/libwpe.in12
-rw-r--r--rules/libwpe.make61
2 files changed, 73 insertions, 0 deletions
diff --git a/rules/libwpe.in b/rules/libwpe.in
new file mode 100644
index 000000000..6b566d06a
--- /dev/null
+++ b/rules/libwpe.in
@@ -0,0 +1,12 @@
+## SECTION=system_libraries
+
+config LIBWPE
+ tristate
+ prompt "libwpe"
+ select HOST_CMAKE
+ select HOST_NINJA
+ select MESALIB
+ select MESALIB_EGL
+ select LIBXKBCOMMON
+ help
+ General-purpose library for the WebPlatformForEmbedded-flavored port of WebKit.
diff --git a/rules/libwpe.make b/rules/libwpe.make
new file mode 100644
index 000000000..552a55dc9
--- /dev/null
+++ b/rules/libwpe.make
@@ -0,0 +1,61 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2018 by Steffen Trumtrar <s.trumtrar@pengutronix.de>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_LIBWPE) += libwpe
+
+#
+# Paths and names
+#
+LIBWPE_VERSION := 1.6.0
+LIBWPE_LIBRARY_VERSION := 1.0
+LIBWPE_MD5 := 6e8a2c279dcc3617db5ec7ac4c03d628
+LIBWPE := libwpe-$(LIBWPE_VERSION)
+LIBWPE_SUFFIX := tar.xz
+LIBWPE_URL := https://wpewebkit.org/releases/$(LIBWPE).$(LIBWPE_SUFFIX)
+LIBWPE_SOURCE := $(SRCDIR)/$(LIBWPE).$(LIBWPE_SUFFIX)
+LIBWPE_DIR := $(BUILDDIR)/$(LIBWPE)
+LIBWPE_LICENSE := BSD-2-Clause
+LIBWPE_LICENSE_FILES := file://COPYING;md5=371a616eb4903c6cb79e9893a5f615cc
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# cmake
+#
+LIBWPE_CONF_TOOL := cmake
+LIBWPE_CONF_OPT := \
+ $(CROSS_CMAKE_USR) \
+ -G Ninja \
+ -DBUILD_DOCS=OFF \
+ -DWPE_BACKEND= \
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/libwpe.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, libwpe)
+ @$(call install_fixup, libwpe,PRIORITY,optional)
+ @$(call install_fixup, libwpe,SECTION,base)
+ @$(call install_fixup, libwpe,AUTHOR,"Steffen Trumtrar <s.trumtrar@pengutronix.de>")
+ @$(call install_fixup, libwpe,DESCRIPTION,missing)
+
+ @$(call install_lib, libwpe, 0, 0, 0644, libwpe-$(LIBWPE_LIBRARY_VERSION))
+
+ @$(call install_finish, libwpe)
+
+ @$(call touch)
+
+# vim: syntax=make