blob: 0edbfebd6e0532bc4d9f9d3cd53520e2090ca066 (
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-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit flag-o-matic toolchain-funcs
DESCRIPTION="ELF (Executable and Linkable Format) reader and producer implemented as a C++ library."
HOMEPAGE="http://elfio.sourceforge.net/"
SRC_URI="mirror://sourceforge/elfio/${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~mips ~sparc ~x86"
IUSE=""
src_compile() {
append-flags -fPIC
econf || die "econf failed"
emake || die "emake failed"
# for secondlife
cd ELFIO && $(tc-getCC) -shared *.o -o libelfio.so || die
}
src_install() {
emake DESTDIR="${D}" install || die "install failed"
dolib.so ELFIO/libelfio.so || die
dodoc AUTHORS NEWS README
}
|