# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 #inherit eutils toolchain-funcs IUSE="sball" MY_PN="FreeWRLduneInputDevice" MY_P="${MY_PN}-${PV}" DESCRIPTION="FreeWRL Dune Input Device: an inputdevice driver for FreeWRL" SRC_URI="http://www.csv.ica.uni-stuttgart.de/vrml/dune/${MY_P}.tar.gz" HOMEPAGE="http://www.csv.ica.uni-stuttgart.de/vrml/dune/FreeWRLduneInputDevice.html" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" S="${WORKDIR}/${MY_P}" DEPEND=" virtual/x11 sball ? (dev-libs/libsball) " RDEPEND=" virtual/x11 media-gfx/freewrl " src_unpack() { unpack ${MY_P}.tar.gz } src_compile() { cd ${S} econf || die "econf failed" emake || die "emake failed" } src_install() { dobin ${MY_PN} doman ${MY_PN}.1 dodir /usr/share/doc/FreeWRLduneInputDevice/ insinto /usr/share/doc/FreeWRLduneInputDevice/ doins commandline_examples/* einfo "This is a inputdevice driver for FreeWRL, based on FreeWRL's '/tmp/inpdev'" einfo "joystick input interface and white_dune's inputdevice mechanism." einfo "Currently supported devices are:" einfo "6D joystick devices" if use sball; then einfo "LabTec Spaceball" fi einfo "Ascension Flock of Birds magnetic headtracker" einfo "Any device supported by the X11 Xinput protocol" einfo "MacOSX USB joystick" einfo einfo "man FreeWRLduneInputDevice" einfo "to see how the joystick works and read the documentation to see some examples" }