# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit toolchain-funcs eutils DESCRIPTION="the hardware-based performance monitoring interface for Linux" HOMEPAGE="http://perfmon2.sourceforge.net/" SRC_URI="mirror://sourceforge/perfmon2/${P}.tar.gz" LICENSE="as-is" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" DEPEND="" RDEPEND="" src_unpack() { unpack ${A} cd "${S}" epatch "${FILESDIR}"/libpfm-3.52-gcc-4.3.3.patch } src_compile() { emake install_prefix=/usr CC="$(tc-getCC)" OPTIM="${CFLAGS}" || die "emake failed" } src_install() { emake install_prefix="${D}"/usr install || die "emake install failed" }