summaryrefslogtreecommitdiffstats
path: root/utils/plymouth/Makefile
blob: c5aeafca381b78b741fe42bc68f66bcfef0c9850 (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
81
82
83
84
85
include $(TOPDIR)/rules.mk

PKG_NAME:=plymouth
PKG_VERSION:=26.134.222
PKG_RELEASE:=2

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://gitlab.freedesktop.org/plymouth/plymouth/-/archive/$(PKG_VERSION)
PKG_HASH:=053687d4e8bb1320c14dafc014ebf4e45427f1cf417ce76b51102fbd61a3350a

PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
PKG_LICENSE:=GPL-2.0-or-later
PKG_LICENSE_FILES:=COPYING

PKG_BUILD_DEPENDS:=gettext-full/host

PKG_INSTALL:=1
PKG_BUILD_PARALLEL:=1

include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/meson.mk

MESON_ARGS += \
	-Ddrm=true \
	-Dudev=enabled \
	-Dgtk=disabled \
	-Dpango=disabled \
	-Dfreetype=disabled \
	-Ddocs=false \
	-Dsystemd-integration=false \
	-Dupstart-monitoring=false \
	-Dtracing=$(if $(CONFIG_DEBUG),true,false) \
	-Drelease-file=/etc/openwrt_release \
	-Drunstatedir=/var/run

define Package/plymouth/Default
  SECTION:=utils
  CATEGORY:=Utilities
  URL:=https://www.freedesktop.org/wiki/Software/Plymouth/
endef

define Package/plymouth
$(call Package/plymouth/Default)
  TITLE:=Graphical boot splash on a KMS device
  DEPENDS:=+libpng +libdrm +libudev +libevdev +libxkbcommon +xkeyboard-config
endef

define Package/plymouth/description
  Draws a boot splash directly on a DRM/KMS device and owns the display
  until the application that follows it takes over, so the console stays
  silent from reset to user interface.
endef

define Package/plymouth/conffiles
/etc/plymouth/plymouthd.conf
endef

define Build/InstallDev
	$(INSTALL_DIR) $(1)/usr/include
	$(CP) $(PKG_INSTALL_DIR)/usr/include/plymouth-1 $(1)/usr/include/
	$(INSTALL_DIR) $(1)/usr/lib
	$(CP) $(PKG_INSTALL_DIR)/usr/lib/libply*.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/plymouth/install
	$(INSTALL_DIR) $(1)/usr/lib
	$(CP) $(PKG_INSTALL_DIR)/usr/lib/libply*.so* $(1)/usr/lib/
	$(INSTALL_DIR) $(1)/usr/lib/plymouth
	$(CP) $(PKG_INSTALL_DIR)/usr/lib/plymouth/* $(1)/usr/lib/plymouth/
	$(INSTALL_DIR) $(1)/usr/bin
	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/plymouth $(1)/usr/bin/
	$(INSTALL_DIR) $(1)/usr/sbin
	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/plymouthd $(1)/usr/sbin/
	$(INSTALL_DIR) $(1)/usr/share/plymouth
	$(CP) $(PKG_INSTALL_DIR)/usr/share/plymouth/plymouthd.defaults \
		$(1)/usr/share/plymouth/
	$(INSTALL_DIR) $(1)/etc/plymouth
	$(INSTALL_DATA) ./files/plymouthd.conf $(1)/etc/plymouth/plymouthd.conf
	$(INSTALL_DIR) $(1)/etc/init.d
	$(INSTALL_BIN) ./files/plymouth.init $(1)/etc/init.d/plymouth
endef

$(eval $(call BuildPackage,plymouth))