Annotation of /smage/trunk/core/fluxbox/fluxbox-1.1.1_20110127-r1.smage2
Parent Directory | Revision Log
Revision 1221 -
(hide annotations)
(download)
Sat Jan 29 12:31:42 2011 UTC (13 years, 4 months ago) by niro
File size: 2733 byte(s)
Sat Jan 29 12:31:42 2011 UTC (13 years, 4 months ago) by niro
File size: 2733 byte(s)
-fixed missing dependencies
1 | niro | 1154 | # $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 | niro | 1218 | # eterm is needed to provide Esetroot for changing wallpapers |
14 | niro | 1221 | # xmessage is runtime needed by fbsetbg |
15 | niro | 1154 | 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 | niro | 1218 | >= media-libs/imlib2-1.4 |
21 | niro | 1221 | >= x11-apps/xmessage-1.0.3 |
22 | niro | 1218 | >= x11-terms/eterm-0.9.5" |
23 | niro | 1154 | |
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 | niro | 1161 | usr/share/fluxbox/styles/carp |
34 | usr/share/fluxbox/styles/zimek_green | ||
35 | niro | 1154 | 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 | niro | 1156 | --disable-nls \ |
75 | niro | 1154 | --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 | niro | 1161 | |
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 | niro | 1200 | mcinjectfile apps /usr/share/fluxbox || die |
114 | mcinjectfile mcore2.png /usr/share/fluxbox/wallpaper.png || die | ||
115 | niro | 1161 | |
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 | niro | 1154 | } |