Annotation of /branches/R11-stable/extras/idesk/idesk-0.7.5-r5.smage2
Parent Directory | Revision Log
Revision 11223 -
(hide annotations)
(download)
Tue Feb 21 14:46:20 2012 UTC (12 years, 3 months ago) by niro
Original Path: trunk/extras/idesk/idesk-0.7.5-r5.smage2
File size: 1124 byte(s)
Tue Feb 21 14:46:20 2012 UTC (12 years, 3 months ago) by niro
Original Path: trunk/extras/idesk/idesk-0.7.5-r5.smage2
File size: 1124 byte(s)
-fixed missing includes
1 | niro | 11222 | # $Id$ |
2 | |||
3 | PNAME="idesk" | ||
4 | PVER="0.7.5" | ||
5 | PBUILD="r5" | ||
6 | |||
7 | PCAT="x11-misc" | ||
8 | |||
9 | DESCRIPTION="iDesk, a tool to provide desktop icons." | ||
10 | HOMEPAGE="http://idesk.sourceforge.net/" | ||
11 | |||
12 | DEPEND=">= media-libs/imlib2-1.4 | ||
13 | >= media-libs/freetype-2.4 | ||
14 | >= dev-libs/libxml2-2.7 | ||
15 | >= x11-libs/startup-notification-0.12" | ||
16 | |||
17 | SDEPEND=">= dev-util/pkgconfig-0.25" | ||
18 | |||
19 | SRCFILE="${PNAME}-${PVER}.tar.bz2" | ||
20 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
21 | |||
22 | niro | 11223 | sminclude mtools |
23 | niro | 11222 | |
24 | SRC_URI=( | ||
25 | sourceforge://${PNAME}/${SRCFILE} | ||
26 | mirror://${PNAME}/${SRCFILE} | ||
27 | ) | ||
28 | |||
29 | niro | 11223 | src_prepare() |
30 | { | ||
31 | munpack ${SRCFILE} || die | ||
32 | cd ${SRCDIR} | ||
33 | |||
34 | # fix missing includes to build with newer gcc | ||
35 | sed -i '1,1i#include <unistd.h>' src/DesktopConfig.cpp || die | ||
36 | sed -i '1,1i#include <sys/stat.h>' src/DesktopConfig.cpp || die | ||
37 | sed -i '1,1i#include <sys/types.h>' src/DesktopConfig.cpp || die | ||
38 | } | ||
39 | |||
40 | niro | 11222 | src_compile() |
41 | { | ||
42 | cd ${SRCDIR} | ||
43 | mconfigure --enable-libsn || die | ||
44 | mmake || die | ||
45 | } | ||
46 | |||
47 | src_install() | ||
48 | { | ||
49 | cd ${SRCDIR} | ||
50 | |||
51 | minstalldir /usr/bin || die | ||
52 | minstalldir /usr/share/idesk || die | ||
53 | minstallexec src/idesk || die | ||
54 | minstallfile examples/\* /usr/share/idesk || die | ||
55 | minstalldocs AUTHORS COPYING ChangeLog NEWS README TODO || die | ||
56 | } |