Contents of /branches/magellan-next/core/fluxbox/fluxbox-1.3.2-r2.smage2
Parent Directory | Revision Log
Revision 9490 -
(show annotations)
(download)
Fri Dec 2 13:58:41 2011 UTC (12 years, 9 months ago) by niro
File size: 1945 byte(s)
Fri Dec 2 13:58:41 2011 UTC (12 years, 9 months ago) by niro
File size: 1945 byte(s)
-fixed consolekit patch
1 | # $Id$ |
2 | |
3 | PNAME="fluxbox" |
4 | PVER="1.3.2" |
5 | PBUILD="r2" |
6 | |
7 | PCATEGORIE="x11-wm" |
8 | |
9 | DESCRIPTION="fluxbox is yet another windowmanager for X based on blackbox." |
10 | HOMEPAGE="http://www.fluxbox.org/" |
11 | |
12 | DEPEND=">= x11-libs/libXpm-1 |
13 | >= x11-libs/libXrandr-1 |
14 | >= x11-libs/libXinerama-1 |
15 | >= x11-libs/libXft-1 |
16 | >= dev-libs/fribidi-0.19 |
17 | >= media-libs/freetype-2 |
18 | >= media-libs/imlib2-1.4 |
19 | >= x11-apps/xmessage-1.03 |
20 | >= sys-apps/consolekit-0.4" |
21 | |
22 | SDEPEND=">= sys-dev/automake-4 |
23 | >= sys-dev/autoconf-5" |
24 | |
25 | SRCFILE="${PNAME}-${PVER/_/}.tar.bz2" |
26 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER/_/}" |
27 | |
28 | sminclude xorg mtools |
29 | |
30 | SRC_URI=( |
31 | sourceforge://${PNAME}/${SRCFILE} |
32 | mirror://${PNAME}/${SRCFILE} |
33 | mirror://${PNAME}/${PNAME}-1.3.2-consolekit-2.patch |
34 | ) |
35 | |
36 | UP2DATE="updatecmd_sourceforge ${PNAME}" |
37 | |
38 | src_prepare() |
39 | { |
40 | munpack ${SRCFILE} || die |
41 | cd ${SRCDIR} |
42 | |
43 | # enable a consolekit session on startup |
44 | mpatch ${PNAME}-1.3.2-consolekit-2.patch || die |
45 | |
46 | # enable antialias by default |
47 | echo "session.screen0.antialias: true" >> data/init.in || die |
48 | |
49 | # all styles should use fbsetroot |
50 | for style in ${SRCDIR}/data/styles/* |
51 | do |
52 | [[ -f ${style} ]] || continue |
53 | sed -i 's,\([^f]\)bsetroot,\1fbsetroot,' ${style} || die ${style} |
54 | done |
55 | } |
56 | |
57 | src_compile() |
58 | { |
59 | cd ${SRCDIR} |
60 | |
61 | mconfigure \ |
62 | --sysconfdir=/etc/X11/${PNAME} \ |
63 | --enable-nls \ |
64 | --enable-imlib2 \ |
65 | --enable-xpm \ |
66 | --enable-kde \ |
67 | --enable-gnome \ |
68 | --enable-xft \ |
69 | --enable-xinerama \ |
70 | --enable-fribidi \ |
71 | --disable-debug \ |
72 | || die |
73 | |
74 | mmake || die |
75 | } |
76 | |
77 | src_install() |
78 | { |
79 | cd ${SRCDIR} |
80 | |
81 | # needed directories |
82 | minstalldir /usr/share/fluxbox || die |
83 | minstalldir /usr/share/xsessions || die |
84 | |
85 | mmake DESTDIR=${BINDIR} install || die |
86 | |
87 | # create gnome xsession file |
88 | echo "[Desktop Entry] |
89 | Encoding=UTF-8 |
90 | Name=Fluxbox |
91 | Comment=This session logs you into Fluxbox |
92 | Exec=startfluxbox |
93 | TryExec=startfluxbox |
94 | Icon= |
95 | Type=Application" > ${BINDIR}/usr/share/xsessions/fluxbox.desktop || die |
96 | |
97 | minstalldocs AUTHORS COPYING ChangeLog NEWS README TODO || die |
98 | } |