diff options
author | 2010-03-23 16:01:03 +0000 | |
---|---|---|
committer | 2010-03-23 16:01:03 +0000 | |
commit | a5fffc136092d4018caac8ddb69ccfcac2f7562b (patch) | |
tree | 795dc881031d0c7d4b977ba4dff6abac686a2109 /games-sports/speed-dreams/speed-dreams-1.4.0_rc1.ebuild | |
parent | Bump EAPI, switch to xorg-2.eclass, add prefix keywords (diff) | |
download | gentoo-2-a5fffc136092d4018caac8ddb69ccfcac2f7562b.tar.gz gentoo-2-a5fffc136092d4018caac8ddb69ccfcac2f7562b.tar.bz2 gentoo-2-a5fffc136092d4018caac8ddb69ccfcac2f7562b.zip |
Initial commit wrt #298182 by Kirin Yuri and Piotr Szymaniak with -Wl,--as-needed patch by Kacper Kowalik.
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'games-sports/speed-dreams/speed-dreams-1.4.0_rc1.ebuild')
-rw-r--r-- | games-sports/speed-dreams/speed-dreams-1.4.0_rc1.ebuild | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/games-sports/speed-dreams/speed-dreams-1.4.0_rc1.ebuild b/games-sports/speed-dreams/speed-dreams-1.4.0_rc1.ebuild new file mode 100644 index 000000000000..c57aa9322790 --- /dev/null +++ b/games-sports/speed-dreams/speed-dreams-1.4.0_rc1.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-sports/speed-dreams/speed-dreams-1.4.0_rc1.ebuild,v 1.1 2010/03/23 16:01:02 ssuominen Exp $ + +EAPI=2 +inherit autotools eutils versionator games + +DESCRIPTION="A fork of the famous open racing car simulator TORCS" +HOMEPAGE="http://speed-dreams.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P/_/-}-src.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="virtual/opengl + virtual/glu + virtual/glut + >=media-libs/plib-1.8.3 + media-libs/openal + media-libs/freealut + x11-libs/libX11 + x11-libs/libXext + x11-libs/libICE + x11-libs/libSM + x11-libs/libXt + x11-libs/libXi + x11-libs/libXmu + x11-libs/libXxf86vm + x11-libs/libXrender + x11-libs/libXrandr + sys-libs/zlib + >=media-libs/libpng-1.2.40" +DEPEND="${RDEPEND} + x11-proto/xproto + x11-proto/randrproto" + +S=${WORKDIR}/${PN}-$(get_version_component_range 1-3)-src + +# http://sourceforge.net/apps/trac/speed-dreams/ticket/111 +MAKEOPTS="${MAKEOPTS} -j1" + +src_prepare() { + epatch "${FILESDIR}"/${P}-asneeded.patch + + sed -i \ + -e '/ADDCFLAGS/s: -O2::' \ + configure.in || die + sed -i \ + -e '/COPYING/s:=.*:= \\:' \ + Makefile || die + sed -i \ + -e "/^datadir/s:=.*:= ${GAMES_DATADIR}/${PN}:" \ + Make-config.in || die + + eautoreconf +} + +src_configure() { + egamesconf \ + --prefix=/usr \ + --bindir="${GAMES_BINDIR}" \ + --disable-dependency-tracking +} + +src_install() { + emake DESTDIR="${D}" install datainstall || die + + find "${D}" -name Makefile -exec rm -f {} + + + dodoc CHANGES README TODO + + newicon icon.svg ${PN}.svg + make_desktop_entry ${PN} "Speed Dreams" + + prepgamesdirs +} |