/[gentoo-x86]/games-util/joystick/joystick-0_pre20060731.ebuild
Gentoo

Contents of /games-util/joystick/joystick-0_pre20060731.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Thu Jun 14 14:45:16 2012 UTC (2 years, 1 month ago) by xmw
Branch: MAIN
Changes since 1.2: +2 -2 lines
ppc stable (bug 403233)

(Portage version: 2.1.10.65/cvs/Linux x86_64)

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

  ViewVC Help
Powered by ViewVC 1.1.20