2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-04-29 12:26:04 +02:00
|
|
|
#
|
|
|
|
# wayland
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-04-29 12:26:04 +02:00
|
|
|
|
2013-10-10 23:05:18 +02:00
|
|
|
WAYLAND_VERSION = 1.2.1
|
2013-04-29 12:26:04 +02:00
|
|
|
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))
|