summaryrefslogtreecommitdiff
blob: 981ebb49788ca514efd332ae6773501877936de2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/perfctr/perfctr-2.7.18.ebuild,v 1.1 2005/08/23 05:49:34 robbat2 Exp $

inherit multilib

DESCRIPTION="Linux performance monitoring counters"
HOMEPAGE="http://user.it.uu.se/~mikpe/linux/perfctr/2.7/"
SRC_URI="${HOMEPAGE}/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64 -alpha -arm -hppa -ia64 -m68k -mips -s390 -sh -sparc"
# Should work on: ppc ppc64
# but needs testing
# this is a hardware-specific package, with support for only x86/amd64/ppc/ppc64
IUSE=""

DEPEND="virtual/libc sys-kernel/linux-headers"
RDEPEND="virtual/libc"

src_compile() {
	emake CFLAGS="${CFLAGS}"
}

src_install() {
	pfx="${D}/usr"
	make install2 PREFIX="${pfx}" BINDIR="${pfx}/sbin" LIBDIR="${pfx}/$(get_libdir)" INCLDIR="${pfx}/include/"
	dodoc CHANGES OTHER README TODO
}