Magellan Linux

Contents of /trunk/core/plymouth/plymouth-0.8.4-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 12470 - (show annotations) (download)
Tue May 29 13:04:47 2012 UTC (12 years ago) by niro
File size: 3323 byte(s)
-disabled nouveau driver as its broken with the new libdrm ABI
1 # $Id$
2
3 PNAME="plymouth"
4 PVER="0.8.4"
5 PBUILD="r1"
6
7 SPLIT_PACKAGES="plymouth plymouth-x11"
8
9 PCAT="sys-apps"
10 HOMEPAGE="http://www.freedesktop.org/wiki/Software/Plymouth"
11
12 COMMON_DEPEND=">= dev-libs/glib2-2.32
13 >= media-libs/libpng-1.5
14 >= x11-libs/pango-1.30
15 >= x11-libs/cairo-1.20
16 >= x11-libs/libdrm-2.4.34"
17
18 X11_DEPEND=">= x11-libs/gtk2+-2.24"
19
20 SDEPEND="${COMMON_DEPEND}
21 ${X11_DEPEND}
22 >= dev-util/pkgconfig-0.25
23 >= virtual/kernel-headers"
24
25 SRCFILE="${PNAME}-${PVER}.tar.bz2"
26 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
27
28 sminclude mtools cleanutils
29
30 SRC_URI=(
31 http://www.freedesktop.org/software/${PNAME}/releases/${SRCFILE}
32 mirror://${PNAME}/${SRCFILE}
33 mirror://${PNAME}/boot-duration
34 mirror://${PNAME}/charge.plymouth
35 mirror://${PNAME}/magellan-sign.png
36 )
37
38 UP2DATE="updatecmd http://www.freedesktop.org/software/plymouth/releases/ | lasttarball"
39
40 split_info_plymouth()
41 {
42 DESCRIPTION="Graphical Boot Animation and Logger."
43 DEPEND="${COMMON_DEPEND}"
44 }
45
46 split_info_plymouth-x11()
47 {
48 DESCRIPTION="X11 renderer of plymouth, for development purposes only."
49 DEPEND="== sys-apps/plymouth-${PVER}
50 ${X11_DEPEND}"
51 }
52
53 src_prepare()
54 {
55 munpack ${SRCFILE} || die
56 cd ${SRCDIR}
57
58 # let new-kernel-pkg decide how to handle initramfs updates (dracut or mkinird)
59 cat > scripts/plymouth-update-initrd << EOF
60 #!/bin/bash
61 /sbin/new-kernel-pkg --package kernel --mkinitrd --dracut --depmod --install $(uname -r)
62 EOF
63
64 # make charge to the default plugin
65 sed -i 's:fade-in:charge:g' src/plymouthd.defaults || die
66
67 # git - missing configure
68 mautoreconf || die
69 }
70
71 src_compile()
72 {
73 cd ${SRCDIR}
74
75 mconfigure \
76 --localstatedir=/var \
77 --libexecdir=/usr/$(mlibdir)/${PNAME} \
78 --enable-tracing \
79 --disable-tests \
80 --disable-gdm-transition \
81 --enable-systemd-integration \
82 --with-system-root-install \
83 --without-log-viewer \
84 --with-logo=/usr/share/plymouth/magellan-logo.png \
85 --disable-static \
86 --disable-libdrm_nouveau \
87 || die
88
89 mmake || die
90 }
91
92 src_install_plymouth()
93 {
94 cd ${SRCDIR}
95 mmake DESTDIR=${BINDIR} install || die
96
97 # install magellan-logo
98 minstalldir /usr/share/plymouth || die
99 minstallfile -s magellan-sign.png /usr/share/plymouth/magellan-logo.png || die
100
101 # install boot-duration for initrd
102 minstalldir /usr/share/plymouth || die
103 minstalldir /var/lib/plymouth || die
104 minstallfile -s boot-duration /usr/share/plymouth/default-boot-duration || die
105 minstallfile -s boot-duration /var/lib/plymouth || die
106
107 # install charge plugin from fedora
108 minstalldir /usr/share/plymouth/themes/charge || die
109 minstallfile -s charge.plymouth /usr/share/plymouth/themes/charge || die
110 minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/box.png /usr/share/plymouth/themes/charge || die
111 minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/bullet.png /usr/share/plymouth/themes/charge || die
112 minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/entry.png /usr/share/plymouth/themes/charge || die
113 minstallfile ${BINDIR}/usr/share/plymouth/themes/glow/lock.png /usr/share/plymouth/themes/charge || die
114
115 # remove x11-renderer
116 rm ${BINDIR}/usr/$(mlibdir)/plymouth/renderers/x11.* || die
117
118 minstalldocs AUTHORS ChangeLog COPYING NEWS README TODO || die
119 }
120
121 src_install_plymouth-x11()
122 {
123 cd ${SRCDIR}
124 mmake DESTDIR=${BINDIR} install || die
125 zapmost ${BINDIR} usr/$(mlibdir)/plymouth/renderers/x11.* || die
126 }