2017-12-04 16:33:20 -05:00
|
|
|
SUMMARY = "Plymouth is a project from Fedora providing a flicker-free graphical boot process."
|
|
|
|
|
|
|
|
DESCRIPTION = "Plymouth is an application that runs very early in the boot process \
|
|
|
|
(even before the root filesystem is mounted!) that provides a \
|
|
|
|
graphical boot animation while the boot process happens in the background. \
|
|
|
|
"
|
|
|
|
|
|
|
|
HOMEPAGE = "http://www.freedesktop.org/wiki/Software/Plymouth"
|
|
|
|
SECTION = "base"
|
|
|
|
|
2022-05-28 11:20:07 -04:00
|
|
|
LICENSE = "GPL-2.0-or-later"
|
2017-12-04 16:33:20 -05:00
|
|
|
|
|
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
|
|
|
|
|
|
|
|
DEPENDS = "libcap libpng cairo dbus udev"
|
2022-05-28 11:20:07 -04:00
|
|
|
DEPENDS:append:libc-musl = " musl-rpmatch"
|
2017-12-04 16:33:20 -05:00
|
|
|
PROVIDES = "virtual/psplash"
|
2022-05-28 11:20:07 -04:00
|
|
|
RPROVIDES:${PN} = "virtual-psplash virtual-psplash-support"
|
2017-12-04 16:33:20 -05:00
|
|
|
|
2022-09-19 10:21:30 -04:00
|
|
|
SRCREV = "e96011133a2ac44ee2a42fb8231144c4c799151d"
|
2021-05-05 08:45:55 -04:00
|
|
|
SRC_URI = " \
|
2021-10-06 15:27:34 -04:00
|
|
|
git://gitlab.freedesktop.org/plymouth/plymouth.git;branch=main;protocol=https \
|
2021-05-05 08:45:55 -04:00
|
|
|
file://0001-Make-full-path-to-systemd-tty-ask-password-agent-con.patch \
|
2022-09-19 10:21:30 -04:00
|
|
|
file://plymouthd.conf \
|
2021-05-05 08:45:55 -04:00
|
|
|
"
|
|
|
|
S = "${WORKDIR}/git"
|
2017-12-04 16:33:20 -05:00
|
|
|
|
2022-09-19 10:21:30 -04:00
|
|
|
EXTRA_OECONF += " --enable-shared --disable-static --disable-documentation \
|
2017-12-04 16:33:20 -05:00
|
|
|
--with-logo=${LOGO} \
|
2021-05-05 08:45:55 -04:00
|
|
|
${@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)} \
|
|
|
|
${@bb.utils.contains('DISTRO_FEATURES', 'usrmerge','--without-system-root-install','--with-system-root-install',d)} \
|
2017-12-04 16:33:20 -05:00
|
|
|
"
|
|
|
|
|
2021-05-05 08:45:55 -04:00
|
|
|
PACKAGECONFIG ??= "pango initrd"
|
2022-05-28 11:20:07 -04:00
|
|
|
PACKAGECONFIG:append:x86 = " drm"
|
|
|
|
PACKAGECONFIG:append:x86-64 = " drm"
|
2017-12-04 16:33:20 -05:00
|
|
|
|
|
|
|
PACKAGECONFIG[drm] = "--enable-drm,--disable-drm,libdrm"
|
|
|
|
PACKAGECONFIG[pango] = "--enable-pango,--disable-pango,pango"
|
2021-05-05 08:45:55 -04:00
|
|
|
PACKAGECONFIG[gtk] = "--enable-gtk,--disable-gtk,gtk+3"
|
|
|
|
PACKAGECONFIG[initrd] = ",,,"
|
2017-12-04 16:33:20 -05:00
|
|
|
|
2021-05-05 08:45:55 -04:00
|
|
|
LOGO ??= "${datadir}/plymouth/bizcom.png"
|
2017-12-04 16:33:20 -05:00
|
|
|
|
2020-08-05 19:24:37 -04:00
|
|
|
inherit autotools pkgconfig systemd gettext
|
2017-12-04 16:33:20 -05:00
|
|
|
|
2022-05-28 11:20:07 -04:00
|
|
|
LDFLAGS:append:libc-musl = " -lrpmatch"
|
2021-05-05 08:45:55 -04:00
|
|
|
|
2022-05-28 11:20:07 -04:00
|
|
|
do_install:append() {
|
2017-12-04 16:33:20 -05:00
|
|
|
# Remove /var/run from package as plymouth will populate it on startup
|
|
|
|
rm -fr "${D}${localstatedir}/run"
|
|
|
|
|
2021-05-05 08:45:55 -04:00
|
|
|
if ! ${@bb.utils.contains('PACKAGECONFIG', 'initrd', 'true', 'false', d)}; then
|
2017-12-04 16:33:20 -05:00
|
|
|
rm -rf "${D}${libexecdir}"
|
2021-05-05 08:45:55 -04:00
|
|
|
fi
|
2022-09-19 10:21:30 -04:00
|
|
|
rm -rf ${D}/etc/plymouth/plymouthd.conf
|
|
|
|
install -m 644 ${WORKDIR}/plymouthd.conf ${D}/etc/plymouth/plymouthd.conf
|
2021-05-05 08:45:55 -04:00
|
|
|
}
|
2018-01-18 18:19:47 -05:00
|
|
|
|
2022-05-28 11:20:07 -04:00
|
|
|
do_configure:prepend() {
|
2021-05-05 08:45:55 -04:00
|
|
|
touch ${S}/ABOUT-NLS
|
|
|
|
mkdir -p ${S}/build-tools
|
|
|
|
touch ${S}/build-tools/config.rpath
|
2017-12-04 16:33:20 -05:00
|
|
|
}
|
|
|
|
|
2021-05-05 08:45:55 -04:00
|
|
|
PACKAGES =. "${@bb.utils.contains('PACKAGECONFIG', 'initrd', '${PN}-initrd ', '', d)}"
|
2017-12-04 16:33:20 -05:00
|
|
|
PACKAGES =+ "${PN}-set-default-theme"
|
|
|
|
|
2022-05-28 11:20:07 -04:00
|
|
|
FILES:${PN}-initrd = "${libexecdir}/plymouth/*"
|
|
|
|
FILES:${PN}-set-default-theme = "${sbindir}/plymouth-set-default-theme"
|
2017-12-04 16:33:20 -05:00
|
|
|
|
2022-05-28 11:20:07 -04:00
|
|
|
FILES:${PN} += "${systemd_unitdir}/system/*"
|
|
|
|
FILES:${PN}-dbg += "${libdir}/plymouth/renderers/.debug"
|
2017-12-04 16:33:20 -05:00
|
|
|
|
|
|
|
|
2022-05-28 11:20:07 -04:00
|
|
|
RDEPENDS:${PN}-initrd = "bash dracut"
|
|
|
|
RDEPENDS:${PN}-set-default-theme = "bash"
|
2017-12-04 16:33:20 -05:00
|
|
|
|
2022-05-28 11:20:07 -04:00
|
|
|
SYSTEMD_SERVICE:${PN} = "plymouth-start.service"
|
2021-05-05 08:45:55 -04:00
|
|
|
|