Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


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