1 ################################################################################
5 ################################################################################
7 WAYLAND_VERSION = 1.7.0
8 WAYLAND_SITE = http://wayland.freedesktop.org/releases
9 WAYLAND_SOURCE = wayland-$(WAYLAND_VERSION).tar.xz
11 WAYLAND_LICENSE_FILES = COPYING
13 WAYLAND_INSTALL_STAGING = YES
14 WAYLAND_DEPENDENCIES = libffi host-pkgconf host-wayland expat
16 # wayland-scanner is only needed for building, not on the target
17 WAYLAND_CONF_OPTS = --disable-scanner
19 # We must provide a specialy-crafted wayland-scanner .pc file
20 # which we vampirise and adapt from the host-wayland copy
21 define WAYLAND_SCANNER_PC
22 $(INSTALL) -m 0644 -D $(HOST_DIR)/usr/lib/pkgconfig/wayland-scanner.pc \
23 $(STAGING_DIR)/usr/lib/pkgconfig/wayland-scanner.pc
24 $(SED) 's:^prefix=.*:prefix=/usr:' \
25 -e 's:^wayland_scanner=.*:wayland_scanner=$(HOST_DIR)/usr/bin/wayland-scanner:' \
26 $(STAGING_DIR)/usr/lib/pkgconfig/wayland-scanner.pc
28 WAYLAND_POST_INSTALL_STAGING_HOOKS += WAYLAND_SCANNER_PC
30 # Remove the DTD from the target, it's not needed at runtime
31 define WAYLAND_TARGET_CLEANUP
32 rm -rf $(TARGET_DIR)/usr/share/wayland
34 WAYLAND_POST_INSTALL_TARGET_HOOKS += WAYLAND_TARGET_CLEANUP
36 $(eval $(autotools-package))
37 $(eval $(host-autotools-package))