Magellan Linux

Annotation of /smage/trunk/core/fluxbox/fluxbox-1.3.2-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


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