Magellan Linux

Contents of /smage/branches/alx-0_6_0/core/xtdesktop/xtdesktop-0.7b-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1912 - (show annotations) (download)
Tue May 3 16:44:09 2011 UTC (13 years, 1 month ago) by niro
File size: 1148 byte(s)
auto added: ver bump to 0.7b-r2
1 # $Id$
2
3 PNAME="xtdesktop"
4 PVER="0.7b"
5 PBUILD="r2"
6
7 PCATEGORIE="x11-misc"
8 STATE="unstable"
9
10 DESCRIPTION="XtDesk is X Window icon manager based on idesk."
11 HOMEPAGE="http://garuda.newmail.ru/xtdesk_e.dhtml"
12
13 DEPEND=">= virtual/x11
14 >= media-libs/imlib-1.9"
15
16 SDEPEND=">= virtual/sed"
17
18 SRCFILE="${PNAME}-${PVER}.tgz"
19 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
20
21 REMOVE_DEPRECATED_MAGE_TARGETS=1
22 ALX_ONLY_KEEP="usr/bin/xtdesk"
23 sminclude mtools alx-split
24
25 SRC_URI=(
26 http://garuda.newmail.ru/${SRCFILE}
27 mirror://${PNAME}/${SRCFILE}
28 mirror://${PNAME}/${PNAME}-${PVER}-disable-menu.patch
29 )
30
31 src_prepare()
32 {
33 munpack ${SRCFILE} || die
34 cd ${SRCDIR}
35
36 # disable context menu on alx
37 mpatch ${PNAME}-${PVER}-disable-menu.patch || die
38
39 # fix CFLAGS
40 sed -i "s:^\(CFLAGS.*=\).*:\1 ${CFLAGS} -w -I/usr/X11R6/include -DLINUX:" Makefile || die
41 }
42
43 src_compile()
44 {
45 cd ${SRCDIR}
46 mmake || die
47 }
48
49 src_install()
50 {
51 cd ${SRCDIR}
52
53 minstallexec xtdesk || die
54
55 minstalldir /usr/share/${PNAME}-${PVER}/samples/xtdesktop || die
56 minstallfile xtdeskrc /usr/share/${PNAME}-${PVER}/samples || die
57 minstallfile xtdesktop/\* /usr/share/${PNAME}-${PVER}/samples/xtdesktop || die
58 }