/[gentoo-x86]/sys-libs/libspe2/libspe2-2.2.80_p95-r1.ebuild
Gentoo

Contents of /sys-libs/libspe2/libspe2-2.2.80_p95-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Fri Dec 26 14:58:21 2008 UTC (5 years, 10 months ago) by josejx
Branch: MAIN
Changes since 1.2: +3 -3 lines
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 }
43
44 src_compile() {
45 myconf=""
46 use debug && myconf="${myconf} DEBUG=1"
47 make all elfspe-all CROSS="${CTARGET}-" \
48 prefix=/usr SYSROOT="$SYSROOT" ${myconf} \
49 speinclude=/usr/spu-elf/include || die
50 }
51
52 src_install() {
53 make CROSS="${CTARGET}-" prefix=/usr \
54 speinclude=/usr/spu-elf/include \
55 SYSROOT="$SYSROOT" \
56 DESTDIR="$D" install elfspe-install || die
57 newinitd "${FILESDIR}/spe.rc6" elfspe
58 }
59
60 pkg_postinst() {
61 einfo "You may want to register elfspe to binfmt using the"
62 einfo "provided initscript"
63 einfo "# rc-update add elfspe boot"
64 ewarn "make sure your fstab contains the following line"
65 ewarn "none /spu spufs defaults
66 0 0"
67 ewarn "and that you have spufs support enabled in the kernel"
68 }

  ViewVC Help
Powered by ViewVC 1.1.20