summaryrefslogtreecommitdiff
blob: fe0029ce91ddc9befb9e5d76f6c901802f9f9b6f (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/ccmath/ccmath-2.2.1.ebuild,v 1.11 2006/07/15 03:13:09 vapier Exp $

inherit eutils

DESCRIPTION="a math library that contains functions for a wide variety of computations"
HOMEPAGE="http://freshmeat.net/projects/ccmath/"
SRC_URI="http://www.ibiblio.org/pub/Linux/libs/${P}.tar.gz"

LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="x86 ppc sparc amd64"
IUSE=""

DEPEND=""

src_unpack() {
	unpack ${A}
	cd "${S}"
	epatch "${FILESDIR}"/${P}-fPIC.patch
}

src_compile() {
	# if it is amd64 we doesn't support intels
	use amd64 && yes n | ./makelibs.sh || yes | ./makelibs.sh
}

src_install() {
	dolib.so tmp/libccm.so || die
	dolib.a tmp/libccm.a || die
	insinto /usr/include
	doins ccmath.h || die
	dodoc CHANGES INSTALL README manual/*
}