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