diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2007-10-27 11:56:31 +0000 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2007-10-27 11:56:31 +0000 |
commit | 45b9723c52172c81af51a8c33d5770e9b13bd2b2 (patch) | |
tree | 8de362f446fd35cf136534de85adfdf6c5cd1ac6 /sys-libs/libspe2/libspe2-2.2.80_p95-r1.ebuild | |
parent | Initial commit. (diff) | |
download | gentoo-2-45b9723c52172c81af51a8c33d5770e9b13bd2b2.tar.gz gentoo-2-45b9723c52172c81af51a8c33d5770e9b13bd2b2.tar.bz2 gentoo-2-45b9723c52172c81af51a8c33d5770e9b13bd2b2.zip |
init.d fixed
(Portage version: 2.1.3.15)
Diffstat (limited to 'sys-libs/libspe2/libspe2-2.2.80_p95-r1.ebuild')
-rw-r--r-- | sys-libs/libspe2/libspe2-2.2.80_p95-r1.ebuild | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/sys-libs/libspe2/libspe2-2.2.80_p95-r1.ebuild b/sys-libs/libspe2/libspe2-2.2.80_p95-r1.ebuild new file mode 100644 index 000000000000..784ae6ce3157 --- /dev/null +++ b/sys-libs/libspe2/libspe2-2.2.80_p95-r1.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libspe2/libspe2-2.2.80_p95-r1.ebuild,v 1.1 2007/10/27 11:56:31 lu_zero Exp $ +inherit eutils + +MY_P=${P/_p/-} + +DESCRIPTION="A wrapper library to adapt the JSRE SPU usage model to SPUFS" +HOMEPAGE="http://sourceforge/projects/libspe" +SRC_URI="mirror://sourceforge/libspe/${MY_P}.tar.gz" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="~ppc ~ppc64" +IUSE="debug" + +S="${WORKDIR}/${P//_p*}" + +DEPEND="" +# This packages also provides libspe1 +RDEPEND="!sys-libs/libspe" + +export CBUILD=${CBUILD:-${CHOST}} +export CTARGET=${CTARGET:-${CHOST}} + +if [[ ${CTARGET} == ${CHOST} ]] ; then + if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then + export CTARGET=${CATEGORY/cross-} + fi +fi + +if [[ ${CTARGET} == ${CHOST} ]] ; then + SYSROOT="" +else + SYSROOT="/usr/${CTARGET}" +fi + +src_unpack () { + unpack ${A} + #just in case something is missing + cd "${S}" +} + +src_compile() { + myconf="" + use debug && myconf="${myconf} DEBUG=1" + make all elfspe-all CROSS="${CTARGET}-" \ + prefix=/usr SYSROOT="$SYSROOT" ${myconf} \ + speinclude=/usr/spu-elf/include +} + +src_install() { + make CROSS="${CTARGET}-" prefix=/usr \ + speinclude=/usr/spu-elf/include \ + SYSROOT="$SYSROOT" \ + DESTDIR="$D" install elfspe-install + newinitd "${FILESDIR}/spe.rc6" elfspe +} + +pkg_postinst() { + einfo "You may want to register elfspe to binfmt using the" + einfo "provided initscript" + einfo "# rc-update add elfspe boot" + ewarn "make sure your fstab contains the following line" + ewarn "none /spu spufs defaults + 0 0" + ewarn "and that you have spufs support enabled in the kernel" +} |