Contents of /smage/trunk/core/fluxbox/fluxbox-1.3.2-r1.smage2
Parent Directory | Revision Log
Revision 3963 -
(show annotations)
(download)
Wed Jul 25 14:35:55 2012 UTC (11 years, 10 months ago) by niro
File size: 3359 byte(s)
Wed Jul 25 14:35:55 2012 UTC (11 years, 10 months ago) by niro
File size: 3359 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 | PCAT="x11-wm" |
8 | |
9 | DESCRIPTION="fluxbox is yet another windowmanager for X based on blackbox." |
10 | HOMEPAGE="http://www.fluxbox.org/" |
11 | |
12 | DEPEND=">= x11-libs/libXpm-3.5 |
13 | >= x11-libs/libXrandr-1.3 |
14 | >= x11-libs/libXinerama-1.1 |
15 | >= media-libs/freetype-2 |
16 | >= media-libs/imlib2-1.4 |
17 | >= x11-apps/xmessage-1.03 |
18 | >= x11-libs/libXft-2.2 |
19 | >= sys-libs/libstdc++-4.7 |
20 | >= x11-terms/eterm-0.9.6" |
21 | |
22 | SDEPEND=">= sys-dev/automake-4 |
23 | >= sys-dev/autoconf-5" |
24 | |
25 | SRCFILE="${PNAME}-${PVER/_/}.tar.bz2" |
26 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER/_/}" |
27 | |
28 | ALX_PKG_KEEP="usr/bin/fluxbox |
29 | usr/bin/startfluxbox |
30 | usr/bin/fbsetroot |
31 | usr/bin/fbsetbg |
32 | usr/share/fluxbox/styles/carp |
33 | usr/share/fluxbox/keys |
34 | usr/share/fluxbox/init |
35 | usr/share/fluxbox/apps |
36 | usr/share/fluxbox/overlay |
37 | usr/share/fluxbox/menu |
38 | usr/share/fluxbox/windowmenu |
39 | usr/share/fluxbox/wallpaper.png" |
40 | sminclude xorg mtools alx-split |
41 | |
42 | SRC_URI=( |
43 | sourceforge://${PNAME}/${SRCFILE} |
44 | mirror://${PNAME}/${SRCFILE} |
45 | mirror://${PNAME}/${PNAME}-1.3.1-alx.patch |
46 | mirror://${PNAME}/${PNAME}-1.3.1-no-xmodmap.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}-1.3.1-alx.patch || die |
58 | |
59 | # no xmodmap is provided by alx |
60 | mpatch ${PNAME}-1.3.1-no-xmodmap.patch || die |
61 | |
62 | # enable antialias by default |
63 | echo "session.screen0.antialias: true" >> data/init.in || die |
64 | |
65 | # all styles should use fbsetroot |
66 | for style in ${SRCDIR}/data/styles/* |
67 | do |
68 | [[ -f ${style} ]] || continue |
69 | sed -i 's,\([^f]\)bsetroot,\1fbsetroot,' ${style} || die ${style} |
70 | done |
71 | } |
72 | |
73 | src_compile() |
74 | { |
75 | cd ${SRCDIR} |
76 | |
77 | mconfigure \ |
78 | --sysconfdir=/etc/X11/${PNAME} \ |
79 | --disable-nls \ |
80 | --enable-imlib2 \ |
81 | --disable-xpm \ |
82 | --disable-kde \ |
83 | --disable-gnome \ |
84 | --enable-xft \ |
85 | --enable-xinerama \ |
86 | --disable-fribidi \ |
87 | --disable-debug \ |
88 | || die |
89 | |
90 | mmake || die |
91 | } |
92 | |
93 | alx_generic_src_install() |
94 | { |
95 | cd ${SRCDIR} |
96 | |
97 | # needed directories |
98 | minstalldir /usr/share/fluxbox || die |
99 | minstalldir /usr/share/xsessions || die |
100 | |
101 | mmake DESTDIR=${BINDIR} install || die |
102 | |
103 | # create gnome xsession file |
104 | echo "[Desktop Entry] |
105 | Encoding=UTF-8 |
106 | Name=Fluxbox |
107 | Comment=This session logs you into Fluxbox |
108 | Exec=startfluxbox |
109 | TryExec=startfluxbox |
110 | Icon= |
111 | Type=Application" > ${BINDIR}/usr/share/xsessions/fluxbox.desktop || die |
112 | |
113 | minstalldocs AUTHORS COPYING ChangeLog NEWS README TODO || die |
114 | |
115 | echo -e ${COLGREEN}" injecting custom fluxbox-configs"${COLDEFAULT} |
116 | mcinjectfile menu /usr/share/fluxbox || die |
117 | mcinjectfile init /usr/share/fluxbox || die |
118 | mcinjectfile keys /usr/share/fluxbox || die |
119 | mcinjectfile apps /usr/share/fluxbox || die |
120 | # custom carp theme |
121 | mcinjectfile carp.cfg /usr/share/fluxbox/styles/carp/theme.cfg || die |
122 | # custom wallpaper |
123 | mcinjectfile alx-thinclient-wallpaper.png /usr/share/fluxbox/wallpaper.png |
124 | |
125 | # enable the wallpaper |
126 | MCONFIG="/usr/share/fluxbox/styles/carp/theme.cfg" |
127 | maddconfig 'background.pixmap: /usr/share/fluxbox/wallpaper.png' || die |
128 | |
129 | # set carp as default theme |
130 | sed -i 's:^\(session.styleFile\:\).*:\1\t/usr/share/fluxbox/styles/carp:' \ |
131 | ${BINDIR}/usr/share/fluxbox/init || die |
132 | } |
133 | |
134 | postinstall_fluxbox() |
135 | { |
136 | # remove startup script with possibly enabled xmodmap from home directories |
137 | if [[ -f ${MROOT}/home ]] |
138 | then |
139 | find ${MROOT}/home -type f -name startup -exec rm '{}' ';' |
140 | fi |
141 | } |