Magellan Linux

Contents of /trunk/extras/fluxbox/fluxbox-1.3.2-r4.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 13887 - (show annotations) (download)
Mon Oct 29 10:20:00 2012 UTC (11 years, 7 months ago) by niro
File size: 1999 byte(s)
-provides virtual/windowmanager
1 # $Id$
2
3 PNAME="fluxbox"
4 PVER="1.3.2"
5 PBUILD="r4"
6
7 PCAT="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 >= sys-libs/libstdc++-4.6"
22
23 SDEPEND=">= sys-dev/automake-4
24 >= sys-dev/autoconf-5"
25
26 PROVIDE="virtual/windowmanager"
27
28 SRCFILE="${PNAME}-${PVER/_/}.tar.bz2"
29 SRCDIR="${BUILDDIR}/${PNAME}-${PVER/_/}"
30
31 sminclude xorg mtools
32
33 SRC_URI=(
34 sourceforge://${PNAME}/${SRCFILE}
35 mirror://${PNAME}/${SRCFILE}
36 mirror://${PNAME}/${PNAME}-1.3.2-consolekit-2.patch
37 )
38
39 UP2DATE="updatecmd_sourceforge ${PNAME}"
40
41 src_prepare()
42 {
43 munpack ${SRCFILE} || die
44 cd ${SRCDIR}
45
46 # enable a consolekit session on startup
47 mpatch ${PNAME}-1.3.2-consolekit-2.patch || die
48
49 # enable antialias by default
50 echo "session.screen0.antialias: true" >> data/init.in || die
51
52 # all styles should use fbsetroot
53 for style in ${SRCDIR}/data/styles/*
54 do
55 [[ -f ${style} ]] || continue
56 sed -i 's,\([^f]\)bsetroot,\1fbsetroot,' ${style} || die ${style}
57 done
58 }
59
60 src_compile()
61 {
62 cd ${SRCDIR}
63
64 mconfigure \
65 --sysconfdir=/etc/X11/${PNAME} \
66 --enable-nls \
67 --enable-imlib2 \
68 --enable-xpm \
69 --enable-kde \
70 --enable-gnome \
71 --enable-xft \
72 --enable-xinerama \
73 --enable-fribidi \
74 --disable-debug \
75 || die
76
77 mmake || die
78 }
79
80 src_install()
81 {
82 cd ${SRCDIR}
83
84 # needed directories
85 minstalldir /usr/share/fluxbox || die
86 minstalldir /usr/share/xsessions || die
87
88 mmake DESTDIR=${BINDIR} install || die
89
90 # create gnome xsession file
91 echo "[Desktop Entry]
92 Encoding=UTF-8
93 Name=Fluxbox
94 Comment=This session logs you into Fluxbox
95 Exec=startfluxbox
96 TryExec=startfluxbox
97 Icon=
98 Type=Application" > ${BINDIR}/usr/share/xsessions/fluxbox.desktop || die
99
100 minstalldocs AUTHORS COPYING ChangeLog NEWS README TODO || die
101 }