Magellan Linux

Annotation of /smage/trunk/extras/slim/slim-1.3.2-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1103 - (hide annotations) (download)
Wed Jan 26 00:09:09 2011 UTC (13 years, 3 months ago) by niro
File size: 1199 byte(s)
auto added: ver bump to 1.3.2-r1
1 niro 1103 # $Id$
2    
3     PNAME="slim"
4     PVER="1.3.2"
5     PBUILD="r1"
6    
7     PCATEGORIE="x11-misc"
8     STATE="unstable"
9    
10     DESCRIPTION="SLiM is a Desktop-independent graphical login manager for X11."
11     HOMEPAGE="http://slim.berlios.de/"
12    
13     DEPEND=">= x11-libs/libXmu-1
14     >= x11-libs/libX11-1
15     >= x11-libs/libXpm-3.5
16     >= x11-libs/libXft-1
17     >= media-libs/libpng-1.2.40
18     >= media-libs/libjpeg-7"
19    
20     SDEPEND=">= dev-util/pkgconfig-0.19
21     >= x11-proto/xproto-7
22     >= sys-apps/sed-4"
23    
24     SRCFILE="${PNAME}-${PVER}.tar.gz"
25     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
26    
27     MCORE_ONLY_KEEP="etc/slim.conf usr/bin/slim usr/share/slim/themes/default"
28     sminclude mbuild mcore-split
29    
30     SRC_URI=(
31     http://download.berlios.de/${PNAME}/${SRCFILE}
32     mirror://${PNAME}/${SRCFILE}
33     )
34    
35     UP2DATE="updatecmd_berlios ${PNAME}"
36    
37     src_prepare()
38     {
39     munpack ${SRCFILE} || die
40     cd ${SRCDIR}
41    
42     # fix cflags and ldflags
43     sed -i \
44     -e "s:^\(CFLAGS=\).*:\1-I. $(pkg-config --cflags freetype2 libpng x11):" \
45     -e "s:^\(LDFLAGS=\).*:\1$(pkg-config --libs xft freetype2 libpng xmu) -ljpeg -lz -lm -lcrypt -lrt:" \
46     -e "s:^\(MANDIR=\).*:\1/usr/share/man:" \
47     Makefile || die
48     }
49    
50     src_compile()
51     {
52     cd ${SRCDIR}
53     mmake || die
54     }
55    
56     src_install()
57     {
58     cd ${SRCDIR}
59     mmake DESTDIR=${BINDIR} install || die
60     }