1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit multilib toolchain-funcs
8 DESCRIPTION="Hardware-based performance monitoring interface for Linux"
9 HOMEPAGE="http://perfmon2.sourceforge.net"
10 SRC_URI="mirror://sourceforge/perfmon2/${PN}4/${P}.tar.gz"
14 KEYWORDS="amd64 ~arm ~ppc64 x86"
23 sed -e "s:SLDFLAGS=:SLDFLAGS=\$(LDFLAGS) :g" \
24 -i lib/Makefile || die
25 sed -e "s:LIBDIR=\$(PREFIX)/lib:LIBDIR=\$(PREFIX)/$(get_libdir):g" \
30 # 'DBG=' unsets '-Werror' and other optional flags, bug #664294
31 emake CC=$(tc-getCC) DBG=
35 emake DESTDIR="${D}" LDCONFIG=true PREFIX="${EPREFIX}/usr" install
36 use static-libs || find "${ED}" -name '*.a' -exec rm -f '{}' +