Merge pull request #16 from dangowrt/wayland-stack
[feed/video.git] / libs / libxkbcommon / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=libxkbcommon
4 PKG_VERSION:=1.3.0
5 PKG_RELEASE:=$(AUTORELEASE)
6
7 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
8 PKG_SOURCE_URL:=https://xkbcommon.org/download/
9 PKG_HASH:=7b09e098ea69bc3054f0c57a9a25fda571c4df22398811606e32b5fffeb75e7b
10
11 PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
12 PKG_LICENSE:=BSD-3-Clause
13
14 PKG_INSTALL:=1
15
16 PKG_BUILD_DEPENDS:=wayland
17
18 include $(INCLUDE_DIR)/package.mk
19 include $(INCLUDE_DIR)/meson.mk
20
21 MESON_ARGS += \
22 -Denable-x11=false \
23 -Denable-docs=false \
24 -Denable-wayland=true \
25 -Dscanner_bin="$(STAGING_DIR_HOSTPKG)/bin/wayland-scanner"
26
27 define Package/libxkbcommon
28 SECTION:=libs
29 CATEGORY:=Libraries
30 TITLE:=libxkbcommon
31 URL:=https://xkbcommon.org/
32 DEPENDS:=+libwayland +libxml2 +wayland-protocols
33 endef
34
35 define Package/libxkbcommon/description
36 endef
37
38 define Build/InstallDev
39 $(INSTALL_DIR) $(1)/usr/include
40 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
41 $(INSTALL_DIR) $(1)/usr/lib
42 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
43 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
44 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc $(1)/usr/lib/pkgconfig/
45 endef
46
47 define Package/libxkbcommon/install
48 $(INSTALL_DIR) $(1)/usr/lib
49 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
50 $(INSTALL_DIR) $(1)/usr/libexec/xkbcommon
51 $(CP) $(PKG_INSTALL_DIR)/usr/libexec/xkbcommon/* $(1)/usr/libexec/xkbcommon/
52 $(INSTALL_DIR) $(1)/usr/bin
53 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/xkbcli $(1)/usr/bin/
54 endef
55
56 $(eval $(call BuildPackage,libxkbcommon))