1
0
forked from brl/citadel
citadel/meta-gnome/recipes-freedesktop/plymouth/plymouth.bb

78 lines
2.6 KiB
BlitzBasic
Raw Normal View History

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"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
DEPENDS = "libcap libpng cairo dbus udev"
DEPENDS_append_libc-musl = " musl-rpmatch"
2017-12-04 16:33:20 -05:00
PROVIDES = "virtual/psplash"
RPROVIDES_${PN} = "virtual-psplash virtual-psplash-support"
SRCREV = "e55447500fa95a0cc59c741296030ed91a2986dc"
SRC_URI = " \
git://gitlab.freedesktop.org/plymouth/plymouth.git;branch=master;protocol=https \
file://0001-Make-full-path-to-systemd-tty-ask-password-agent-con.patch \
"
S = "${WORKDIR}/git"
2017-12-04 16:33:20 -05:00
EXTRA_OECONF += " --enable-shared --disable-static --disable-gtk --disable-documentation \
--with-logo=${LOGO} \
${@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
"
PACKAGECONFIG ??= "pango initrd"
2017-12-04 16:33:20 -05:00
PACKAGECONFIG_append_x86 = " drm"
PACKAGECONFIG_append_x86-64 = " drm"
PACKAGECONFIG[drm] = "--enable-drm,--disable-drm,libdrm"
PACKAGECONFIG[pango] = "--enable-pango,--disable-pango,pango"
PACKAGECONFIG[gtk] = "--enable-gtk,--disable-gtk,gtk+3"
PACKAGECONFIG[initrd] = ",,,"
2017-12-04 16:33:20 -05:00
LOGO ??= "${datadir}/plymouth/bizcom.png"
2017-12-04 16:33:20 -05:00
inherit autotools pkgconfig systemd gettext
2017-12-04 16:33:20 -05:00
LDFLAGS_append_libc-musl = " -lrpmatch"
2017-12-04 16:33:20 -05:00
do_install_append() {
# Remove /var/run from package as plymouth will populate it on startup
rm -fr "${D}${localstatedir}/run"
if ! ${@bb.utils.contains('PACKAGECONFIG', 'initrd', 'true', 'false', d)}; then
2017-12-04 16:33:20 -05:00
rm -rf "${D}${libexecdir}"
fi
}
2018-01-18 18:19:47 -05:00
do_configure_prepend() {
touch ${S}/ABOUT-NLS
mkdir -p ${S}/build-tools
touch ${S}/build-tools/config.rpath
2017-12-04 16:33:20 -05:00
}
PACKAGES =. "${@bb.utils.contains('PACKAGECONFIG', 'initrd', '${PN}-initrd ', '', d)}"
2017-12-04 16:33:20 -05:00
PACKAGES =+ "${PN}-set-default-theme"
FILES_${PN}-initrd = "${libexecdir}/plymouth/*"
2017-12-04 16:33:20 -05:00
FILES_${PN}-set-default-theme = "${sbindir}/plymouth-set-default-theme"
FILES_${PN} += "${systemd_unitdir}/system/*"
FILES_${PN}-dbg += "${libdir}/plymouth/renderers/.debug"
RDEPENDS_${PN}-initrd = "bash dracut"
2017-12-04 16:33:20 -05:00
RDEPENDS_${PN}-set-default-theme = "bash"
SYSTEMD_SERVICE_${PN} = "plymouth-start.service"