Magellan Linux

Annotation of /smage/trunk/core/fluxbox/fluxbox-1.1.1-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 261 - (hide annotations) (download)
Tue Apr 27 09:51:42 2010 UTC (14 years ago) by niro
File size: 2125 byte(s)
auto added: ver bump to 1.1.1-r2
1 niro 249 # $Id$
2    
3     PNAME="fluxbox"
4     PVER="1.1.1"
5     PBUILD="r2"
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 254 DEPEND=">= x11-libs/libXrandr-1
14     >= x11-libs/libSM-1
15     >= media-libs/freetype-2"
16 niro 249
17     SDEPEND=">= sys-dev/automake-4
18     >= sys-dev/autoconf-5"
19    
20     SRCFILE="${PNAME}-${PVER/_/}.tar.bz2"
21     SRCDIR="${BUILDDIR}/${PNAME}-${PVER/_/}"
22    
23 niro 261 MCORE_ONLY_KEEP="usr/bin/fbsetroot
24 niro 254 usr/bin/fbsetbg
25     usr/bin/fluxbox
26 niro 261 usr/bin/startfluxbox
27     usr/share/fluxbox/menu
28     usr/share/fluxbox/init
29     usr/share/fluxbox/keys
30     usr/share/fluxbox/styles/LemonSpace"
31 niro 255 sminclude xorg mtools mcore-split
32 niro 249
33     SRC_URI=(
34     sourceforge://${PNAME}/${SRCFILE}
35     mirror://${PNAME}/${SRCFILE}
36     )
37    
38     UP2DATE="updatecmd_sourceforge ${PNAME}"
39    
40     src_prepare()
41     {
42     munpack ${SRCFILE} || die
43     cd ${SRCDIR}
44    
45     # enable antialias by default
46     echo "session.screen0.antialias: true" >> data/init.in || die
47    
48     # all styles should use fbsetroot
49     for style in ${SRCDIR}/data/styles/*
50     do
51     [[ -f ${style} ]] || continue
52     sed -i 's,\([^f]\)bsetroot,\1fbsetroot,' ${style} || die ${style}
53     done
54     }
55    
56     src_compile()
57     {
58     cd ${SRCDIR}
59    
60     mconfigure \
61     --sysconfdir=/etc/X11/${PNAME} \
62 niro 254 --disable-static \
63 niro 249 --disable-debug \
64 niro 254 --disable-nls \
65     --disable-xinerama \
66     --disable-kde \
67     --disable-gnome \
68     --disable-imlib2 \
69     --disable-xft \
70     --disable-xinerama \
71     --disable-xpm \
72 niro 249 || die
73    
74     mmake || die
75     }
76    
77 niro 254 mcore_generic_src_install()
78 niro 249 {
79     cd ${SRCDIR}
80    
81     # needed directories
82     minstalldir /usr/share/fluxbox || die
83     minstalldir /usr/share/xsessions || die
84    
85     mmake DESTDIR=${BINDIR} install || die
86    
87     # create gnome xsession file
88     echo "[Desktop Entry]
89     Encoding=UTF-8
90     Name=Fluxbox
91     Comment=This session logs you into Fluxbox
92     Exec=startfluxbox
93     TryExec=startfluxbox
94     Icon=
95     Type=Application" > ${BINDIR}/usr/share/xsessions/fluxbox.desktop || die
96    
97     minstalldocs AUTHORS COPYING ChangeLog NEWS README TODO || die
98 niro 254
99     echo -e ${COLGREEN}" injecting custom fluxbox-configs"${COLDEFAULT}
100     mcinjectfile menu /usr/share/fluxbox || die
101     mcinjectfile init /usr/share/fluxbox || die
102     mcinjectfile keys /usr/share/fluxbox || die
103 niro 249 }

Properties

Name Value
svn:keywords Id