summaryrefslogtreecommitdiff
blob: 9c462e2af80009e527ce77ab731d377ab6c1dfc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION="Nintendo DS Libraries for devkitPro ARM"
HOMEPAGE="http://devkitpro.org/"
SRC_URI="mirror://sourceforge/devkitpro/${PN}-src-${PV}.tar.bz2"

LICENSE="as-is"
SLOT="0"
KEYWORDS="~x86"
IUSE=""

DEPEND="dev-util/devkitarm-bin"
RDEPEND=${DEPEND}

S=${WORKDIR}
RESTRICT="strip"

src_compile() {
	export DEVKITPRO=/opt/devkitpro
	export DEVKITARM=${DEVKITPRO}/devkitARM

	local PATH=${PATH}:${DEVKITARM}/bin
	emake -j1 || die "make failed"
}

src_install() {
	insinto "${DEVKITPRO}"/libnds
	into "${DEVKITPRO}"/libnds

	# libs installation
	dolib.a lib/*.a || die "lib.a files installation failed"

	# headers installation
	doins -r include/ || die "include files installation failed"
}