# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=2 inherit eutils DESCRIPTION="Simple Direct Media Layer SPU Helper Libraries" HOMEPAGE="http://www.libsdl.org/" SRC_URI="http://www.libsdl.org/release/SDL-${PV}.tar.gz" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~ppc ~ppc64" RDEPEND="sys-libs/libspe2" DEPEND="cross-spu-elf/gcc cross-spu-elf/binutils cross-spu-elf/newlib" S=${WORKDIR}/SDL-${PV}/src/video/ps3/spulibs src_prepare() { # Package expects a CellSDK environment - change to Gentoo's toolchain sed -i -e 's/spu-gcc/spu-elf-gcc/' ${S}/Makefile -e 's/\/usr\/spu\/include/\/usr\/spu-elf\/include/' ${S}/Makefile || die epatch "${FILESDIR}/destdir-support.patch" || die } src_compile() { unset CFLAGS_ppc64 unset CFLAGS_ppc emake || die } src_install() { emake DESTDIR="${D}" install || die "emake install failed" }