Contents of /smage/trunk/core/plymouth/plymouth-0.9.0-r1.smage2
Parent Directory | Revision Log
Revision 5750 -
(show annotations)
(download)
Fri Jul 4 10:25:28 2014 UTC (9 years, 11 months ago) by niro
File size: 3627 byte(s)
Fri Jul 4 10:25:28 2014 UTC (9 years, 11 months ago) by niro
File size: 3627 byte(s)
auto added: ver bump to 0.9.0-r1
1 | # $Id$ |
2 | |
3 | PNAME="plymouth" |
4 | PVER="0.9.0" |
5 | PBUILD="r1" |
6 | |
7 | PCAT="sys-apps" |
8 | |
9 | DESCRIPTION="Graphical Boot Animation and Logger." |
10 | HOMEPAGE="http://www.freedesktop.org/wiki/Software/Plymouth" |
11 | |
12 | DEPEND=">= dev-libs/glib2-2.36 |
13 | >= media-libs/libpng-1.5 |
14 | >= x11-libs/pango-1.34 |
15 | >= x11-libs/cairo-1.12 |
16 | >= x11-libs/libdrm-2.4.45" |
17 | |
18 | SDEPEND=">= dev-util/pkgconfig-0.25 |
19 | >= virtual/kernel-headers |
20 | >= x11-libs/gtk2+-2.24" |
21 | |
22 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
23 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
24 | |
25 | ALX_PKG_KEEP="etc/plymouth |
26 | usr/bin/plymouth |
27 | usr/sbin/plymouthd |
28 | usr/sbin/plymouth-set-default-theme |
29 | usr/share/plymouth/default-boot-duration |
30 | usr/share/plymouth/magellan-logo.png |
31 | usr/share/plymouth/plymouthd.defaults |
32 | usr/share/plymouth/themes/text |
33 | usr/$(mlibdir)/*.so.* |
34 | usr/$(mlibdir)/plymouth/script.so |
35 | usr/$(mlibdir)/plymouth/text.so |
36 | usr/$(mlibdir)/plymouth/plymouth/plymouth-generate-initrd |
37 | usr/$(mlibdir)/plymouth/plymouth/plymouth-populate-initrd |
38 | usr/$(mlibdir)/plymouth/plymouth/plymouth-update-initrd |
39 | usr/$(mlibdir)/plymouth/renderers/drm.so |
40 | usr/$(mlibdir)/plymouth/renderers/frame-buffer.so |
41 | usr/lib/systemd" |
42 | sminclude mtools cleanutils alx-split |
43 | |
44 | SRC_URI=( |
45 | http://www.freedesktop.org/software/${PNAME}/releases/${SRCFILE} |
46 | mirror://${PNAME}/${SRCFILE} |
47 | mirror://${PNAME}/boot-duration |
48 | mirror://${PNAME}/charge.plymouth |
49 | mirror://${PNAME}/magellan-sign.png |
50 | mirror://${PNAME}/${PNAME}-0.8.8-busybox-compat.patch |
51 | ) |
52 | |
53 | UP2DATE="updatecmd http://www.freedesktop.org/software/plymouth/releases/ | lasttarball" |
54 | |
55 | src_prepare() |
56 | { |
57 | munpack ${SRCFILE} || die |
58 | cd ${SRCDIR} |
59 | |
60 | # be busybox compat |
61 | mpatch ${PNAME}-0.8.8-busybox-compat.patch || die |
62 | |
63 | # fix systemdunitdir location |
64 | sed -i \ |
65 | 's:SYSTEMD_UNIT_DIR=/lib/systemd/system:SYSTEMD_UNIT_DIR=/usr/lib/systemd/system:g' \ |
66 | configure.ac || die |
67 | |
68 | # make charge to the default plugin |
69 | sed -i 's:fade-in:charge:g' src/plymouthd.defaults || die |
70 | |
71 | # git - missing configure |
72 | mautoreconf || die |
73 | } |
74 | |
75 | src_compile() |
76 | { |
77 | cd ${SRCDIR} |
78 | |
79 | mconfigure \ |
80 | --localstatedir=/var \ |
81 | --libexecdir=/usr/$(mlibdir)/${PNAME} \ |
82 | --enable-tracing \ |
83 | --disable-tests \ |
84 | --disable-gdm-transition \ |
85 | --enable-systemd-integration \ |
86 | --without-system-root-install \ |
87 | --without-log-viewer \ |
88 | --with-logo=/usr/share/plymouth/magellan-logo.png \ |
89 | --disable-static \ |
90 | --disable-libdrm_nouveau \ |
91 | --disable-libkms \ |
92 | --with-background-start-color-stop=0xff0000 \ |
93 | --with-background-end-color-stop=0x00ff00 \ |
94 | --with-background-color=0x0000ff \ |
95 | || die |
96 | |
97 | mmake || die |
98 | } |
99 | |
100 | alx_generic_src_install() |
101 | { |
102 | cd ${SRCDIR} |
103 | mmake DESTDIR=${BINDIR} install || die |
104 | |
105 | # install magellan-logo |
106 | minstalldir /usr/share/plymouth || die |
107 | minstallfile -s magellan-sign.png /usr/share/plymouth/magellan-logo.png || die |
108 | |
109 | # install boot-duration for initrd |
110 | minstalldir /usr/share/plymouth || die |
111 | minstalldir /var/lib/plymouth || die |
112 | minstallfile -s boot-duration /usr/share/plymouth/default-boot-duration || die |
113 | minstallfile -s boot-duration /var/lib/plymouth || die |
114 | |
115 | # install charge plugin from fedora |
116 | minstalldir /usr/share/plymouth/themes/charge || die |
117 | minstallfile -s charge.plymouth /usr/share/plymouth/themes/charge || die |
118 | minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/box.png /usr/share/plymouth/themes/charge || die |
119 | minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/bullet.png /usr/share/plymouth/themes/charge || die |
120 | minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/entry.png /usr/share/plymouth/themes/charge || die |
121 | minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/lock.png /usr/share/plymouth/themes/charge || die |
122 | |
123 | minstalldocs AUTHORS ChangeLog COPYING NEWS README TODO || die |
124 | } |