Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1156 - (hide annotations) (download)
Thu Jan 27 22:03:24 2011 UTC (13 years, 3 months ago) by niro
File size: 2157 byte(s)
-disabled nls
1 niro 954 # $Id: fluxbox-1.1.1-r2.smage2 261 2010-04-27 09:51:42Z niro $
2    
3     PNAME="fluxbox"
4     PVER="1.1.1"
5     PBUILD="r3"
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     DEPEND=">= x11-libs/libXrandr-1
14     >= x11-libs/libSM-1
15     >= media-libs/freetype-2"
16    
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     MCORE_ONLY_KEEP="usr/bin/fbsetroot
24     usr/bin/fbsetbg
25     usr/bin/fluxbox
26     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     sminclude xorg mtools mcore-split
32    
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     --disable-static \
63     --disable-debug \
64     --disable-nls \
65 niro 1156 --enable-xinerama \
66 niro 954 --disable-kde \
67     --disable-gnome \
68     --disable-imlib2 \
69     --disable-xft \
70     --disable-xpm \
71     || die
72    
73     mmake || die
74     }
75    
76     mcore_generic_src_install()
77     {
78     cd ${SRCDIR}
79    
80     # needed directories
81     minstalldir /usr/share/fluxbox || die
82     minstalldir /usr/share/xsessions || die
83    
84     mmake DESTDIR=${BINDIR} install || die
85    
86     # create gnome xsession file
87     echo "[Desktop Entry]
88     Encoding=UTF-8
89     Name=Fluxbox
90     Comment=This session logs you into Fluxbox
91     Exec=startfluxbox
92     TryExec=startfluxbox
93     Icon=
94     Type=Application" > ${BINDIR}/usr/share/xsessions/fluxbox.desktop || die
95    
96     minstalldocs AUTHORS COPYING ChangeLog NEWS README TODO || die
97    
98     echo -e ${COLGREEN}" injecting custom fluxbox-configs"${COLDEFAULT}
99     mcinjectfile menu /usr/share/fluxbox || die
100     mcinjectfile init /usr/share/fluxbox || die
101     mcinjectfile keys /usr/share/fluxbox || die
102     }