05be356c9228dc10f798811a2680e4749efb0d87
[feed/video.git] / frameworks / wayland / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=wayland
4 PKG_VERSION:=1.19.0
5 PKG_RELEASE:=$(AUTORELEASE)
6
7 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
8 PKG_SOURCE_URL:=https://wayland.freedesktop.org/releases/
9 PKG_HASH:=baccd902300d354581cd5ad3cc49daa4921d55fb416a5883e218750fef166d15
10
11 PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
12 PKG_LICENSE:=MIT
13 PKG_LICENSE_FILES:=COPYING
14
15 PKG_INSTALL:=1
16 PKG_BUILD_DEPENDS:=libffi/host libxml2/host expat/host wayland/host
17
18 include $(INCLUDE_DIR)/package.mk
19 include $(INCLUDE_DIR)/host-build.mk
20 include $(INCLUDE_DIR)/meson.mk
21
22 define Package/libwayland
23 SECTION:=libs
24 CATEGORY:=Video
25 SUBMENU:=Frameworks and Toolkits
26 TITLE:=wayland
27 URL:=https://wayland.freedesktop.org/
28 DEPENDS:=+libexpat +libffi
29 endef
30
31 define Package/libwayland/description
32 endef
33
34 define Package/wayland-scanner
35 SECTION:=libs
36 CATEGORY:=Video
37 SUBMENU:=Frameworks and Toolkits
38 TITLE:=wayland
39 URL:=https://wayland.freedesktop.org/
40 DEPENDS:=+libxml2 +libexpat
41 endef
42
43 define Package/wayland-scanner/description
44 endef
45
46 MESON_HOST_ARGS += \
47 -Dscanner=true \
48 -Dlibraries=false \
49 -Ddocumentation=false \
50 -Ddtd_validation=true
51
52 MESON_ARGS += \
53 -Dscanner=true \
54 -Dlibraries=true \
55 -Ddocumentation=false \
56 -Ddtd_validation=true \
57 -Dscanner_bin="$(STAGING_DIR_HOSTPKG)/bin/wayland-scanner"
58
59 define Build/InstallDev
60 $(INSTALL_DIR) $(1)/usr/include
61 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
62 $(INSTALL_DIR) $(1)/usr/lib
63 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*.so* $(1)/usr/lib/
64 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
65 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc $(1)/usr/lib/pkgconfig
66 endef
67
68 define Package/libwayland/install
69 $(INSTALL_DIR) $(1)/usr/lib
70 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*.so.* $(1)/usr/lib/
71 endef
72
73 define Package/wayland-scanner/install
74 $(INSTALL_DIR) $(1)/usr/bin
75 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/wayland-scanner $(1)/usr/bin/
76 endef
77
78 $(eval $(call BuildPackage,libwayland))
79 $(eval $(call BuildPackage,wayland-scanner))
80 $(eval $(call HostBuild))