Magellan Linux

Annotation of /trunk/extras/fluxbox/fluxbox-1.3.7-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 27319 - (hide annotations) (download)
Tue Dec 15 13:52:31 2015 UTC (8 years, 6 months ago) by niro
File size: 1837 byte(s)
-c++11 abi toolchain rebuild
1 niro 27319 # $Id$
2    
3     PNAME="fluxbox"
4     PVER="1.3.7"
5     PBUILD="r3"
6    
7     PCAT="x11-wm"
8    
9     DESCRIPTION="fluxbox is yet another windowmanager for X based on blackbox."
10     HOMEPAGE="http://www.fluxbox.org/"
11    
12     DEPEND=">= x11-libs/libXpm-3.5
13     >= x11-libs/libXrandr-1.5
14     >= x11-libs/libXinerama-1.1
15     >= x11-libs/libXft-2.3
16     >= dev-libs/fribidi-0.19
17     >= media-libs/freetype-2.6
18     >= media-libs/imlib2-1.4
19     >= x11-apps/xmessage-1.04
20     >= sys-libs/libstdc++-5.3"
21    
22     SDEPEND=">= sys-dev/automake-9
23     >= sys-dev/autoconf-10"
24    
25     PROVIDE="virtual/windowmanager"
26    
27     SRCFILE="${PNAME}-${PVER/_/}.tar.bz2"
28     SRCDIR="${BUILDDIR}/${PNAME}-${PVER/_/}"
29    
30     sminclude xorg mtools
31    
32     SRC_URI=(
33     sourceforge://${PNAME}/${SRCFILE}
34     mirror://${PNAME}/${SRCFILE}
35     )
36    
37     UP2DATE="updatecmd_sourceforge ${PNAME}"
38    
39     src_prepare()
40     {
41     munpack ${SRCFILE} || die
42     cd ${SRCDIR}
43    
44     # enable antialias by default
45     echo "session.screen0.antialias: true" >> data/init.in || die
46    
47     # all styles should use fbsetroot
48     for style in ${SRCDIR}/data/styles/*
49     do
50     [[ -f ${style} ]] || continue
51     sed -i 's,\([^f]\)bsetroot,\1fbsetroot,' ${style} || die ${style}
52     done
53     }
54    
55     src_compile()
56     {
57     cd ${SRCDIR}
58    
59     mconfigure \
60     --sysconfdir=/etc/X11/${PNAME} \
61     --enable-nls \
62     --enable-imlib2 \
63     --enable-xpm \
64     --enable-kde \
65     --enable-gnome \
66     --enable-xft \
67     --enable-xinerama \
68     --enable-fribidi \
69     --disable-debug \
70     || die
71    
72     mmake || die
73     }
74    
75     src_install()
76     {
77     cd ${SRCDIR}
78    
79     # needed directories
80     minstalldir /usr/share/fluxbox || die
81     minstalldir /usr/share/xsessions || die
82    
83     mmake DESTDIR=${BINDIR} install || die
84    
85     # create gnome xsession file
86     echo "[Desktop Entry]
87     Encoding=UTF-8
88     Name=Fluxbox
89     Comment=This session logs you into Fluxbox
90     Exec=startfluxbox
91     TryExec=startfluxbox
92     Icon=
93     Type=Application" > ${BINDIR}/usr/share/xsessions/fluxbox.desktop || die
94    
95     minstalldocs AUTHORS COPYING ChangeLog NEWS README TODO || die
96     }