summaryrefslogtreecommitdiffstats
path: root/package/waylandpp/waylandpp.mk
diff options
context:
space:
mode:
Diffstat (limited to 'package/waylandpp/waylandpp.mk')
-rw-r--r--package/waylandpp/waylandpp.mk27
1 files changed, 27 insertions, 0 deletions
diff --git a/package/waylandpp/waylandpp.mk b/package/waylandpp/waylandpp.mk
new file mode 100644
index 0000000000..0054838876
--- /dev/null
+++ b/package/waylandpp/waylandpp.mk
@@ -0,0 +1,27 @@
+################################################################################
+#
+# waylandpp
+#
+################################################################################
+
+WAYLANDPP_VERSION = 0.1.5
+WAYLANDPP_SITE = $(call github,NilsBrause,waylandpp,$(WAYLANDPP_VERSION))
+WAYLANDPP_LICENSE = MIT, GPL-3.0+ (wayland_scanner)
+WAYLANDPP_LICENSE_FILES = LICENSE scanner/gpl-3.0.txt
+WAYLANDPP_INSTALL_STAGING = YES
+HOST_WAYLANDPP_DEPENDENCIES = host-pkgconf host-wayland
+WAYLANDPP_DEPENDENCIES = libegl host-pkgconf wayland host-waylandpp
+
+# host variant of wayland-scanner++ is needed for building the target
+# package
+HOST_WAYLANDPP_CONF_OPTS = \
+ -DBUILD_LIBRARIES=OFF \
+ -DBUILD_SCANNER=ON
+
+WAYLANDPP_CONF_OPTS = \
+ -DBUILD_LIBRARIES=ON \
+ -DBUILD_SCANNER=OFF \
+ -DWAYLAND_SCANNERPP=$(HOST_DIR)/bin/wayland-scanner++
+
+$(eval $(cmake-package))
+$(eval $(host-cmake-package))
OpenPOWER on IntegriCloud