Contents of /smage/trunk/extras/fluxbox/fluxbox-1.1.1_20110127-r1.smage2
Parent Directory | Revision Log
Revision 1153 -
(show annotations)
(download)
Thu Jan 27 21:54:38 2011 UTC (13 years, 3 months ago) by niro
File size: 1772 byte(s)
Thu Jan 27 21:54:38 2011 UTC (13 years, 3 months ago) by niro
File size: 1772 byte(s)
auto added: ver bump to 1.1.1_20110127-r1
1 | # $Id$ |
2 | |
3 | PNAME="fluxbox" |
4 | PVER="1.1.1_20110127" |
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 | |
20 | SDEPEND=">= sys-dev/automake-4 |
21 | >= sys-dev/autoconf-5" |
22 | |
23 | SRCFILE="${PNAME}-${PVER/_/}.tar.bz2" |
24 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER/_/}" |
25 | |
26 | sminclude xorg mtools |
27 | |
28 | SRC_URI=( |
29 | sourceforge://${PNAME}/${SRCFILE} |
30 | mirror://${PNAME}/${SRCFILE} |
31 | ) |
32 | |
33 | UP2DATE="updatecmd_sourceforge ${PNAME}" |
34 | |
35 | src_prepare() |
36 | { |
37 | munpack ${SRCFILE} || die |
38 | cd ${SRCDIR} |
39 | |
40 | # enable antialias by default |
41 | echo "session.screen0.antialias: true" >> data/init.in || die |
42 | |
43 | # all styles should use fbsetroot |
44 | for style in ${SRCDIR}/data/styles/* |
45 | do |
46 | [[ -f ${style} ]] || continue |
47 | sed -i 's,\([^f]\)bsetroot,\1fbsetroot,' ${style} || die ${style} |
48 | done |
49 | |
50 | autoreconf --verbose --install --force || die |
51 | } |
52 | |
53 | src_compile() |
54 | { |
55 | cd ${SRCDIR} |
56 | |
57 | mconfigure \ |
58 | --sysconfdir=/etc/X11/${PNAME} \ |
59 | --enable-nls \ |
60 | --enable-imlib2 \ |
61 | --enable-xpm \ |
62 | --enable-kde \ |
63 | --enable-gnome \ |
64 | --enable-xft \ |
65 | --enable-xinerama \ |
66 | --disable-debug \ |
67 | || die |
68 | |
69 | mmake || die |
70 | } |
71 | |
72 | src_install() |
73 | { |
74 | cd ${SRCDIR} |
75 | |
76 | # needed directories |
77 | minstalldir /usr/share/fluxbox || die |
78 | minstalldir /usr/share/xsessions || die |
79 | |
80 | mmake DESTDIR=${BINDIR} install || die |
81 | |
82 | # create gnome xsession file |
83 | echo "[Desktop Entry] |
84 | Encoding=UTF-8 |
85 | Name=Fluxbox |
86 | Comment=This session logs you into Fluxbox |
87 | Exec=startfluxbox |
88 | TryExec=startfluxbox |
89 | Icon= |
90 | Type=Application" > ${BINDIR}/usr/share/xsessions/fluxbox.desktop || die |
91 | |
92 | minstalldocs AUTHORS COPYING ChangeLog NEWS README TODO || die |
93 | } |