/[gentoo-x86]/sys-libs/libspe2/libspe2-2.3.0_p135.ebuild
Gentoo

Contents of /sys-libs/libspe2/libspe2-2.3.0_p135.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri Dec 26 14:58:21 2008 UTC (4 years, 4 months ago) by josejx
Branch: MAIN
Marked 2.2.80_p95 stable on ppc/ppc64. Added 2.3.0.135.
(Portage version: 2.1.4.5)

1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-libs/libspe2/libspe2-2.2.80_p95-r1.ebuild,v 1.2 2007/12/12 01:35:33 lu_zero Exp $
4 inherit eutils
5
6 MY_P=${P/_p/.}
7
8 DESCRIPTION="A wrapper library to adapt the JSRE SPU usage model to SPUFS"
9 HOMEPAGE="http://sourceforge/projects/libspe"
10 SRC_URI="mirror://sourceforge/libspe/${MY_P}.tar.gz"
11
12 LICENSE="LGPL-2"
13 SLOT="0"
14 KEYWORDS="~ppc ~ppc64"
15 IUSE="debug"
16
17 S="${WORKDIR}/${P/_p*//}"
18
19 DEPEND=""
20 # This packages also provides libspe1
21 RDEPEND="!sys-libs/libspe"
22
23 export CBUILD=${CBUILD:-${CHOST}}
24 export CTARGET=${CTARGET:-${CHOST}}
25
26 if [[ ${CTARGET} == ${CHOST} ]] ; then
27 if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then
28 export CTARGET=${CATEGORY/cross-}
29 fi
30 fi
31
32 if [[ ${CTARGET} == ${CHOST} ]] ; then
33 SYSROOT=""
34 else
35 SYSROOT="/usr/${CTARGET}"
36 fi
37
38 src_unpack () {
39 unpack ${A}
40 #just in case something is missing
41 cd "${S}"
42 echo "${S}"
43 }
44
45 src_compile() {
46 myconf=""
47 use debug && myconf="${myconf} DEBUG=1"
48 make all elfspe-all CROSS="${CTARGET}-" \
49 prefix=/usr SYSROOT="$SYSROOT" ${myconf} \
50 speinclude=/usr/spu-elf/include || die
51 }
52
53 src_install() {
54 make CROSS="${CTARGET}-" prefix=/usr \
55 speinclude=/usr/spu-elf/include \
56 SYSROOT="$SYSROOT" \
57 DESTDIR="$D" install elfspe-install || die
58 newinitd "${FILESDIR}/spe.rc6" elfspe
59 }
60
61 pkg_postinst() {
62 einfo "You may want to register elfspe to binfmt using the"
63 einfo "provided initscript"
64 einfo "# rc-update add elfspe boot"
65 ewarn "make sure your fstab contains the following line"
66 ewarn "none /spu spufs defaults
67 0 0"
68 ewarn "and that you have spufs support enabled in the kernel"
69 }

  ViewVC Help
Powered by ViewVC 1.1.13