1 # Copyright 1999-2012 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"
18 RDEPEND="net-wireless/bluez"
22 epatch "${FILESDIR}"/${PN}-{amd64,as-needed,include,hci}.patch
23 use "tilt" || sed -i -e "s:-D_ENABLE_TILT::" config.mk.in
24 use "force" || sed -i -e "s:-D_ENABLE_FORCE::" config.mk.in
29 emake DESTDIR="${D}" install || die "emake install failed"
30 dodoc AUTHORS NEWS README TODO || die "dodoc failed"
34 dodoc test/test?.c || die "dodoc examples failed"