Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [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 \ |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 4 | (even before the root filesystem is mounted!) that provides a \ |
| 5 | graphical boot animation while the boot process happens in the background. \ |
| 6 | " |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 7 | |
| 8 | HOMEPAGE = "http://www.freedesktop.org/wiki/Software/Plymouth" |
| 9 | SECTION = "base" |
| 10 | |
| 11 | LICENSE = "GPLv2+" |
| 12 | |
| 13 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" |
| 14 | |
| 15 | DEPENDS = "libcap libpng cairo dbus udev" |
| 16 | PROVIDES = "virtual/psplash" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 17 | RPROVIDES_${PN} = "virtual-psplash virtual-psplash-support" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 18 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 19 | SRC_URI = " \ |
| 20 | http://www.freedesktop.org/software/plymouth/releases/${BPN}-${PV}.tar.bz2 \ |
| 21 | file://0001-Make-full-path-to-systemd-tty-ask-password-agent-con.patch \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 22 | file://0002-Fix-build-with-glibc-2.28.patch \ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 23 | " |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 24 | SRC_URI[md5sum] = "ff420994deb7ea203df678df92e7ab7d" |
| 25 | SRC_URI[sha256sum] = "2f0ce82042cf9c7eadd2517a1f74c8a85fa8699781d9f294a06eade29fbed57f" |
| 26 | |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 27 | EXTRA_OECONF += " --enable-shared --disable-static --disable-gtk --disable-documentation \ |
| 28 | --with-logo=${LOGO} \ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 29 | ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '--enable-systemd-integration --with-system-root-install --with-systemd-tty-ask-password-agent=${base_bindir}/systemd-tty-ask-password-agent', '', d)} \ |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 30 | " |
| 31 | |
| 32 | PACKAGECONFIG ??= "pango initrd" |
| 33 | PACKAGECONFIG_append_x86 = " drm" |
| 34 | PACKAGECONFIG_append_x86-64 = " drm" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 35 | |
| 36 | PACKAGECONFIG[drm] = "--enable-drm,--disable-drm,libdrm" |
| 37 | PACKAGECONFIG[pango] = "--enable-pango,--disable-pango,pango" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 38 | PACKAGECONFIG[gtk] = "--enable-gtk,--disable-gtk,gtk+3" |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 39 | PACKAGECONFIG[initrd] = ",,," |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 40 | |
| 41 | LOGO ??= "${datadir}/plymouth/bizcom.png" |
| 42 | |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 43 | inherit autotools pkgconfig systemd |
| 44 | |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 45 | do_install_append() { |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 46 | # Remove /var/run from package as plymouth will populate it on startup |
| 47 | rm -fr "${D}${localstatedir}/run" |
| 48 | |
| 49 | if ! ${@bb.utils.contains('PACKAGECONFIG', 'initrd', 'true', 'false', d)}; then |
| 50 | rm -rf "${D}${libexecdir}" |
| 51 | fi |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 52 | } |
| 53 | |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 54 | PACKAGES =. "${@bb.utils.contains('PACKAGECONFIG', 'initrd', '${PN}-initrd ', '', d)}" |
| 55 | PACKAGES =+ "${PN}-set-default-theme" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 56 | |
| 57 | FILES_${PN}-initrd = "${libexecdir}/plymouth/*" |
| 58 | FILES_${PN}-set-default-theme = "${sbindir}/plymouth-set-default-theme" |
| 59 | |
| 60 | FILES_${PN} += "${systemd_unitdir}/system/*" |
| 61 | FILES_${PN}-dbg += "${libdir}/plymouth/renderers/.debug" |
| 62 | |
| 63 | |
| 64 | RDEPENDS_${PN}-initrd = "bash dracut" |
| 65 | RDEPENDS_${PN}-set-default-theme = "bash" |
| 66 | |
| 67 | SYSTEMD_SERVICE_${PN} = "plymouth-start.service" |