Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 1 | SUMMARY = "Plymouth is a project from Fedora providing a flicker-free graphical boot process." |
| 2 | |
| 3 | DESCRIPTION = "Plymouth is an application that runs very early in the boot process \ |
| 4 | (even before the root filesystem is mounted!) that provides a \ |
| 5 | graphical boot animation while the boot process happens in the background. \ |
| 6 | " |
| 7 | |
| 8 | HOMEPAGE = "http://www.freedesktop.org/wiki/Software/Plymouth" |
| 9 | SECTION = "base" |
| 10 | |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 11 | LICENSE = "GPL-2.0-or-later" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 12 | |
| 13 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" |
| 14 | |
| 15 | DEPENDS = "libcap libpng cairo dbus udev" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 16 | DEPENDS:append:libc-musl = " musl-rpmatch" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 17 | PROVIDES = "virtual/psplash" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 18 | RPROVIDES:${PN} = "virtual-psplash virtual-psplash-support" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 19 | |
| 20 | SRC_URI = " \ |
| 21 | http://www.freedesktop.org/software/plymouth/releases/${BPN}-${PV}.tar.xz \ |
| 22 | file://0001-Make-full-path-to-systemd-tty-ask-password-agent-con.patch \ |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 23 | file://0001-systemd-switch-to-KillMode-mixed.patch \ |
| 24 | file://0001-plymouth-start-service-in-add-related-kernel-paramet.patch \ |
| 25 | file://0001-plymouth-Add-the-retain-splash-option.patch \ |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 26 | " |
| 27 | |
Andrew Geissler | ac970dd | 2021-02-12 15:32:45 -0600 | [diff] [blame] | 28 | SRC_URI[md5sum] = "8a25d23f3ae732af300a56fa33cacff2" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 29 | |
| 30 | EXTRA_OECONF += " --enable-shared --disable-static --disable-gtk --disable-documentation \ |
| 31 | --with-logo=${LOGO} \ |
Andrew Geissler | eafcbb8 | 2020-06-05 17:59:17 -0500 | [diff] [blame] | 32 | ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '--enable-systemd-integration --with-systemd-tty-ask-password-agent=${base_bindir}/systemd-tty-ask-password-agent', '--disable-systemd-integration', d)} \ |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 33 | ${@bb.utils.contains('DISTRO_FEATURES', 'usrmerge','--without-system-root-install','--with-system-root-install',d)} \ |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 34 | " |
| 35 | |
| 36 | PACKAGECONFIG ??= "pango initrd" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 37 | PACKAGECONFIG:append:x86 = " drm" |
| 38 | PACKAGECONFIG:append:x86-64 = " drm" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 39 | |
| 40 | PACKAGECONFIG[drm] = "--enable-drm,--disable-drm,libdrm" |
| 41 | PACKAGECONFIG[pango] = "--enable-pango,--disable-pango,pango" |
| 42 | PACKAGECONFIG[gtk] = "--enable-gtk,--disable-gtk,gtk+3" |
| 43 | PACKAGECONFIG[initrd] = ",,," |
| 44 | |
| 45 | LOGO ??= "${datadir}/plymouth/bizcom.png" |
| 46 | |
Andrew Geissler | ac970dd | 2021-02-12 15:32:45 -0600 | [diff] [blame] | 47 | inherit autotools pkgconfig systemd gettext |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 48 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 49 | LDFLAGS:append:libc-musl = " -lrpmatch" |
Andrew Geissler | 32b1199 | 2021-03-31 13:37:05 -0500 | [diff] [blame] | 50 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 51 | do_install:append() { |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 52 | # Remove /var/run from package as plymouth will populate it on startup |
| 53 | rm -fr "${D}${localstatedir}/run" |
| 54 | |
| 55 | if ! ${@bb.utils.contains('PACKAGECONFIG', 'initrd', 'true', 'false', d)}; then |
| 56 | rm -rf "${D}${libexecdir}" |
| 57 | fi |
| 58 | } |
| 59 | |
| 60 | PACKAGES =. "${@bb.utils.contains('PACKAGECONFIG', 'initrd', '${PN}-initrd ', '', d)}" |
| 61 | PACKAGES =+ "${PN}-set-default-theme" |
| 62 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 63 | FILES:${PN}-initrd = "${libexecdir}/plymouth/*" |
| 64 | FILES:${PN}-set-default-theme = "${sbindir}/plymouth-set-default-theme" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 65 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 66 | FILES:${PN} += "${systemd_unitdir}/system/*" |
| 67 | FILES:${PN}-dbg += "${libdir}/plymouth/renderers/.debug" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 68 | |
| 69 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 70 | RDEPENDS:${PN}-initrd = "bash dracut" |
| 71 | RDEPENDS:${PN}-set-default-theme = "bash" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 72 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 73 | SYSTEMD_SERVICE:${PN} = "plymouth-start.service" |