Contents of /smage/trunk/core/fluxbox/fluxbox-1.3.5-r3.smage2
Parent Directory | Revision Log
Revision 5549 -
(show annotations)
(download)
Fri Mar 28 08:33:49 2014 UTC (10 years, 5 months ago) by niro
File size: 3416 byte(s)
Fri Mar 28 08:33:49 2014 UTC (10 years, 5 months ago) by niro
File size: 3416 byte(s)
-rebuild to include changes on app and menu files
1 | # $Id$ |
2 | |
3 | PNAME="fluxbox" |
4 | PVER="1.3.5" |
5 | PBUILD="r3" |
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 | PROVIDE="virtual/windowmanager" |
26 | |
27 | SRCFILE="${PNAME}-${PVER/_/}.tar.bz2" |
28 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER/_/}" |
29 | |
30 | ALX_PKG_KEEP="usr/bin/fluxbox |
31 | usr/bin/fluxbox-remote |
32 | usr/bin/startfluxbox |
33 | usr/bin/fbsetroot |
34 | usr/bin/fbsetbg |
35 | usr/share/fluxbox/styles/carp |
36 | usr/share/fluxbox/keys |
37 | usr/share/fluxbox/init |
38 | usr/share/fluxbox/apps |
39 | usr/share/fluxbox/overlay |
40 | usr/share/fluxbox/menu |
41 | usr/share/fluxbox/windowmenu |
42 | usr/share/fluxbox/wallpaper.png" |
43 | sminclude xorg mtools alx-split |
44 | |
45 | SRC_URI=( |
46 | sourceforge://${PNAME}/${SRCFILE} |
47 | mirror://${PNAME}/${SRCFILE} |
48 | mirror://${PNAME}/${PNAME}-1.3.1-alx.patch |
49 | mirror://${PNAME}/${PNAME}-1.3.1-no-xmodmap.patch |
50 | ) |
51 | |
52 | UP2DATE="updatecmd_sourceforge ${PNAME}" |
53 | |
54 | src_prepare() |
55 | { |
56 | munpack ${SRCFILE} || die |
57 | cd ${SRCDIR} |
58 | |
59 | # fix fbsetbg, that it runs with alx, which has no ldd installed |
60 | mpatch ${PNAME}-1.3.1-alx.patch || die |
61 | |
62 | # no xmodmap is provided by alx |
63 | mpatch ${PNAME}-1.3.1-no-xmodmap.patch || die |
64 | |
65 | # enable antialias by default |
66 | echo "session.screen0.antialias: true" >> data/init.in || die |
67 | |
68 | # all styles should use fbsetroot |
69 | for style in ${SRCDIR}/data/styles/* |
70 | do |
71 | [[ -f ${style} ]] || continue |
72 | sed -i 's,\([^f]\)bsetroot,\1fbsetroot,' ${style} || die ${style} |
73 | done |
74 | } |
75 | |
76 | src_compile() |
77 | { |
78 | cd ${SRCDIR} |
79 | |
80 | mconfigure \ |
81 | --sysconfdir=/etc/X11/${PNAME} \ |
82 | --disable-nls \ |
83 | --enable-imlib2 \ |
84 | --disable-xpm \ |
85 | --disable-kde \ |
86 | --disable-gnome \ |
87 | --enable-xft \ |
88 | --enable-xinerama \ |
89 | --disable-fribidi \ |
90 | --disable-debug \ |
91 | || die |
92 | |
93 | mmake || die |
94 | } |
95 | |
96 | alx_generic_src_install() |
97 | { |
98 | cd ${SRCDIR} |
99 | |
100 | # needed directories |
101 | minstalldir /usr/share/fluxbox || die |
102 | minstalldir /usr/share/xsessions || die |
103 | |
104 | mmake DESTDIR=${BINDIR} install || die |
105 | |
106 | # create gnome xsession file |
107 | echo "[Desktop Entry] |
108 | Encoding=UTF-8 |
109 | Name=Fluxbox |
110 | Comment=This session logs you into Fluxbox |
111 | Exec=startfluxbox |
112 | TryExec=startfluxbox |
113 | Icon= |
114 | Type=Application" > ${BINDIR}/usr/share/xsessions/fluxbox.desktop || die |
115 | |
116 | minstalldocs AUTHORS COPYING ChangeLog NEWS README TODO || die |
117 | |
118 | echo -e ${COLGREEN}" injecting custom fluxbox-configs"${COLDEFAULT} |
119 | mcinjectfile menu /usr/share/fluxbox || die |
120 | mcinjectfile init /usr/share/fluxbox || die |
121 | mcinjectfile keys /usr/share/fluxbox || die |
122 | mcinjectfile apps /usr/share/fluxbox || die |
123 | # custom carp theme |
124 | mcinjectfile carp.cfg /usr/share/fluxbox/styles/carp/theme.cfg || die |
125 | # custom wallpaper |
126 | mcinjectfile alx-thinclient-wallpaper.png /usr/share/fluxbox/wallpaper.png |
127 | |
128 | # enable the wallpaper |
129 | MCONFIG="/usr/share/fluxbox/styles/carp/theme.cfg" |
130 | maddconfig 'background.pixmap: /usr/share/fluxbox/wallpaper.png' || die |
131 | |
132 | # set carp as default theme |
133 | sed -i 's:^\(session.styleFile\:\).*:\1\t/usr/share/fluxbox/styles/carp:' \ |
134 | ${BINDIR}/usr/share/fluxbox/init || die |
135 | } |
136 | |
137 | postinstall_fluxbox() |
138 | { |
139 | # remove startup script with possibly enabled xmodmap from home directories |
140 | if [[ -f ${MROOT}/home ]] |
141 | then |
142 | find ${MROOT}/home -type f -name startup -exec rm '{}' ';' |
143 | fi |
144 | } |