summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-misc/spe-samples/spe-samples-1.0.ebuild')
-rw-r--r--app-misc/spe-samples/spe-samples-1.0.ebuild13
1 files changed, 10 insertions, 3 deletions
diff --git a/app-misc/spe-samples/spe-samples-1.0.ebuild b/app-misc/spe-samples/spe-samples-1.0.ebuild
index 0638df3..cf8343d 100644
--- a/app-misc/spe-samples/spe-samples-1.0.ebuild
+++ b/app-misc/spe-samples/spe-samples-1.0.ebuild
@@ -1,7 +1,7 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
-inherit libtool
+inherit libtool autotools
DESCRIPTION="Cell SPE examples"
HOMEPAGE=""
@@ -12,7 +12,8 @@ SLOT="0"
KEYWORDS="~ppc ~ppc64"
IUSE=""
-DEPEND=">=sys-libs/libspe2-2.0"
+DEPEND=">=sys-libs/libspe2-2.0
+ >=sys-libs/libspe-1.2.0"
RDEPEND=""
# fixme: provide an spu eclass to do basic checks and autostuff fixes
@@ -21,9 +22,11 @@ src_unpack() {
unpack ${A}
# make sure it uses the right compiler.
sed -i -e "s:spu-gcc:spu-elf-gcc:g" ${S}/*/spe/configure*
+ # avoid wrong binary
+ sed -i -e "s:-m32::" ${S}/*/spe/Makefile.am
# fixme: kill c++/fortran checks!
cd ${S}
- elibtoolize
+ eautoreconf
}
src_compile() {
@@ -37,3 +40,7 @@ src_compile() {
./configure --prefix=/usr || die "configure failed"
emake || die "build failed"
}
+
+src_install() {
+ make DESTDIR=${D} install || die "install failed"
+}