Commit 41c08646 authored by Thomas Petazzoni's avatar Thomas Petazzoni Committed by Peter Korsgaard
Browse files

wayland: new package



[Peter: fix scanner comment]
Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: default avatarPeter Korsgaard <jacmet@sunsite.dk>
parent 67a96673
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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
+10 −0
Original line number Diff line number Diff line
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/
+30 −0
Original line number Diff line number Diff line
#############################################################
#
# 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))