Contents of /branches/magellan-next/core/fluxbox/fluxbox-1.3.2-r3.smage2
Parent Directory | Revision Log
Revision 9853 -
(show annotations)
(download)
Fri Jan 13 15:06:11 2012 UTC (12 years, 8 months ago) by niro
File size: 1972 byte(s)
Fri Jan 13 15:06:11 2012 UTC (12 years, 8 months ago) by niro
File size: 1972 byte(s)
-added missing libstdc++
1 | # $Id$ |
2 | |
3 | PNAME="fluxbox" |
4 | PVER="1.3.2" |
5 | PBUILD="r3" |
6 | |
7 | PCATEGORIE="x11-wm" |
8 | |
9 | DESCRIPTION="fluxbox is yet another windowmanager for X based on blackbox." |
10 | HOMEPAGE="http://www.fluxbox.org/" |
11 | |
12 | DEPEND=">= x11-libs/libXpm-1 |
13 | >= x11-libs/libXrandr-1 |
14 | >= x11-libs/libXinerama-1 |
15 | >= x11-libs/libXft-1 |
16 | >= dev-libs/fribidi-0.19 |
17 | >= media-libs/freetype-2 |
18 | >= media-libs/imlib2-1.4 |
19 | >= x11-apps/xmessage-1.03 |
20 | >= sys-apps/consolekit-0.4 |
21 | >= sys-libs/libstdc++-4.6" |
22 | |
23 | SDEPEND=">= sys-dev/automake-4 |
24 | >= sys-dev/autoconf-5" |
25 | |
26 | SRCFILE="${PNAME}-${PVER/_/}.tar.bz2" |
27 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER/_/}" |
28 | |
29 | sminclude xorg mtools |
30 | |
31 | SRC_URI=( |
32 | sourceforge://${PNAME}/${SRCFILE} |
33 | mirror://${PNAME}/${SRCFILE} |
34 | mirror://${PNAME}/${PNAME}-1.3.2-consolekit-2.patch |
35 | ) |
36 | |
37 | UP2DATE="updatecmd_sourceforge ${PNAME}" |
38 | |
39 | src_prepare() |
40 | { |
41 | munpack ${SRCFILE} || die |
42 | cd ${SRCDIR} |
43 | |
44 | # enable a consolekit session on startup |
45 | mpatch ${PNAME}-1.3.2-consolekit-2.patch || die |
46 | |
47 | # enable antialias by default |
48 | echo "session.screen0.antialias: true" >> data/init.in || die |
49 | |
50 | # all styles should use fbsetroot |
51 | for style in ${SRCDIR}/data/styles/* |
52 | do |
53 | [[ -f ${style} ]] || continue |
54 | sed -i 's,\([^f]\)bsetroot,\1fbsetroot,' ${style} || die ${style} |
55 | done |
56 | } |
57 | |
58 | src_compile() |
59 | { |
60 | cd ${SRCDIR} |
61 | |
62 | mconfigure \ |
63 | --sysconfdir=/etc/X11/${PNAME} \ |
64 | --enable-nls \ |
65 | --enable-imlib2 \ |
66 | --enable-xpm \ |
67 | --enable-kde \ |
68 | --enable-gnome \ |
69 | --enable-xft \ |
70 | --enable-xinerama \ |
71 | --enable-fribidi \ |
72 | --disable-debug \ |
73 | || die |
74 | |
75 | mmake || die |
76 | } |
77 | |
78 | src_install() |
79 | { |
80 | cd ${SRCDIR} |
81 | |
82 | # needed directories |
83 | minstalldir /usr/share/fluxbox || die |
84 | minstalldir /usr/share/xsessions || die |
85 | |
86 | mmake DESTDIR=${BINDIR} install || die |
87 | |
88 | # create gnome xsession file |
89 | echo "[Desktop Entry] |
90 | Encoding=UTF-8 |
91 | Name=Fluxbox |
92 | Comment=This session logs you into Fluxbox |
93 | Exec=startfluxbox |
94 | TryExec=startfluxbox |
95 | Icon= |
96 | Type=Application" > ${BINDIR}/usr/share/xsessions/fluxbox.desktop || die |
97 | |
98 | minstalldocs AUTHORS COPYING ChangeLog NEWS README TODO || die |
99 | } |