Magellan Linux

Contents of /branches/magellan-next/core/fluxbox/fluxbox-1.3.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


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