aboutsummaryrefslogtreecommitdiff
path: root/package/libwpe/libwpe.mk
diff options
context:
space:
mode:
Diffstat (limited to 'package/libwpe/libwpe.mk')
-rw-r--r--package/libwpe/libwpe.mk22
1 files changed, 22 insertions, 0 deletions
diff --git a/package/libwpe/libwpe.mk b/package/libwpe/libwpe.mk
new file mode 100644
index 0000000000..aad1214e1d
--- /dev/null
+++ b/package/libwpe/libwpe.mk
@@ -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))