Magellan Linux

Contents of /smage/trunk/core/fluxbox/fluxbox-1.1.1_20110127-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1218 - (show annotations) (download)
Sat Jan 29 12:28:21 2011 UTC (13 years, 3 months ago) by niro
File size: 2665 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 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-terms/eterm-0.9.5"
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 # fixme: keep only one style, not all
29 # and clean up bin too!
30 MCORE_ONLY_KEEP="usr/bin
31 usr/share/fluxbox/styles/carp
32 usr/share/fluxbox/styles/zimek_green
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 sminclude xorg mtools mcore-split
40
41 SRC_URI=(
42 sourceforge://${PNAME}/${SRCFILE}
43 mirror://${PNAME}/${SRCFILE}
44 )
45
46 UP2DATE="updatecmd_sourceforge ${PNAME}"
47
48 src_prepare()
49 {
50 munpack ${SRCFILE} || die
51 cd ${SRCDIR}
52
53 # enable antialias by default
54 echo "session.screen0.antialias: true" >> data/init.in || die
55
56 # all styles should use fbsetroot
57 for style in ${SRCDIR}/data/styles/*
58 do
59 [[ -f ${style} ]] || continue
60 sed -i 's,\([^f]\)bsetroot,\1fbsetroot,' ${style} || die ${style}
61 done
62
63 autoreconf --verbose --install --force || die
64 }
65
66 src_compile()
67 {
68 cd ${SRCDIR}
69
70 mconfigure \
71 --sysconfdir=/etc/X11/${PNAME} \
72 --disable-nls \
73 --enable-imlib2 \
74 --enable-xpm \
75 --enable-kde \
76 --enable-gnome \
77 --enable-xft \
78 --enable-xinerama \
79 --disable-debug \
80 || die
81
82 mmake || die
83 }
84
85 mcore_generic_src_install()
86 {
87 cd ${SRCDIR}
88
89 # needed directories
90 minstalldir /usr/share/fluxbox || die
91 minstalldir /usr/share/xsessions || die
92
93 mmake DESTDIR=${BINDIR} install || die
94
95 # create gnome xsession file
96 echo "[Desktop Entry]
97 Encoding=UTF-8
98 Name=Fluxbox
99 Comment=This session logs you into Fluxbox
100 Exec=startfluxbox
101 TryExec=startfluxbox
102 Icon=
103 Type=Application" > ${BINDIR}/usr/share/xsessions/fluxbox.desktop || die
104
105 minstalldocs AUTHORS COPYING ChangeLog NEWS README TODO || die
106
107 echo -e ${COLGREEN}" injecting custom fluxbox-configs"${COLDEFAULT}
108 mcinjectfile menu /usr/share/fluxbox || die
109 mcinjectfile init /usr/share/fluxbox || die
110 mcinjectfile keys /usr/share/fluxbox || die
111 mcinjectfile apps /usr/share/fluxbox || die
112 mcinjectfile mcore2.png /usr/share/fluxbox/wallpaper.png || die
113
114 # set carp as default theme
115 sed -i 's:^\(session.styleFile\:\).*:\1\t/usr/share/fluxbox/styles/carp:' \
116 ${BINDIR}/usr/share/fluxbox/init || die
117 }