Contents of /smage/trunk/extras/slim/slim-1.3.2-r1.smage2
Parent Directory | Revision Log
Revision 1157 -
(show annotations)
(download)
Thu Jan 27 22:13:39 2011 UTC (13 years, 3 months ago) by niro
File size: 1232 byte(s)
Thu Jan 27 22:13:39 2011 UTC (13 years, 3 months ago) by niro
File size: 1232 byte(s)
-fixed dependencies
1 | # $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.1 |
14 | >= x11-libs/libX11-1.4 |
15 | >= x11-libs/libXpm-3.9 |
16 | >= x11-libs/libXft-2.2 |
17 | >= media-libs/libpng-1.4 |
18 | >= media-libs/libjpeg-8 |
19 | >= x11-apps/xauth-1.0.5" |
20 | |
21 | SDEPEND=">= dev-util/pkgconfig-0.25 |
22 | >= x11-proto/xproto-7.0.20 |
23 | >= sys-apps/sed-4" |
24 | |
25 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
26 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
27 | |
28 | MCORE_ONLY_KEEP="etc/slim.conf usr/bin/slim usr/share/slim/themes/default" |
29 | sminclude mbuild mcore-split |
30 | |
31 | SRC_URI=( |
32 | http://download.berlios.de/${PNAME}/${SRCFILE} |
33 | mirror://${PNAME}/${SRCFILE} |
34 | ) |
35 | |
36 | UP2DATE="updatecmd_berlios ${PNAME}" |
37 | |
38 | src_prepare() |
39 | { |
40 | munpack ${SRCFILE} || die |
41 | cd ${SRCDIR} |
42 | |
43 | # fix cflags and ldflags |
44 | sed -i \ |
45 | -e "s:^\(CFLAGS=\).*:\1-I. $(pkg-config --cflags freetype2 libpng x11):" \ |
46 | -e "s:^\(LDFLAGS=\).*:\1$(pkg-config --libs xft freetype2 libpng xmu) -ljpeg -lz -lm -lcrypt -lrt:" \ |
47 | -e "s:^\(MANDIR=\).*:\1/usr/share/man:" \ |
48 | Makefile || die |
49 | } |
50 | |
51 | src_compile() |
52 | { |
53 | cd ${SRCDIR} |
54 | mmake || die |
55 | } |
56 | |
57 | src_install() |
58 | { |
59 | cd ${SRCDIR} |
60 | mmake DESTDIR=${BINDIR} install || die |
61 | } |