package/libwpe: new package
authorFrancois Perrad <fperrad@gmail.com>
Tue, 5 Feb 2019 20:41:49 +0000 (21:41 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Mon, 11 Feb 2019 20:37:42 +0000 (21:37 +0100)
Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Reviewed-by: Adrian Perez de Castro <aperez@igalia.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
DEVELOPERS
package/Config.in
package/libwpe/Config.in [new file with mode: 0644]
package/libwpe/libwpe.hash [new file with mode: 0644]
package/libwpe/libwpe.mk [new file with mode: 0644]

index 89a8e2d2a2b21b3ec8af456dab9a311249ba25e9..50e4ffe6a9736a971d972ba148da80089aa11f6d 100644 (file)
@@ -68,6 +68,7 @@ F:    package/sngrep/
 N:     Adrian Perez de Castro <aperez@igalia.com>
 F:     package/brotli/
 F:     package/libepoxy/
+F:     package/libwpe/
 F:     package/webkitgtk/
 F:     package/woff2/
 
@@ -827,6 +828,7 @@ F:  package/gdbm/
 F:     package/libtomcrypt/
 F:     package/libtommath/
 F:     package/libump/
+F:     package/libwpe/
 F:     package/linenoise/
 F:     package/ljlinenoise/
 F:     package/lpeg/
index 29862c478c5a51c44b861a7386c5ab38a50ea028..84ccb0358f1511d7d94805e2322a0a2f3c1ced2c 100644 (file)
@@ -1302,6 +1302,7 @@ menu "Graphics"
        source "package/libva-intel-driver/Config.in"
        source "package/libvdpau/Config.in"
        source "package/libvips/Config.in"
+       source "package/libwpe/Config.in"
        source "package/menu-cache/Config.in"
        source "package/opencv/Config.in"
        source "package/opencv3/Config.in"
diff --git a/package/libwpe/Config.in b/package/libwpe/Config.in
new file mode 100644 (file)
index 0000000..c11c853
--- /dev/null
@@ -0,0 +1,13 @@
+comment "libwpe needs a toolchain w/ C++, dynamic library and an OpenEGL-capable backend"
+       depends on !BR2_PACKAGE_HAS_LIBEGL || !BR2_INSTALL_LIBSTDCPP || BR2_STATIC_LIBS
+
+config BR2_PACKAGE_LIBWPE
+       bool "libwpe"
+       depends on !BR2_STATIC_LIBS # dlfcn.h
+       depends on BR2_INSTALL_LIBSTDCPP
+       depends on BR2_PACKAGE_HAS_LIBEGL
+       select BR2_PACKAGE_LIBXKBCOMMON
+       help
+         Base library for the WPE WebKit port.
+
+         https://wpewebkit.org/
diff --git a/package/libwpe/libwpe.hash b/package/libwpe/libwpe.hash
new file mode 100644 (file)
index 0000000..58dba92
--- /dev/null
@@ -0,0 +1,7 @@
+# From https://wpewebkit.org/releases/libwpe-1.0.0.tar.xz.sums
+md5 b5ea32bd644811d5c6433cf1439763f7 libwpe-1.0.0.tar.xz
+sha1 6e51591c00a9a6128e19920807e6874794c723fd libwpe-1.0.0.tar.xz
+sha256 aff11612123f9ab85a8b9a4bcdfb3a7503eba0a0d2d96f2cdecd30e911091719 libwpe-1.0.0.tar.xz
+
+# Hashes for license files:
+sha256 6efc9991641b47b1f4e727db7f090d0ade00117dcbbc74be622f2baceddb1f22 COPYING
diff --git a/package/libwpe/libwpe.mk b/package/libwpe/libwpe.mk
new file mode 100644 (file)
index 0000000..aad1214
--- /dev/null
@@ -0,0 +1,22 @@
+################################################################################
+#
+# libwpe
+#
+################################################################################
+
+LIBWPE_VERSION = 1.0.0
+LIBWPE_SITE = https://wpewebkit.org/releases
+LIBWPE_SOURCE = libwpe-$(LIBWPE_VERSION).tar.xz
+LIBWPE_INSTALL_STAGING = YES
+LIBWPE_LICENSE = BSD-2-Clause
+LIBWPE_LICENSE_FILES = COPYING
+LIBWPE_DEPENDENCIES = libegl libxkbcommon
+
+# Workaround for https://github.com/raspberrypi/userland/issues/316
+ifeq ($(BR2_PACKAGE_RPI_USERLAND),y)
+LIBWPE_CONF_OPTS += \
+       -DCMAKE_C_FLAGS='$(TARGET_CFLAGS) -D_GNU_SOURCE' \
+       -DCMAKE_CXX_FLAGS='$(TARGET_CFLAGS) -D_GNU_SOURCE'
+endif
+
+$(eval $(cmake-package))