1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
# -*-makefile-*-
#
# Copyright (C) 2013 by Philipp Zabel <p.zabel@pengutronix.de>
#
# For further information about the PTXdist project and license conditions
# see the README file.
#
#
# We provide this package
#
PACKAGES-$(PTXCONF_WAYLAND) += wayland
#
# Paths and names
#
WAYLAND_VERSION := 1.18.0
WAYLAND_MD5 := 23317697b6e3ff2e1ac8c5ba3ed57b65
WAYLAND := wayland-$(WAYLAND_VERSION)
WAYLAND_SUFFIX := tar.xz
WAYLAND_URL := http://wayland.freedesktop.org/releases/$(WAYLAND).$(WAYLAND_SUFFIX)
WAYLAND_SOURCE := $(SRCDIR)/$(WAYLAND).$(WAYLAND_SUFFIX)
WAYLAND_DIR := $(BUILDDIR)/$(WAYLAND)
WAYLAND_LICENSE := MIT
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
WAYLAND_CONF_ENV := \
$(HOST_ENV) \
PKG_CONFIG_FOR_BUILD=$(PTXDIST_SYSROOT_HOST)/bin/pkg-config
#
# meson
#
WAYLAND_CONF_TOOL := meson
WAYLAND_CONF_OPT := \
$(CROSS_MESON_USR) \
-Dlibraries=true \
-Ddocumentation=false \
-Ddtd_validation=false \
-Dicon_directory=
# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------
$(STATEDIR)/wayland.install.post:
@$(call targetinfo)
# # target wayland-scanner is not needed. Make sure nobody tries to use it
@rm -f $(WAYLAND_PKGDIR)/usr/bin/wayland-scanner
@$(call world/install.post, WAYLAND)
@sed 's;^prefix=.*;prefix=$(PTXDIST_SYSROOT_HOST);' \
$(PTXDIST_SYSROOT_HOST)/lib/pkgconfig/wayland-scanner.pc \
> $(PTXDIST_SYSROOT_TARGET)/usr/lib/pkgconfig/wayland-scanner.pc
@$(call touch)
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
$(STATEDIR)/wayland.targetinstall:
@$(call targetinfo)
@$(call install_init, wayland)
@$(call install_fixup, wayland,PRIORITY,optional)
@$(call install_fixup, wayland,SECTION,base)
@$(call install_fixup, wayland,AUTHOR,"Philipp Zabel <p.zabel@pengutronix.de>")
@$(call install_fixup, wayland,DESCRIPTION,wayland client and server libraries)
@$(call install_lib, wayland, 0, 0, 0644, libwayland-client)
@$(call install_lib, wayland, 0, 0, 0644, libwayland-server)
@$(call install_lib, wayland, 0, 0, 0644, libwayland-cursor)
@$(call install_lib, wayland, 0, 0, 0644, libwayland-egl)
@$(call install_finish, wayland)
@$(call touch)
# vim: syntax=make
|