diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2010-06-03 16:10:27 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2010-06-03 16:10:27 +0000 |
commit | d45890b07443e992613c7d5cc49a5e8e37013df7 (patch) | |
tree | 47e9cadfbecd4c41b3ab304c22ed96ebaaa37ead /games-misc/sdljoytest/sdljoytest-11102003.ebuild | |
parent | GCC-4.5 patch wrt bug #322217 (diff) | |
download | gentoo-2-d45890b07443e992613c7d5cc49a5e8e37013df7.tar.gz gentoo-2-d45890b07443e992613c7d5cc49a5e8e37013df7.tar.bz2 gentoo-2-d45890b07443e992613c7d5cc49a5e8e37013df7.zip |
EAPI=2; add use deps; honor CC; tidy
(Portage version: 2.1.8.3/cvs/Linux i686)
Diffstat (limited to 'games-misc/sdljoytest/sdljoytest-11102003.ebuild')
-rw-r--r-- | games-misc/sdljoytest/sdljoytest-11102003.ebuild | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/games-misc/sdljoytest/sdljoytest-11102003.ebuild b/games-misc/sdljoytest/sdljoytest-11102003.ebuild index cfbe3e213ee7..7bdb399c4109 100644 --- a/games-misc/sdljoytest/sdljoytest-11102003.ebuild +++ b/games-misc/sdljoytest/sdljoytest-11102003.ebuild @@ -1,6 +1,9 @@ -# Copyright 1999-2005 Gentoo Foundation +# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-misc/sdljoytest/sdljoytest-11102003.ebuild,v 1.2 2005/07/21 07:52:44 dholm Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-misc/sdljoytest/sdljoytest-11102003.ebuild,v 1.3 2010/06/03 16:10:27 mr_bones_ Exp $ + +EAPI=2 +inherit toolchain-funcs DESCRIPTION="SDL app to test joysticks and game controllers" HOMEPAGE="http://sdljoytest.sourceforge.net/" @@ -11,15 +14,13 @@ SLOT="0" KEYWORDS="~amd64 ~ppc ~x86" IUSE="" -DEPEND="media-libs/libsdl +DEPEND="media-libs/libsdl[joystick,video] virtual/opengl media-libs/sdl-image" S=${WORKDIR}/SDLJoytest-GL -src_unpack() { - unpack ${A} - cd "${S}" +src_prepare() { make clean || die "cleaning" sed -i \ -e 's:/usr/local:/usr:' \ @@ -28,6 +29,7 @@ src_unpack() { src_compile() { emake \ + CC=$(tc-getCC) \ CFLAGS="$(sdl-config --cflags) ${CFLAGS}" \ LDFLAGS="$(sdl-config --libs) -lGL ${LDFLAGS}" \ || die @@ -38,5 +40,4 @@ src_install() { insinto /usr/share/SDLJoytest-GL doins *.bmp || die "data" doman SDLJoytest.1 - dodoc README } |