Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


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