xref: /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-core/plymouth/plymouth_0.9.5.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1SUMMARY = "Plymouth is a project from Fedora providing a flicker-free graphical boot process."
2
3DESCRIPTION = "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
8HOMEPAGE = "http://www.freedesktop.org/wiki/Software/Plymouth"
9SECTION = "base"
10
11LICENSE = "GPL-2.0-or-later"
12
13LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
14
15DEPENDS = "libcap libpng cairo dbus udev"
16DEPENDS:append:libc-musl = " musl-rpmatch"
17PROVIDES = "virtual/psplash"
18RPROVIDES:${PN} = "virtual-psplash virtual-psplash-support"
19
20SRC_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 \
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 \
26        "
27
28SRC_URI[md5sum] = "8a25d23f3ae732af300a56fa33cacff2"
29
30EXTRA_OECONF += " --enable-shared --disable-static --disable-gtk --disable-documentation \
31    --with-logo=${LOGO} \
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)} \
33    ${@bb.utils.contains('DISTRO_FEATURES', 'usrmerge','--without-system-root-install','--with-system-root-install',d)} \
34"
35
36PACKAGECONFIG ??= "pango initrd"
37PACKAGECONFIG:append:x86 = " drm"
38PACKAGECONFIG:append:x86-64 = " drm"
39
40PACKAGECONFIG[drm] = "--enable-drm,--disable-drm,libdrm"
41PACKAGECONFIG[pango] = "--enable-pango,--disable-pango,pango"
42PACKAGECONFIG[gtk] = "--enable-gtk,--disable-gtk,gtk+3"
43PACKAGECONFIG[initrd] = ",,,"
44
45LOGO ??= "${datadir}/plymouth/bizcom.png"
46
47inherit autotools pkgconfig systemd gettext
48
49LDFLAGS:append:libc-musl = " -lrpmatch"
50
51do_install:append() {
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
60PACKAGES =. "${@bb.utils.contains('PACKAGECONFIG', 'initrd', '${PN}-initrd ', '', d)}"
61PACKAGES =+ "${PN}-set-default-theme"
62
63FILES:${PN}-initrd = "${libexecdir}/plymouth/*"
64FILES:${PN}-set-default-theme = "${sbindir}/plymouth-set-default-theme"
65
66FILES:${PN} += "${systemd_unitdir}/system/*"
67FILES:${PN}-dbg += "${libdir}/plymouth/renderers/.debug"
68
69
70RDEPENDS:${PN}-initrd = "bash dracut"
71RDEPENDS:${PN}-set-default-theme = "bash"
72
73SYSTEMD_SERVICE:${PN} = "plymouth-start.service"
74