1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit toolchain-funcs
8 MY_PN=${PN/elf/ELF}-${PV}
11 DESCRIPTION="collection of programs to manipulate ELF files: sstrip, rebind, elfls, elftoc"
12 HOMEPAGE="http://www.muppetlabs.com/~breadbox/software/elfkickers.html"
13 SRC_URI="http://www.muppetlabs.com/~breadbox/pub/software/${MY_PN}.tar.gz"
17 KEYWORDS="~amd64 ~arm ~hppa ~mips ~sparc ~x86"
20 DEPEND="app-misc/pax-utils"
24 "${FILESDIR}"/${P}-respect-CFLAGS-LDFLAGS.patch
25 "${FILESDIR}"/${P}-create-destdir-path.patch
26 "${FILESDIR}"/add-freebsd-elf-defs.patch
31 sed -i -e "s:^prefix = /usr/local:prefix = ${D}:" Makefile \
36 emake CC=$(tc-getCC) all