Contents of /smage/branches/alx-0_6_0/core/fluxbox/fluxbox-1.3.1-r3.smage2
Parent Directory | Revision Log
Revision 2425 -
(show annotations)
(download)
Wed Jun 15 18:57:21 2011 UTC (13 years ago) by niro
File size: 2455 byte(s)
Wed Jun 15 18:57:21 2011 UTC (13 years ago) by niro
File size: 2455 byte(s)
-rebuild fluxbox with imlib2 support and Xft enabled, dropped kde/gnome support
1 | # $Id$ |
2 | |
3 | PNAME="fluxbox" |
4 | PVER="1.3.1" |
5 | PBUILD="r3" |
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 | >= media-libs/imlib2-1.4 |
16 | >= x11-libs/libXft-2.2" |
17 | |
18 | SDEPEND=">= sys-dev/automake-4 |
19 | >= sys-dev/autoconf-5" |
20 | |
21 | SRCFILE="${PNAME}-${PVER/_/}.tar.bz2" |
22 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER/_/}" |
23 | |
24 | REMOVE_DEPRECATED_MAGE_TARGETS=1 |
25 | ALX_ONLY_KEEP="usr/bin/fluxbox |
26 | usr/bin/startfluxbox |
27 | usr/bin/fbsetroot |
28 | usr/bin/fbsetbg |
29 | usr/share/fluxbox/styles/LemonSpace |
30 | usr/share/fluxbox/keys |
31 | usr/share/fluxbox/init |
32 | usr/share/fluxbox/apps |
33 | usr/share/fluxbox/overlay |
34 | usr/share/fluxbox/menu |
35 | usr/share/fluxbox/windowmenu" |
36 | sminclude mtools alx-split |
37 | |
38 | SRC_URI=( |
39 | sourceforge://${PNAME}/${SRCFILE} |
40 | mirror://${PNAME}/${SRCFILE} |
41 | ) |
42 | |
43 | UP2DATE="updatecmd_sourceforge ${PNAME}" |
44 | |
45 | src_prepare() |
46 | { |
47 | munpack ${SRCFILE} || die |
48 | cd ${SRCDIR} |
49 | |
50 | # enable antialias by default |
51 | echo "session.screen0.antialias: true" >> data/init.in || die |
52 | |
53 | # all styles should use fbsetroot |
54 | for style in ${SRCDIR}/data/styles/* |
55 | do |
56 | [[ -f ${style} ]] || continue |
57 | sed -i 's,\([^f]\)bsetroot,\1fbsetroot,' ${style} || die ${style} |
58 | done |
59 | |
60 | autoreconf --verbose --install --force || die |
61 | } |
62 | |
63 | src_compile() |
64 | { |
65 | cd ${SRCDIR} |
66 | |
67 | mconfigure \ |
68 | --sysconfdir=/etc/X11/${PNAME} \ |
69 | --disable-nls \ |
70 | --enable-imlib2 \ |
71 | --disable-xpm \ |
72 | --disable-kde \ |
73 | --disable-gnome \ |
74 | --enable-xft \ |
75 | --enable-xinerama \ |
76 | --disable-debug \ |
77 | || die |
78 | |
79 | mmake || die |
80 | } |
81 | |
82 | alx_generic_src_install() |
83 | { |
84 | cd ${SRCDIR} |
85 | |
86 | # needed directories |
87 | minstalldir /usr/share/fluxbox || die |
88 | minstalldir /usr/share/xsessions || die |
89 | |
90 | mmake DESTDIR=${BINDIR} install || die |
91 | |
92 | # create gnome xsession file |
93 | echo "[Desktop Entry] |
94 | Encoding=UTF-8 |
95 | Name=Fluxbox |
96 | Comment=This session logs you into Fluxbox |
97 | Exec=startfluxbox |
98 | TryExec=startfluxbox |
99 | Icon= |
100 | Type=Application" > ${BINDIR}/usr/share/xsessions/fluxbox.desktop || die |
101 | |
102 | minstalldocs AUTHORS COPYING ChangeLog NEWS README TODO || die |
103 | |
104 | echo -e ${COLGREEN}" injecting custom fluxbox-configs"${COLDEFAULT} |
105 | mcinjectfile menu /usr/share/fluxbox || die |
106 | mcinjectfile init /usr/share/fluxbox || die |
107 | mcinjectfile keys /usr/share/fluxbox || die |
108 | mcinjectfile apps /usr/share/fluxbox || die |
109 | |
110 | # set LemonSpace as default theme |
111 | sed -i 's:^\(session.styleFile\:\).*:\1\t/usr/share/fluxbox/styles/LemonSpace:' \ |
112 | ${BINDIR}/usr/share/fluxbox/init || die |
113 | } |