You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.2 KiB
49 lines
1.2 KiB
13 years ago
|
# Copyright 1999-2011 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
# $Header: /var/cvsroot/gentoo-x86/games-util/xboxdrv/xboxdrv-0.7.1.ebuild,v 1.3 2011/04/11 14:19:09 phajdan.jr Exp $
|
||
|
|
||
|
EAPI=2
|
||
|
inherit scons-utils toolchain-funcs linux-info
|
||
|
|
||
|
MY_P=${PN}-linux-${PV}
|
||
|
DESCRIPTION="Userspace Xbox 360 Controller driver"
|
||
|
HOMEPAGE="http://pingus.seul.org/~grumbel/xboxdrv/"
|
||
|
SRC_URI="http://pingus.seul.org/~grumbel/xboxdrv/${MY_P}.tar.bz2"
|
||
|
|
||
|
LICENSE="GPL-3"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="amd64 x86"
|
||
|
IUSE=""
|
||
|
|
||
|
RDEPEND="dev-libs/boost
|
||
|
sys-fs/udev
|
||
|
virtual/libusb:1
|
||
|
x11-libs/libX11"
|
||
|
DEPEND="${RDEPEND}
|
||
|
dev-util/pkgconfig"
|
||
|
|
||
|
S=${WORKDIR}/${MY_P}
|
||
|
|
||
|
CONFIG_CHECK="~INPUT_EVDEV ~INPUT_JOYDEV ~INPUT_UINPUT ~!JOYSTICK_XPAD"
|
||
|
|
||
|
src_compile() {
|
||
|
escons \
|
||
|
BUILD=custom \
|
||
|
CXX="$(tc-getCXX)" \
|
||
|
CXXFLAGS="-Wall ${CXXFLAGS}" \
|
||
|
LINKFLAGS="${LDFLAGS}" \
|
||
|
|| die "scons failed"
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
dobin xboxdrv || die "dobin failed"
|
||
|
|
||
|
insinto /etc/hal/fdi/policy
|
||
|
newins hal/xboxdrv_policy.fdi 99-xboxdrv.fdi || die "newins failed"
|
||
|
insinto /etc/hal/fdi/preprobe
|
||
|
newins hal/xboxdrv_preprobe.fdi 99-xboxdrv.fdi || die "newins failed"
|
||
|
|
||
|
doman doc/xboxdrv.1
|
||
|
dodoc AUTHORS NEWS PROTOCOL README TODO
|
||
|
}
|