Annotation of /branches/magellan-next/core/fluxbox/fluxbox-1.3.1-r1.smage2
Parent Directory
|
Revision Log
Revision 7984 -
(hide annotations)
(download)
Mon Jun 27 20:52:01 2011 UTC (13 years ago) by niro
File size: 1870 byte(s)
Mon Jun 27 20:52:01 2011 UTC (13 years ago) by niro
File size: 1870 byte(s)
-added gcc-4.6 patch
1 | niro | 7983 | # $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=">= 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 | >= x11-apps/xmessage-1.03" | ||
20 | |||
21 | SDEPEND=">= sys-dev/automake-4 | ||
22 | >= sys-dev/autoconf-5" | ||
23 | |||
24 | SRCFILE="${PNAME}-${PVER/_/}.tar.bz2" | ||
25 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER/_/}" | ||
26 | |||
27 | sminclude xorg mtools | ||
28 | |||
29 | SRC_URI=( | ||
30 | sourceforge://${PNAME}/${SRCFILE} | ||
31 | mirror://${PNAME}/${SRCFILE} | ||
32 | niro | 7984 | mirror://${PNAME}/${PNAME}-${PVER}-gcc46.patch |
33 | niro | 7983 | ) |
34 | |||
35 | UP2DATE="updatecmd_sourceforge ${PNAME}" | ||
36 | |||
37 | src_prepare() | ||
38 | { | ||
39 | munpack ${SRCFILE} || die | ||
40 | cd ${SRCDIR} | ||
41 | |||
42 | niro | 7984 | # fix compilation against gcc-4.6 |
43 | mpatch ${PNAME}-${PVER}-gcc46.patch || die | ||
44 | |||
45 | niro | 7983 | # 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 | |||
56 | src_compile() | ||
57 | { | ||
58 | cd ${SRCDIR} | ||
59 | |||
60 | mconfigure \ | ||
61 | --sysconfdir=/etc/X11/${PNAME} \ | ||
62 | --enable-nls \ | ||
63 | --enable-imlib2 \ | ||
64 | --enable-xpm \ | ||
65 | --enable-kde \ | ||
66 | --enable-gnome \ | ||
67 | --enable-xft \ | ||
68 | --enable-xinerama \ | ||
69 | --disable-debug \ | ||
70 | || die | ||
71 | |||
72 | mmake || die | ||
73 | } | ||
74 | |||
75 | src_install() | ||
76 | { | ||
77 | cd ${SRCDIR} | ||
78 | |||
79 | # needed directories | ||
80 | minstalldir /usr/share/fluxbox || die | ||
81 | minstalldir /usr/share/xsessions || die | ||
82 | |||
83 | mmake DESTDIR=${BINDIR} install || die | ||
84 | |||
85 | # create gnome xsession file | ||
86 | echo "[Desktop Entry] | ||
87 | Encoding=UTF-8 | ||
88 | Name=Fluxbox | ||
89 | Comment=This session logs you into Fluxbox | ||
90 | Exec=startfluxbox | ||
91 | TryExec=startfluxbox | ||
92 | Icon= | ||
93 | Type=Application" > ${BINDIR}/usr/share/xsessions/fluxbox.desktop || die | ||
94 | |||
95 | minstalldocs AUTHORS COPYING ChangeLog NEWS README TODO || die | ||
96 | } |