1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit eutils autotools
7 DESCRIPTION="Library to connect to the Nintendo Wii remote"
8 HOMEPAGE="http://libwiimote.sourceforge.net"
9 SRC_URI="mirror://sourceforge/${PN}/${P}.tgz"
13 KEYWORDS="~amd64 ~x86"
14 IUSE="examples force tilt"
16 RDEPEND="net-wireless/bluez-libs
17 net-wireless/bluez-utils"
24 epatch "${FILESDIR}/${PN}-amd64.patch"
25 epatch "${FILESDIR}/${PN}-as-needed.patch"
27 use "tilt" || sed -i -e "s:-D_ENABLE_TILT::" config.mk.in
28 use "force" || sed -i -e "s:-D_ENABLE_FORCE::" config.mk.in
38 emake || die "emake failed"
42 emake DESTDIR="${D}" install || die "emake install failed"
43 dodoc AUTHORS NEWS README TODO