# $Id: Portfile 50763 2009-05-08 23:20:13Z raimue@macports.org $

PortSystem 1.0

name            xmoto
version         0.5.1
categories      games
platforms       macosx
maintainers     raimue

description     X-Moto is a challenging 2D motocross platform game
long_description \
                X-Moto is a challenging 2D motocross platform game, where \
                physics plays an all important role in the gameplay. You need \
                to control your bike to its limits, if you want to have a \
                chance to finish the most difficult challenges.

homepage        http://xmoto.tuxfamily.org/
master_sites    http://download.tuxfamily.org/xmoto/xmoto/${version}/xmoto-${version}-src.tar.gz

checksums       md5     10cb822ec8c2c7e9466806633e69be1f \
                sha1    36bac38d9f87ffbba337a0589de87b5408d734e8 \
                rmd160  648a6395f7fe979480c2df50f136352de5c13773

depends_build   bin:grep:grep

depends_lib     port:libpng \
                port:jpeg \
                port:libsdl \
                port:libsdl_mixer \
                port:libsdl_ttf \
                port:libsdl_net \
                port:lua \
                port:ode \
                port:sqlite3 \
                port:bzip2 \
                port:curl

configure.args-append --with-apple-opengl-framework

livecheck.check regex
livecheck.regex {XMoto ([\d.]+) released}
