summaryrefslogtreecommitdiff
blob: 1de63714c0210d1b3315573c17876b5b1c1a9221 (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
38
39
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION="Wifi for Nintendo DS Homebrew Development"
HOMEPAGE="http://akkit.org/dswifi/"
SRC_URI="mirror://sourceforge/devkitpro/dswifi-src-${PV}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""

DEPEND=">=dev-util/devkitarm-bin-21
		>=dev-libs/libnds-20071023"
RDEPEND="${DEPEND}"

S=${WORKDIR}
RESTRICT="strip"

DEVKITPRO=/opt/devkitpro

src_compile() {
	local DEVKITARM=${DEVKITPRO}/devkitARM
	local PATH=${PATH}:"${DEVKITARM}/bin"
	emake || die "make failed"
}

src_install() {
	local INSTDIR=/opt/devkitpro/libnds

	# libs installation
	insinto "${INSTDIR}"/lib
	doins lib/*.a

	# headers installation
	insinto "${INSTDIR}"
	doins -r include/
}