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