| # Copyright 1999-2012 Gentoo Foundation |
| # Distributed under the terms of the GNU General Public License v2 |
| # $Header: /var/cvsroot/gentoo-x86/games-util/joystick/joystick-1.4.2.ebuild,v 1.4 2012/04/15 16:53:35 maekke Exp $ |
| |
| EAPI="4" |
| |
| inherit eutils toolchain-funcs |
| |
| MY_P="linuxconsoletools-${PV}" |
| DESCRIPTION="joystick testing utilities" |
| HOMEPAGE="http://sourceforge.net/projects/linuxconsole/ http://atrey.karlin.mff.cuni.cz/~vojtech/input/" |
| SRC_URI="mirror://sourceforge/linuxconsole/files/${MY_P}.tar.bz2" |
| |
| LICENSE="GPL-2" |
| SLOT="0" |
| KEYWORDS="*" |
| IUSE="sdl" |
| |
| DEPEND="sdl? ( media-libs/libsdl[video] ) |
| !<x11-libs/tslib-1.0-r2" |
| RDEPEND="${DEPEND}" |
| |
| S=${WORKDIR}/${MY_P} |
| |
| src_prepare() { |
| epatch "${FILESDIR}"/${P}-build.patch |
| export PREFIX=/usr |
| } |
| |
| src_compile() { |
| tc-export CC PKG_CONFIG |
| export USE_SDL=$(usex sdl) |
| emake |
| } |