Magellan Linux

Annotation of /trunk/extras/gkrellm/gkrellm-2.3.2-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4328 - (hide annotations) (download)
Tue Dec 1 18:01:36 2009 UTC (14 years, 6 months ago) by niro
File size: 2357 byte(s)
-added compilation fix
1 niro 4327 # $Id$
2    
3     PNAME="gkrellm"
4     PVER="2.3.2"
5     PBUILD="r1"
6    
7     PCATEGORIE="app-admin"
8     STATE="unstable"
9    
10     DESCRIPTION="GKrellM is a single process stack of system monitors."
11     HOMEPAGE="http://www.gkrellm.net/"
12    
13     DEPEND=">= dev-libs/openssl-0.9.8
14     >= x11-libs/gtk2+-2.18
15     >= x11-libs/pango-1.26"
16    
17     SDEPEND=">= sys-apps/sed-4
18     >= sys-dev/gettext-0.17"
19    
20     SRCFILE="${PNAME}-${PVER}.tar.bz2"
21     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
22    
23     sminclude mtools xdg
24    
25     SRC_URI=(
26     http://members.dslextreme.com/users/billw/${PNAME}/${SRCFILE}
27     mirror://${PNAME}/${SRCFILE}
28     mirror://${PNAME}/gkrellmd.rc
29 niro 4328 mirror://${PNAME}/${PNAME}-${PVER}-getline.patch
30 niro 4327 )
31    
32     UP2DATE="updatecmd http://members.dslextreme.com/users/billw/gkrellm/ | lasttarball"
33    
34     src_prepare()
35     {
36     munpack ${SRCFILE} || die
37     cd ${SRCDIR}
38    
39 niro 4328 # fixes compilation
40     mpatch ${PNAME}-${PVER}-getline.patch || die
41    
42 niro 4327 # enables nls support
43     sed -i "s:enable_nls=1:enable_nls=0:" Makefile || die
44    
45     # sets $INSTALLROOT to ${BINDIR}/usr instead of /usr/local
46     sed -i 's:INSTALLROOT ?= /usr/local:INSTALLROOT ?= ${BINDIR}/usr:' Makefile || die
47    
48     # fixes libdir
49     sed -i "s:\(PKGCONFIGDIR ?= \$(INSTALLROOT)/\)lib:\1$(mlibdir):" Makefile || die
50     sed -i -e "s:/usr/lib:/usr/$(mlibdir):" \
51     -e "s:/usr/local/lib:/usr/local/$(mlibdir):" src/gkrellm.h || die
52     }
53    
54     src_compile()
55     {
56     cd ${SRCDIR}
57     PREFIX=/usr mmake || die
58     }
59    
60     src_install()
61     {
62     cd ${SRCDIR}
63    
64     make DESTDIR=${BINDIR} install \
65     INSTALLDIR=${BINDIR}/usr/bin \
66     MANDIR=${BINDIR}/usr/share/man/man1 \
67     INCLUDEDIR=${BINDIR}/usr/include \
68     LOCALEDIR=${BINDIR}/usr/share/locale \
69     PKGCONFIGDIR=${BINDIR}/usr/$(mlibdir)/pkgconfig \
70     || die
71    
72     # install bin and rename it (gkrellm version is 2)
73     minstallexec src/gkrellm /usr/bin/gkrellm2 || die
74     rm -f ${BINDIR}/usr/bin/gkrellm || die
75    
76     # install man-pages and rename them (gkrellm version is 2)
77     mv gkrellm.1 gkrellm2.1 || die
78     rm -f ${BINDIR}/usr/share/man/man1/* || die
79     minstallman *.1 || die
80    
81     # installs gkrellm server config
82     minstalletc server/gkrellmd.conf || die
83    
84     # installs html-doc-pages
85     minstallhtml *.html || die
86    
87     # install initscript
88     minstallrc gkrellmd.rc gkrellmd || die
89    
90     # install desktop icon
91     minstallpixmap src/icon.xpm gkrellm2.xpm
92     minstall_desktop_icon \
93     --icon gkrellm2.xpm \
94     --comment "GKrellM system monitor" \
95     --categories System,Monitor \
96     || die
97    
98     minstalldocs COPYRIGHT CREDITS Changelog* README || die
99     }

Properties

Name Value
svn:keywords Id