# Copyright 1999-2007 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="http://downloads.sourceforge.net/libwiimote/${P}.tgz" LICENSE="GPL" SLOT="0" KEYWORDS="amd64 ~x86" RDEPEND="net-wireless/bluez-libs net-wireless/bluez-utils" IUSE="test doc tilt force" S=${WORKDIR}/${P} src_unpack() { mkdir -p ${S} cd ${WORKDIR} tar -xzf ${DISTDIR}/${P}.tgz cd ${S} cp ${FILESDIR}/libwiimote-amd64.patch ./ patch -p0 < libwiimote-amd64.patch } src_compile() { cd ${S} eautoreconf || die "eautoreconf failed" econf || die "econf failed" emake -j1 || die "emake failed" if use test; then cd src emake || die "emake failed" fi } src_install() { make install DESTDIR=${D} dodoc AUTHORS COPYING NEWS README TODO }