Contents of /smage/trunk/core/fluxbox/fluxbox-1.3.2-r1.smage2
Parent Directory | Revision Log
Revision 1993 -
(show annotations)
(download)
Wed Nov 9 18:43:59 2011 UTC (12 years, 5 months ago) by niro
File size: 2895 byte(s)
Wed Nov 9 18:43:59 2011 UTC (12 years, 5 months ago) by niro
File size: 2895 byte(s)
auto added: ver bump to 1.3.2-r1
1 | # $Id$ |
2 | |
3 | PNAME="fluxbox" |
4 | PVER="1.3.2" |
5 | PBUILD="r1" |
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 | # eterm is needed to provide Esetroot for changing wallpapers |
13 | # xmessage is runtime needed by fbsetbg |
14 | DEPEND=">= x11-libs/libXpm-1 |
15 | >= x11-libs/libXrandr-1 |
16 | >= x11-libs/libXinerama-1 |
17 | >= x11-libs/libXft-1 |
18 | >= media-libs/freetype-2 |
19 | >= media-libs/imlib2-1.4 |
20 | >= x11-apps/xmessage-1.0.3 |
21 | >= x11-terms/eterm-0.9.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 | # fixme: keep only one style, not all |
30 | # and clean up bin too! |
31 | MCORE_ONLY_KEEP="usr/bin |
32 | usr/share/fluxbox/styles/carp |
33 | usr/share/fluxbox/styles/zimek_green |
34 | usr/share/fluxbox/keys |
35 | usr/share/fluxbox/init |
36 | usr/share/fluxbox/apps |
37 | usr/share/fluxbox/overlay |
38 | usr/share/fluxbox/menu |
39 | usr/share/fluxbox/windowmenu |
40 | usr/share/fluxbox/wallpaper.png" |
41 | sminclude xorg mtools mcore-split |
42 | |
43 | SRC_URI=( |
44 | sourceforge://${PNAME}/${SRCFILE} |
45 | mirror://${PNAME}/${SRCFILE} |
46 | mirror://${PNAME}/${PNAME}-${PVER}-alx.patch |
47 | ) |
48 | |
49 | UP2DATE="updatecmd_sourceforge ${PNAME}" |
50 | |
51 | src_prepare() |
52 | { |
53 | munpack ${SRCFILE} || die |
54 | cd ${SRCDIR} |
55 | |
56 | # fix fbsetbg, that it runs with alx, which has no ldd installed |
57 | mpatch ${PNAME}-${PVER}-alx.patch || die |
58 | |
59 | # enable antialias by default |
60 | echo "session.screen0.antialias: true" >> data/init.in || die |
61 | |
62 | # all styles should use fbsetroot |
63 | for style in ${SRCDIR}/data/styles/* |
64 | do |
65 | [[ -f ${style} ]] || continue |
66 | sed -i 's,\([^f]\)bsetroot,\1fbsetroot,' ${style} || die ${style} |
67 | done |
68 | |
69 | autoreconf --verbose --install --force || die |
70 | } |
71 | |
72 | src_compile() |
73 | { |
74 | cd ${SRCDIR} |
75 | |
76 | mconfigure \ |
77 | --sysconfdir=/etc/X11/${PNAME} \ |
78 | --disable-nls \ |
79 | --enable-imlib2 \ |
80 | --enable-xpm \ |
81 | --enable-kde \ |
82 | --enable-gnome \ |
83 | --enable-xft \ |
84 | --enable-xinerama \ |
85 | --disable-debug \ |
86 | || die |
87 | |
88 | mmake || die |
89 | } |
90 | |
91 | mcore_generic_src_install() |
92 | { |
93 | cd ${SRCDIR} |
94 | |
95 | # needed directories |
96 | minstalldir /usr/share/fluxbox || die |
97 | minstalldir /usr/share/xsessions || die |
98 | |
99 | mmake DESTDIR=${BINDIR} install || die |
100 | |
101 | # create gnome xsession file |
102 | echo "[Desktop Entry] |
103 | Encoding=UTF-8 |
104 | Name=Fluxbox |
105 | Comment=This session logs you into Fluxbox |
106 | Exec=startfluxbox |
107 | TryExec=startfluxbox |
108 | Icon= |
109 | Type=Application" > ${BINDIR}/usr/share/xsessions/fluxbox.desktop || die |
110 | |
111 | minstalldocs AUTHORS COPYING ChangeLog NEWS README TODO || die |
112 | |
113 | echo -e ${COLGREEN}" injecting custom fluxbox-configs"${COLDEFAULT} |
114 | mcinjectfile menu /usr/share/fluxbox || die |
115 | mcinjectfile init /usr/share/fluxbox || die |
116 | mcinjectfile keys /usr/share/fluxbox || die |
117 | mcinjectfile apps /usr/share/fluxbox || die |
118 | mcinjectfile mcore2.png /usr/share/fluxbox/wallpaper.png || die |
119 | |
120 | # set carp as default theme |
121 | sed -i 's:^\(session.styleFile\:\).*:\1\t/usr/share/fluxbox/styles/carp:' \ |
122 | ${BINDIR}/usr/share/fluxbox/init || die |
123 | } |