blob: eb272c5072a212f261d7c931a5e321cca897d3da (
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
38
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-libs/ufconfig/ufconfig-3.5.0.ebuild,v 1.1 2010/05/14 16:44:09 bicatali Exp $
inherit toolchain-funcs
MY_PN=UFconfig
DESCRIPTION="Common configuration scripts for the SuiteSparse libraries"
HOMEPAGE="http://www.cise.ufl.edu/research/sparse/UFconfig"
SRC_URI="http://www.cise.ufl.edu/research/sparse/${MY_PN}/${MY_PN}-${PV}.tar.gz"
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-macos"
IUSE="static-libs"
DEPEND=""
S="${WORKDIR}/${MY_PN}"
src_compile() {
$(tc-getCC) ${CFLAGS} -fPIC -c UFconfig.c -o UFconfig.lo || die
$(tc-getCC) ${LDFLAGS} -shared -Wl,-soname,libufconfig.so.${PV} -o libufconfig.so.${PV} UFconfig.lo || die
if use static-libs; then
$(tc-getCC) ${CFLAGS} -c UFconfig.c -o UFconfig.o || die
$(tc-getAR) libufconfig.a UFconfig.o
fi
}
src_install() {
dolib.so libufconfig.so.${PV} || die
dosym libufconfig.so.${PV} libufconfig.so
if use static-libs; then
dolib.a libufconfig.a || die
fi
insinto /usr/include
doins UFconfig.h || die
dodoc README.txt
}
|