blob: 05be356c9228dc10f798811a2680e4749efb0d87 (
plain)
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
|
include $(TOPDIR)/rules.mk
PKG_NAME:=wayland
PKG_VERSION:=1.19.0
PKG_RELEASE:=$(AUTORELEASE)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=https://wayland.freedesktop.org/releases/
PKG_HASH:=baccd902300d354581cd5ad3cc49daa4921d55fb416a5883e218750fef166d15
PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=COPYING
PKG_INSTALL:=1
PKG_BUILD_DEPENDS:=libffi/host libxml2/host expat/host wayland/host
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/host-build.mk
include $(INCLUDE_DIR)/meson.mk
define Package/libwayland
SECTION:=libs
CATEGORY:=Video
SUBMENU:=Frameworks and Toolkits
TITLE:=wayland
URL:=https://wayland.freedesktop.org/
DEPENDS:=+libexpat +libffi
endef
define Package/libwayland/description
endef
define Package/wayland-scanner
SECTION:=libs
CATEGORY:=Video
SUBMENU:=Frameworks and Toolkits
TITLE:=wayland
URL:=https://wayland.freedesktop.org/
DEPENDS:=+libxml2 +libexpat
endef
define Package/wayland-scanner/description
endef
MESON_HOST_ARGS += \
-Dscanner=true \
-Dlibraries=false \
-Ddocumentation=false \
-Ddtd_validation=true
MESON_ARGS += \
-Dscanner=true \
-Dlibraries=true \
-Ddocumentation=false \
-Ddtd_validation=true \
-Dscanner_bin="$(STAGING_DIR_HOSTPKG)/bin/wayland-scanner"
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*.so* $(1)/usr/lib/
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc $(1)/usr/lib/pkgconfig
endef
define Package/libwayland/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*.so.* $(1)/usr/lib/
endef
define Package/wayland-scanner/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/wayland-scanner $(1)/usr/bin/
endef
$(eval $(call BuildPackage,libwayland))
$(eval $(call BuildPackage,wayland-scanner))
$(eval $(call HostBuild))
|