# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
# This ebuild come from http://forums.gentoo.org/viewtopic-t-463875.html - The site http://gentoo.zugaina.org/ only host a copy.

inherit games

DESCRIPTION="X-Moto is a challenging 2D motocross platform game"
HOMEPAGE="http://xmoto.sourceforge.net"
SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.gz"
RESTRICT="nomirror"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""

DEPEND="${RDEPEND}"
RDEPEND="media-libs/libsdl
        media-libs/sdl-mixer
        media-libs/jpeg
        media-libs/libpng
        sys-libs/zlib
        dev-lang/lua
        dev-games/ode
        net-misc/curl"

src_install() {
        make DESTDIR="${D}" install || die "install failed"
        make_desktop_entry xmoto Xmoto xmoto
}
