blob: 09236203eaa184347cd9a54dff78974ea2e58d5e (
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
|
include $(TOPDIR)/rules.mk
PKG_NAME:=wlroots
PKG_VERSION:=0.18.2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://gitlab.freedesktop.org/$(PKG_NAME)/$(PKG_NAME)/-/archive/$(PKG_VERSION)
PKG_HASH:=703c515917d9eb258e44296795f8626190e119b0ee8bfb32fe9f834dab1a1462
PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=LICENSE
PKG_INSTALL:=1
PKG_BUILD_DEPENDS:=wayland/host
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/meson.mk
define Package/wlroots
SECTION:=video-frameworks
CATEGORY:=Video
SUBMENU:=Frameworks and Toolkits
TITLE:=modules for building a Wayland compositor
URL:=https://gitlab.freedesktop.org/wlroots/wlroots
DEPENDS:=+libmesa +libdisplay-info +libdrm +libinput +libseat +libxkbcommon \
+libudev +pixman +libwayland +xkeyboard-config
endef
define Package/wlroots/description
Pluggable, composable, unopinionated modules for building a Wayland compositor;
or about 60,000 lines of code you were going to write anyway.
endef
MESON_ARGS += \
-Dxcb-errors=disabled \
-Dxwayland=disabled \
-Dexamples=false \
-Drenderers=gles2 \
-Dbackends=drm,libinput \
-Dallocators=gbm \
-Dsession=enabled \
-Dcolor-management=disabled \
-Dlibliftoff=disabled
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/wlroots/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib
endef
$(eval $(call BuildPackage,wlroots))
|