Magellan Linux

Contents of /smage/trunk/core/plymouth/plymouth-0.9.2-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


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