Magellan Linux

Annotation of /smage/trunk/core/fluxbox/fluxbox-1.1.1_20110127-r1.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: 2067 byte(s)
-disabled nls
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     DEPEND=">= x11-libs/libXpm-1
14     >= x11-libs/libXrandr-1
15     >= x11-libs/libXinerama-1
16     >= x11-libs/libXft-1
17     >= media-libs/freetype-2
18     >= media-libs/imlib2-1.4"
19    
20     SDEPEND=">= sys-dev/automake-4
21     >= sys-dev/autoconf-5"
22    
23     SRCFILE="${PNAME}-${PVER/_/}.tar.bz2"
24     SRCDIR="${BUILDDIR}/${PNAME}-${PVER/_/}"
25    
26     # fixme: keep only one style, not all
27     # and clean up bin too!
28     MCORE_ONLY_KEEP="usr/bin
29     usr/share/fluxbox/styles
30     usr/share/fluxbox/keys
31     usr/share/fluxbox/init
32     usr/share/fluxbox/apps
33     usr/share/fluxbox/overlay
34     usr/share/fluxbox/menu
35     usr/share/fluxbox/windowmenu"
36     sminclude xorg mtools mcore-split
37    
38     SRC_URI=(
39     sourceforge://${PNAME}/${SRCFILE}
40     mirror://${PNAME}/${SRCFILE}
41     )
42    
43     UP2DATE="updatecmd_sourceforge ${PNAME}"
44    
45     src_prepare()
46     {
47     munpack ${SRCFILE} || die
48     cd ${SRCDIR}
49    
50     # enable antialias by default
51     echo "session.screen0.antialias: true" >> data/init.in || die
52    
53     # all styles should use fbsetroot
54     for style in ${SRCDIR}/data/styles/*
55     do
56     [[ -f ${style} ]] || continue
57     sed -i 's,\([^f]\)bsetroot,\1fbsetroot,' ${style} || die ${style}
58     done
59    
60     autoreconf --verbose --install --force || die
61     }
62    
63     src_compile()
64     {
65     cd ${SRCDIR}
66    
67     mconfigure \
68     --sysconfdir=/etc/X11/${PNAME} \
69 niro 1156 --disable-nls \
70 niro 1154 --enable-imlib2 \
71     --enable-xpm \
72     --enable-kde \
73     --enable-gnome \
74     --enable-xft \
75     --enable-xinerama \
76     --disable-debug \
77     || die
78    
79     mmake || die
80     }
81    
82     mcore_generic_src_install()
83     {
84     cd ${SRCDIR}
85    
86     # needed directories
87     minstalldir /usr/share/fluxbox || die
88     minstalldir /usr/share/xsessions || die
89    
90     mmake DESTDIR=${BINDIR} install || die
91    
92     # create gnome xsession file
93     echo "[Desktop Entry]
94     Encoding=UTF-8
95     Name=Fluxbox
96     Comment=This session logs you into Fluxbox
97     Exec=startfluxbox
98     TryExec=startfluxbox
99     Icon=
100     Type=Application" > ${BINDIR}/usr/share/xsessions/fluxbox.desktop || die
101    
102     minstalldocs AUTHORS COPYING ChangeLog NEWS README TODO || die
103     }