Magellan Linux

Contents of /smage/trunk/core/plymouth/plymouth-0.8.8_20130902-r4.smage2

Parent Directory Parent Directory | Revision Log Revision Log


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