# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Replacement for the libndofdev library used by the Second Life client to handle joysticks and the 6DOF devices on Windows and Macs." HOMEPAGE="http://janoc.byethost5.com/archives/74" SRC_URI="http://janoc.byethost5.com/files/software/linux/spacenav/libndofdev-0.3.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" RESTRICT="mirror" RDEPEND="media-libs/libsdl" DEPEND="${RDEPEND}" src_compile() { # add SpaceExplorer support sed -i -e 's:ID.product == 0xc626) || // SpaceNavigators:ID.product == 0xc626) || // SpaceNavigators\n (ID.product == 0xc627) || // SpaceExplorer (untested):' "${WORKDIR}/libndofdev/ndofdev.c" cd libndofdev make CFLAGS="${CFLAGS}"|| die "emake failed" } src_install() { dolib.a libndofdev/libndofdev.a || die "install failed" insinto usr/include doins libndofdev/ndofdev_external.h }