1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit eutils autotools
9 DESCRIPTION="Library to connect to the Nintendo Wii remote"
10 HOMEPAGE="http://libwiimote.sourceforge.net"
11 SRC_URI="mirror://sourceforge/${PN}/${P}.tgz"
15 KEYWORDS="~amd64 ~x86"
16 IUSE="examples force tilt"
19 || ( net-wireless/bluez
20 ( >=net-wireless/bluez-libs-3
21 net-wireless/bluez-utils ) )"
25 epatch "${FILESDIR}"/${PN}-{amd64,as-needed,include,hci}.patch
26 use "tilt" || sed -i -e "s:-D_ENABLE_TILT::" config.mk.in
27 use "force" || sed -i -e "s:-D_ENABLE_FORCE::" config.mk.in
32 emake DESTDIR="${D}" install || die "emake install failed"
33 dodoc AUTHORS NEWS README TODO || die "dodoc failed"
37 dodoc test/test?.c || die "dodoc examples failed"