Contents of /smage/branches/alx-0_6_0/core/xtdesktop/xtdesktop-0.7b-r2.smage2
Parent Directory | Revision Log
Revision 1914 -
(show annotations)
(download)
Tue May 3 16:55:53 2011 UTC (13 years, 4 months ago) by niro
File size: 1293 byte(s)
Tue May 3 16:55:53 2011 UTC (13 years, 4 months ago) by niro
File size: 1293 byte(s)
-fixed src_install
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 | mirror://${PNAME}/${PNAME}-${PVER}-build-fixes.patch |
30 | ) |
31 | |
32 | src_prepare() |
33 | { |
34 | munpack ${SRCFILE} || die |
35 | cd ${SRCDIR} |
36 | |
37 | # disable context menu on alx |
38 | mpatch ${PNAME}-${PVER}-disable-menu.patch || die |
39 | |
40 | # fix build with newer gcc |
41 | mpatch ${PNAME}-${PVER}-build-fixes.patch || die |
42 | |
43 | # fix CFLAGS |
44 | sed -i "s:^\(CFLAGS.*=\).*:\1 ${CFLAGS} -w -I/usr/X11R6/include -DLINUX:" Makefile || die |
45 | } |
46 | |
47 | src_compile() |
48 | { |
49 | cd ${SRCDIR} |
50 | mmake || die |
51 | } |
52 | |
53 | alx_generic_src_install() |
54 | { |
55 | cd ${SRCDIR} |
56 | |
57 | minstallexec xtdesk || die |
58 | |
59 | minstalldir /usr/share/${PNAME}-${PVER}/samples/xtdesktop || die |
60 | minstallfile xtdeskrc /usr/share/${PNAME}-${PVER}/samples || die |
61 | minstallfile xtdesktop/\* /usr/share/${PNAME}-${PVER}/samples/xtdesktop || die |
62 | } |