summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-libs/acml/acml-3.6.0-r1.ebuild')
-rw-r--r--sci-libs/acml/acml-3.6.0-r1.ebuild19
1 files changed, 10 insertions, 9 deletions
diff --git a/sci-libs/acml/acml-3.6.0-r1.ebuild b/sci-libs/acml/acml-3.6.0-r1.ebuild
index ffc28d381a86..4f34d42d9da8 100644
--- a/sci-libs/acml/acml-3.6.0-r1.ebuild
+++ b/sci-libs/acml/acml-3.6.0-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/acml/acml-3.6.0-r1.ebuild,v 1.5 2007/11/21 00:25:36 bicatali Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/acml/acml-3.6.0-r1.ebuild,v 1.6 2007/12/19 19:30:47 bicatali Exp $
inherit eutils toolchain-funcs fortran
@@ -98,9 +98,10 @@ src_install() {
local libname=${acmldir}/lib/libacml
local extlibs
local extflags
+ [[ ${fort} =~ g77 ]] && extlibs="${extlibs} -lg2c"
if [[ ${fort} =~ _mp ]]; then
ESELECT_PROF=${ESELECT_PROF}-openmp
- extlibs=-lpthread
+ extlibs="${extlibs} -lpthread"
libname=${libname}_mp
extflags="${extflags} -openmp"
fi
@@ -108,7 +109,7 @@ src_install() {
# pkgconfig files
sed -e "s:@LIBDIR@:$(get_libdir):" \
-e "s:@PV@:${PV}:" \
- -e "s:@ACMLDIR@:${acmldir}:g" \
+ -e "s:@ACMLDIR@:${acmldir}/lib:g" \
-e "s:@EXTLIBS@:${extlibs}:g" \
-e "s:@EXTFLAGS@:${extflags}:g" \
"${FILESDIR}"/${l}.pc.in > ${l}.pc \
@@ -117,12 +118,12 @@ src_install() {
doins ${l}.pc || die "doins ${l}.pc failed"
# eselect files
- cat > eselect.${l} << EOF
-${libname}.so /usr/@LIBDIR@/lib${l}.so.0
-${libname}.so /usr/@LIBDIR@/lib${l}.so
-${libname}.a /usr/@LIBDIR@/lib${l}.a
-${acmldir}/lib/${l}.pc /usr/@LIBDIR@/pkgconfig/${l}.pc
-EOF
+ cat > eselect.${l} <<-EOF
+ ${libname}.so /usr/@LIBDIR@/lib${l}.so.0
+ ${libname}.so /usr/@LIBDIR@/lib${l}.so
+ ${libname}.a /usr/@LIBDIR@/lib${l}.a
+ ${acmldir}/lib/${l}.pc /usr/@LIBDIR@/pkgconfig/${l}.pc
+ EOF
eselect ${l} add $(get_libdir) eselect.${l} ${ESELECT_PROF}
done
echo "LDPATH=${instdir}/${fort}/lib" > 35acml