Magellan Linux

Contents of /smage/trunk/core/fluxbox/fluxbox-1.3.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1370 - (show annotations) (download)
Tue Mar 1 18:06:06 2011 UTC (13 years, 2 months ago) by niro
File size: 2757 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 # eterm is needed to provide Esetroot for changing wallpapers
14 # xmessage is runtime needed by fbsetbg
15 DEPEND=">= x11-libs/libXpm-1
16 >= x11-libs/libXrandr-1
17 >= x11-libs/libXinerama-1
18 >= x11-libs/libXft-1
19 >= media-libs/freetype-2
20 >= media-libs/imlib2-1.4
21 >= x11-apps/xmessage-1.0.3
22 >= x11-terms/eterm-0.9.5"
23
24 SDEPEND=">= sys-dev/automake-4
25 >= sys-dev/autoconf-5"
26
27 SRCFILE="${PNAME}-${PVER/_/}.tar.bz2"
28 SRCDIR="${BUILDDIR}/${PNAME}-${PVER/_/}"
29
30 # fixme: keep only one style, not all
31 # and clean up bin too!
32 MCORE_ONLY_KEEP="usr/bin
33 usr/share/fluxbox/styles/carp
34 usr/share/fluxbox/styles/zimek_green
35 usr/share/fluxbox/keys
36 usr/share/fluxbox/init
37 usr/share/fluxbox/apps
38 usr/share/fluxbox/overlay
39 usr/share/fluxbox/menu
40 usr/share/fluxbox/windowmenu
41 usr/share/fluxbox/wallpaper.png"
42 sminclude xorg mtools mcore-split
43
44 SRC_URI=(
45 sourceforge://${PNAME}/${SRCFILE}
46 mirror://${PNAME}/${SRCFILE}
47 )
48
49 UP2DATE="updatecmd_sourceforge ${PNAME}"
50
51 src_prepare()
52 {
53 munpack ${SRCFILE} || die
54 cd ${SRCDIR}
55
56 # enable antialias by default
57 echo "session.screen0.antialias: true" >> data/init.in || die
58
59 # all styles should use fbsetroot
60 for style in ${SRCDIR}/data/styles/*
61 do
62 [[ -f ${style} ]] || continue
63 sed -i 's,\([^f]\)bsetroot,\1fbsetroot,' ${style} || die ${style}
64 done
65
66 autoreconf --verbose --install --force || die
67 }
68
69 src_compile()
70 {
71 cd ${SRCDIR}
72
73 mconfigure \
74 --sysconfdir=/etc/X11/${PNAME} \
75 --disable-nls \
76 --enable-imlib2 \
77 --enable-xpm \
78 --enable-kde \
79 --enable-gnome \
80 --enable-xft \
81 --enable-xinerama \
82 --disable-debug \
83 || die
84
85 mmake || die
86 }
87
88 mcore_generic_src_install()
89 {
90 cd ${SRCDIR}
91
92 # needed directories
93 minstalldir /usr/share/fluxbox || die
94 minstalldir /usr/share/xsessions || die
95
96 mmake DESTDIR=${BINDIR} install || die
97
98 # create gnome xsession file
99 echo "[Desktop Entry]
100 Encoding=UTF-8
101 Name=Fluxbox
102 Comment=This session logs you into Fluxbox
103 Exec=startfluxbox
104 TryExec=startfluxbox
105 Icon=
106 Type=Application" > ${BINDIR}/usr/share/xsessions/fluxbox.desktop || die
107
108 minstalldocs AUTHORS COPYING ChangeLog NEWS README TODO || die
109
110 echo -e ${COLGREEN}" injecting custom fluxbox-configs"${COLDEFAULT}
111 mcinjectfile menu /usr/share/fluxbox || die
112 mcinjectfile init /usr/share/fluxbox || die
113 mcinjectfile keys /usr/share/fluxbox || die
114 mcinjectfile apps /usr/share/fluxbox || die
115 mcinjectfile mcore2.png /usr/share/fluxbox/wallpaper.png || die
116
117 # set carp as default theme
118 sed -i 's:^\(session.styleFile\:\).*:\1\t/usr/share/fluxbox/styles/carp:' \
119 ${BINDIR}/usr/share/fluxbox/init || die
120 }