Contents of /smage/branches/alx-0_6_0/core/fluxbox/fluxbox-1.3.1-r1.smage2
Parent Directory | Revision Log
Revision 2129 -
(show annotations)
(download)
Mon May 16 12:45:23 2011 UTC (13 years ago) by niro
File size: 2405 byte(s)
Mon May 16 12:45:23 2011 UTC (13 years ago) by niro
File size: 2405 byte(s)
-keep fbsetbg too
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=">= virtual/x11 |
14 | >= media-libs/freetype-2" |
15 | |
16 | SDEPEND=">= sys-dev/automake-4 |
17 | >= sys-dev/autoconf-5" |
18 | |
19 | SRCFILE="${PNAME}-${PVER/_/}.tar.bz2" |
20 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER/_/}" |
21 | |
22 | REMOVE_DEPRECATED_MAGE_TARGETS=1 |
23 | ALX_ONLY_KEEP="usr/bin/fluxbox |
24 | usr/bin/startfluxbox |
25 | usr/bin/fbsetroot |
26 | usr/bin/fbsetbg |
27 | usr/share/fluxbox/styles/LemonSpace |
28 | usr/share/fluxbox/keys |
29 | usr/share/fluxbox/init |
30 | usr/share/fluxbox/apps |
31 | usr/share/fluxbox/overlay |
32 | usr/share/fluxbox/menu |
33 | usr/share/fluxbox/windowmenu" |
34 | sminclude mtools alx-split |
35 | |
36 | SRC_URI=( |
37 | sourceforge://${PNAME}/${SRCFILE} |
38 | mirror://${PNAME}/${SRCFILE} |
39 | ) |
40 | |
41 | UP2DATE="updatecmd_sourceforge ${PNAME}" |
42 | |
43 | src_prepare() |
44 | { |
45 | munpack ${SRCFILE} || die |
46 | cd ${SRCDIR} |
47 | |
48 | # enable antialias by default |
49 | echo "session.screen0.antialias: true" >> data/init.in || die |
50 | |
51 | # all styles should use fbsetroot |
52 | for style in ${SRCDIR}/data/styles/* |
53 | do |
54 | [[ -f ${style} ]] || continue |
55 | sed -i 's,\([^f]\)bsetroot,\1fbsetroot,' ${style} || die ${style} |
56 | done |
57 | |
58 | autoreconf --verbose --install --force || die |
59 | } |
60 | |
61 | src_compile() |
62 | { |
63 | cd ${SRCDIR} |
64 | |
65 | mconfigure \ |
66 | --sysconfdir=/etc/X11/${PNAME} \ |
67 | --disable-nls \ |
68 | --disable-imlib2 \ |
69 | --disable-xpm \ |
70 | --enable-kde \ |
71 | --enable-gnome \ |
72 | --disable-xft \ |
73 | --enable-xinerama \ |
74 | --disable-debug \ |
75 | || die |
76 | |
77 | mmake || die |
78 | } |
79 | |
80 | alx_generic_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 | |
102 | echo -e ${COLGREEN}" injecting custom fluxbox-configs"${COLDEFAULT} |
103 | mcinjectfile menu /usr/share/fluxbox || die |
104 | mcinjectfile init /usr/share/fluxbox || die |
105 | mcinjectfile keys /usr/share/fluxbox || die |
106 | mcinjectfile apps /usr/share/fluxbox || die |
107 | |
108 | # set LemonSpace as default theme |
109 | sed -i 's:^\(session.styleFile\:\).*:\1\t/usr/share/fluxbox/styles/LemonSpace:' \ |
110 | ${BINDIR}/usr/share/fluxbox/init || die |
111 | } |