blob: b0b5c41a1abc52e654147ca1b6761d89f7ecb664 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-util/joystick/joystick-20060731.ebuild,v 1.7 2010/08/12 16:56:49 mr_bones_ Exp $
EAPI=2
inherit eutils toolchain-funcs
DESCRIPTION="joystick testing utilities"
HOMEPAGE="http://atrey.karlin.mff.cuni.cz/~vojtech/input/"
SRC_URI="mirror://gentoo/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc x86"
IUSE="sdl"
DEPEND="sdl? ( media-libs/libsdl[video] )
!x11-libs/tslib"
S=${WORKDIR}/utils
src_prepare() {
epatch \
"${FILESDIR}"/joystick-MCS-defines.patch \
"${FILESDIR}"/joystick-jstest-segv.patch \
"${FILESDIR}"/${P}-asneeded.patch
sed -i \
-e '/^CC/d' \
Makefile \
|| die 'sed failed'
}
src_compile() {
local SDL
tc-export CC
use sdl && SDL=1 || SDL=0
emake SDL=${SDL} || die "emake failed"
emake inputattach || die "inputattach failed"
}
src_install() {
dobin $(find . -type f -a -perm +1) || die "dobin"
dodoc README
}
|