/[gentoo-x86]/x11-plugins/gkrelltop/gkrelltop-2.2.6-r1.ebuild
Gentoo

Contents of /x11-plugins/gkrelltop/gkrelltop-2.2.6-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Thu Jul 22 14:31:05 2010 UTC (4 years, 1 month ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
old
(Portage version: 2.2_rc67/cvs/Linux x86_64)

1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/x11-plugins/gkrelltop/gkrelltop-2.2.6-r1.ebuild,v 1.8 2007/06/02 16:55:13 armin76 Exp $
4
5 inherit gkrellm-plugin
6
7 DESCRIPTION="a GKrellM2 plugin which displays the top three processes"
8 SRC_URI="http://psychology.rutgers.edu/~zaimi/html/${PN}/${PN}_2.2-6.tar.gz"
9 HOMEPAGE="http://psychology.rutgers.edu/~zaimi/software.html"
10
11 SLOT="0"
12 LICENSE="GPL-2"
13 KEYWORDS="alpha amd64 ppc sparc x86"
14
15 IUSE=""
16
17 PLUGIN_SERVER_SO=gkrelltopd.so
18 PLUGIN_SO=gkrelltop2.so
19
20 src_compile() {
21 # Unfortunately, the supplied Makefile won't work properly on
22 # non-x86, so we have to do this the hard way.
23 if built_with_use app-admin/gkrellm X; then
24 PKGCFG_ITEM="gtk+-2.0"
25 else
26 PKGCFG_ITEM="glib-2.0"
27 fi
28 CONFIG="-DLINUX -DGKRELLM2 -fPIC `pkg-config ${PKGCFG_ITEM} --cflags`"
29 LIBS="`pkg-config ${PKGCFG_ITEM} --libs` -shared"
30 OBJS="top_three2.o"
31 XOBJS="${OBJS} gkrelltop2.o"
32 DOBJS="${OBJS} gkrelltopd.o"
33 gcc -c $CONFIG $CFLAGS top_three.c -o top_three2.o || die
34 if built_with_use app-admin/gkrellm X; then
35 gcc -c $CONFIG $CFLAGS gkrelltop.c -o gkrelltop2.o || die
36 gcc $LIBS $CONFIG $CFLAGS -o gkrelltop2.so $XOBJS || die
37 fi
38 gcc -c $CONFIG $CFLAGS gkrelltopd.c -o gkrelltopd.o || die
39 gcc $LIBS $CONFIG $CFLAGS -o gkrelltopd.so $DOBJS || die
40 }
41
42 pkg_postinst() {
43 einfo "To enable the gkrelltopd server plugin, you must add the following"
44 einfo "line to /etc/gkrellmd.conf:"
45 einfo "\tplugin-enable gkrelltopd"
46 }

  ViewVC Help
Powered by ViewVC 1.1.20