blob: 49f8742fab5ed2cbc59f7e684823e85f4ddca77a (
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
31
32
33
34
35
36
37
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/tomsfastmath/tomsfastmath-0.12-r1.ebuild,v 1.2 2009/11/22 18:15:29 vapier Exp $
inherit eutils toolchain-funcs multilib
DESCRIPTION="portable fixed precision math library geared towards doing one thing very fast"
HOMEPAGE="http://libtom.org/"
SRC_URI="http://libtom.org/files/tfm-${PV}.tar.bz2"
LICENSE="public-domain"
SLOT="0"
KEYWORDS="~amd64 ~arm ~ppc ~x86"
IUSE=""
src_unpack() {
unpack ${A}
cd "${S}"
sed -i \
-e "s:gcc:$(tc-getCC):g" \
-e "s:--mode=link gcc:--mode=link $(tc-getCC) --tag=CC $(tc-getCC):g" \
makefile.shared || die
sed -i \
-e '/install.*HEADERS/s:$: -m644:' \
-e "1iLIBPATH=/usr/$(get_libdir)" \
makefile* || die
}
src_compile() {
emake -f makefile.shared IGNORE_SPEED=1 || die
}
src_install() {
emake -f makefile.shared DESTDIR="${D}" install || die
dodoc changes.txt doc/*.pdf || die
docinto demo ; dodoc demo/*.c || die
}
|