2012-07-18 12:30:21 +04:00
|
|
|
# Copyright 1999-2012 Gentoo Foundation
|
2012-02-06 16:39:49 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2015-08-11 00:17:55 +03:00
|
|
|
# $Id$
|
2012-02-06 16:39:49 +04:00
|
|
|
|
|
|
|
EAPI="4"
|
|
|
|
|
|
|
|
inherit eutils toolchain-funcs
|
|
|
|
|
|
|
|
MY_PN=${PN/elf/ELF}-${PV}
|
|
|
|
S=${WORKDIR}/${MY_PN}
|
|
|
|
|
|
|
|
DESCRIPTION="collection of programs to manipulate ELF files: sstrip, rebind, elfls, elftoc"
|
|
|
|
HOMEPAGE="http://www.muppetlabs.com/~breadbox/software/elfkickers.html"
|
|
|
|
SRC_URI="http://www.muppetlabs.com/~breadbox/pub/software/${MY_PN}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="GPL-2"
|
|
|
|
SLOT="0"
|
2012-07-18 12:30:21 +04:00
|
|
|
KEYWORDS="~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
|
2012-02-06 16:39:49 +04:00
|
|
|
IUSE="doc"
|
|
|
|
|
|
|
|
DEPEND="app-misc/pax-utils"
|
|
|
|
RDEPEND=""
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
epatch "${FILESDIR}"/respect-CFLAGS-LDFLAGS.patch
|
|
|
|
epatch "${FILESDIR}"/create-destdir-path.patch
|
|
|
|
epatch "${FILESDIR}"/add-freebsd-elf-defs.patch
|
|
|
|
sed -i -e "s:^prefix = /usr/local:prefix = ${D}:" Makefile \
|
|
|
|
|| die "sed failed"
|
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
|
|
|
emake CC=$(tc-getCC) all
|
|
|
|
}
|