wayland: new package
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 29 Apr 2013 10:26:04 +0000 (10:26 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Tue, 30 Apr 2013 08:05:55 +0000 (10:05 +0200)
[Peter: fix scanner comment]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/Config.in
package/wayland/Config.in [new file with mode: 0644]
package/wayland/wayland.mk [new file with mode: 0644]

index 83234c13dfea2d2983e50a327225e4f15f6c3102..08ce2d44307fbc37f6dc82601c51ac5c3b1b8026 100644 (file)
@@ -448,6 +448,7 @@ source "package/pango/Config.in"
 source "package/pixman/Config.in"
 source "package/poppler/Config.in"
 source "package/tiff/Config.in"
+source "package/wayland/Config.in"
 source "package/webkit/Config.in"
 source "package/zxing/Config.in"
 endmenu
diff --git a/package/wayland/Config.in b/package/wayland/Config.in
new file mode 100644 (file)
index 0000000..e5d2649
--- /dev/null
@@ -0,0 +1,10 @@
+config BR2_PACKAGE_WAYLAND
+       bool "wayland"
+       select BR2_PACKAGE_LIBFFI
+       select BR2_PACKAGE_EXPAT
+       help
+         Wayland is a project to define a protocol for a compositor
+         to talk to its clients as well as a library implementation
+         of the protocol.
+
+         http://wayland.freedesktop.org/
diff --git a/package/wayland/wayland.mk b/package/wayland/wayland.mk
new file mode 100644 (file)
index 0000000..a0fadc2
--- /dev/null
@@ -0,0 +1,30 @@
+#############################################################
+#
+# wayland
+#
+#############################################################
+
+WAYLAND_VERSION = 1.1.0
+WAYLAND_SITE = http://wayland.freedesktop.org/releases/
+WAYLAND_SOURCE = wayland-$(WAYLAND_VERSION).tar.xz
+WAYLAND_LICENSE = MIT
+WAYLAND_LICENSE_FILES = COPYING
+
+WAYLAND_INSTALL_STAGING = YES
+WAYLAND_DEPENDENCIES = libffi host-pkgconf expat host-expat
+
+# wayland needs a wayland-scanner program to generate some of its
+# source code. By default, it builds it with CC, so it doesn't work with
+# cross-compilation. Therefore, we build it manually, and tell wayland
+# that the tool is already available.
+WAYLAND_CONF_OPT = --disable-scanner
+
+define WAYLAND_BUILD_SCANNER
+       (cd $(@D)/src/; \
+               $(HOSTCC) $(HOST_CFLAGS) $(HOST_LDFLAGS) \
+                       -o wayland-scanner scanner.c wayland-util.c -lexpat)
+endef
+
+WAYLAND_POST_CONFIGURE_HOOKS += WAYLAND_BUILD_SCANNER
+
+$(eval $(autotools-package))