Magellan Linux

Contents of /smage/trunk/core/fluxbox/fluxbox-1.1.1-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 954 - (show annotations) (download)
Fri Dec 10 17:45:48 2010 UTC (13 years, 4 months ago) by niro
File size: 2181 byte(s)
auto added: ver bump to 1.1.1-r3
1 # $Id: fluxbox-1.1.1-r2.smage2 261 2010-04-27 09:51:42Z niro $
2
3 PNAME="fluxbox"
4 PVER="1.1.1"
5 PBUILD="r3"
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/libXrandr-1
14 >= x11-libs/libSM-1
15 >= media-libs/freetype-2"
16
17 SDEPEND=">= sys-dev/automake-4
18 >= sys-dev/autoconf-5"
19
20 SRCFILE="${PNAME}-${PVER/_/}.tar.bz2"
21 SRCDIR="${BUILDDIR}/${PNAME}-${PVER/_/}"
22
23 MCORE_ONLY_KEEP="usr/bin/fbsetroot
24 usr/bin/fbsetbg
25 usr/bin/fluxbox
26 usr/bin/startfluxbox
27 usr/share/fluxbox/menu
28 usr/share/fluxbox/init
29 usr/share/fluxbox/keys
30 usr/share/fluxbox/styles/LemonSpace"
31 sminclude xorg mtools mcore-split
32
33 SRC_URI=(
34 sourceforge://${PNAME}/${SRCFILE}
35 mirror://${PNAME}/${SRCFILE}
36 )
37
38 UP2DATE="updatecmd_sourceforge ${PNAME}"
39
40 src_prepare()
41 {
42 munpack ${SRCFILE} || die
43 cd ${SRCDIR}
44
45 # enable antialias by default
46 echo "session.screen0.antialias: true" >> data/init.in || die
47
48 # all styles should use fbsetroot
49 for style in ${SRCDIR}/data/styles/*
50 do
51 [[ -f ${style} ]] || continue
52 sed -i 's,\([^f]\)bsetroot,\1fbsetroot,' ${style} || die ${style}
53 done
54 }
55
56 src_compile()
57 {
58 cd ${SRCDIR}
59
60 mconfigure \
61 --sysconfdir=/etc/X11/${PNAME} \
62 --disable-static \
63 --disable-debug \
64 --disable-nls \
65 --disable-xinerama \
66 --disable-kde \
67 --disable-gnome \
68 --disable-imlib2 \
69 --disable-xft \
70 --disable-xinerama \
71 --disable-xpm \
72 || die
73
74 mmake || die
75 }
76
77 mcore_generic_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
99 echo -e ${COLGREEN}" injecting custom fluxbox-configs"${COLDEFAULT}
100 mcinjectfile menu /usr/share/fluxbox || die
101 mcinjectfile init /usr/share/fluxbox || die
102 mcinjectfile keys /usr/share/fluxbox || die
103 }