blob: c9284f2f08a748020a7679225217a33b40d6e376 (
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
40
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils autotools
DESCRIPTION="Library to connect to the Nintendo Wii remote"
HOMEPAGE="http://libwiimote.sourceforge.net"
SRC_URI="mirror://sourceforge/${PN}/${P}.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="examples tilt force"
RDEPEND="net-wireless/bluez-libs
net-wireless/bluez-utils"
DEPEND="${RDEPEND}
dev-util/pkgconfig"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${PN}-amd64.patch"
epatch "${FILESDIR}/${PN}-as-needed.patch"
use "tilt" || sed -i -e "s:-D_ENABLE_TILT::" config.mk.in
use "force" || sed -i -e "s:-D_ENABLE_FORCE::" config.mk.in
eautoreconf || die "eautoreconf failed"
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc AUTHORS NEWS README TODO
if use examples; then
dodoc test/test?.c
fi
}
|