Contents of /smage/branches/alx-0_6_0/core/fluxbox/fluxbox-1.3.1-r1.smage2
Parent Directory | Revision Log
Revision 1847 -
(show annotations)
(download)
Thu Apr 21 15:16:24 2011 UTC (13 years, 5 months ago) by niro
File size: 2339 byte(s)
Thu Apr 21 15:16:24 2011 UTC (13 years, 5 months ago) by niro
File size: 2339 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=">= 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 |
24 | usr/share/fluxbox/styles/LemonSpace |
25 | usr/share/fluxbox/keys |
26 | usr/share/fluxbox/init |
27 | usr/share/fluxbox/apps |
28 | usr/share/fluxbox/overlay |
29 | usr/share/fluxbox/menu |
30 | usr/share/fluxbox/windowmenu" |
31 | sminclude mtools alx-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 | autoreconf --verbose --install --force || die |
56 | } |
57 | |
58 | src_compile() |
59 | { |
60 | cd ${SRCDIR} |
61 | |
62 | mconfigure \ |
63 | --sysconfdir=/etc/X11/${PNAME} \ |
64 | --disable-nls \ |
65 | --disable-imlib2 \ |
66 | --disable-xpm \ |
67 | --enable-kde \ |
68 | --enable-gnome \ |
69 | --disable-xft \ |
70 | --enable-xinerama \ |
71 | --disable-debug \ |
72 | || die |
73 | |
74 | mmake || die |
75 | } |
76 | |
77 | alx_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 | mcinjectfile apps /usr/share/fluxbox || die |
104 | |
105 | # set LemonSpace as default theme |
106 | sed -i 's:^\(session.styleFile\:\).*:\1\t/usr/share/fluxbox/styles/LemonSpace:' \ |
107 | ${BINDIR}/usr/share/fluxbox/init || die |
108 | } |