Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1320 - (hide annotations) (download)
Mon Feb 7 15:46:11 2011 UTC (13 years, 3 months ago) by niro
File size: 2766 byte(s)
auto added: ver bump to 1.1.1_20110127-r1
1 niro 1154 # $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 niro 1218 # eterm is needed to provide Esetroot for changing wallpapers
14 niro 1221 # xmessage is runtime needed by fbsetbg
15 niro 1154 DEPEND=">= x11-libs/libXpm-1
16     >= x11-libs/libXrandr-1
17     >= x11-libs/libXinerama-1
18     >= x11-libs/libXft-1
19     >= media-libs/freetype-2
20 niro 1218 >= media-libs/imlib2-1.4
21 niro 1221 >= x11-apps/xmessage-1.0.3
22 niro 1218 >= x11-terms/eterm-0.9.5"
23 niro 1154
24     SDEPEND=">= sys-dev/automake-4
25     >= sys-dev/autoconf-5"
26    
27     SRCFILE="${PNAME}-${PVER/_/}.tar.bz2"
28     SRCDIR="${BUILDDIR}/${PNAME}-${PVER/_/}"
29    
30     # fixme: keep only one style, not all
31     # and clean up bin too!
32     MCORE_ONLY_KEEP="usr/bin
33 niro 1161 usr/share/fluxbox/styles/carp
34     usr/share/fluxbox/styles/zimek_green
35 niro 1154 usr/share/fluxbox/keys
36     usr/share/fluxbox/init
37     usr/share/fluxbox/apps
38     usr/share/fluxbox/overlay
39     usr/share/fluxbox/menu
40 niro 1320 usr/share/fluxbox/windowmenu
41     usr/share/fluxbox/wallpaper.png"
42 niro 1154 sminclude xorg mtools mcore-split
43    
44     SRC_URI=(
45     sourceforge://${PNAME}/${SRCFILE}
46     mirror://${PNAME}/${SRCFILE}
47     )
48    
49     UP2DATE="updatecmd_sourceforge ${PNAME}"
50    
51     src_prepare()
52     {
53     munpack ${SRCFILE} || die
54     cd ${SRCDIR}
55    
56     # enable antialias by default
57     echo "session.screen0.antialias: true" >> data/init.in || die
58    
59     # all styles should use fbsetroot
60     for style in ${SRCDIR}/data/styles/*
61     do
62     [[ -f ${style} ]] || continue
63     sed -i 's,\([^f]\)bsetroot,\1fbsetroot,' ${style} || die ${style}
64     done
65    
66     autoreconf --verbose --install --force || die
67     }
68    
69     src_compile()
70     {
71     cd ${SRCDIR}
72    
73     mconfigure \
74     --sysconfdir=/etc/X11/${PNAME} \
75 niro 1156 --disable-nls \
76 niro 1154 --enable-imlib2 \
77     --enable-xpm \
78     --enable-kde \
79     --enable-gnome \
80     --enable-xft \
81     --enable-xinerama \
82     --disable-debug \
83     || die
84    
85     mmake || die
86     }
87    
88     mcore_generic_src_install()
89     {
90     cd ${SRCDIR}
91    
92     # needed directories
93     minstalldir /usr/share/fluxbox || die
94     minstalldir /usr/share/xsessions || die
95    
96     mmake DESTDIR=${BINDIR} install || die
97    
98     # create gnome xsession file
99     echo "[Desktop Entry]
100     Encoding=UTF-8
101     Name=Fluxbox
102     Comment=This session logs you into Fluxbox
103     Exec=startfluxbox
104     TryExec=startfluxbox
105     Icon=
106     Type=Application" > ${BINDIR}/usr/share/xsessions/fluxbox.desktop || die
107    
108     minstalldocs AUTHORS COPYING ChangeLog NEWS README TODO || die
109 niro 1161
110     echo -e ${COLGREEN}" injecting custom fluxbox-configs"${COLDEFAULT}
111     mcinjectfile menu /usr/share/fluxbox || die
112     mcinjectfile init /usr/share/fluxbox || die
113     mcinjectfile keys /usr/share/fluxbox || die
114 niro 1200 mcinjectfile apps /usr/share/fluxbox || die
115     mcinjectfile mcore2.png /usr/share/fluxbox/wallpaper.png || die
116 niro 1161
117     # set carp as default theme
118     sed -i 's:^\(session.styleFile\:\).*:\1\t/usr/share/fluxbox/styles/carp:' \
119     ${BINDIR}/usr/share/fluxbox/init || die
120 niro 1154 }