Magellan Linux

Contents of /branches/R11-stable/extras/idesk/idesk-0.7.5-r5.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 15170 - (show annotations) (download)
Wed Jan 2 10:53:04 2013 UTC (11 years, 4 months ago) by niro
File size: 1124 byte(s)
-release branches/R11-stable
1 # $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 sminclude mtools
23
24 SRC_URI=(
25 sourceforge://${PNAME}/${SRCFILE}
26 mirror://${PNAME}/${SRCFILE}
27 )
28
29 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 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 }