# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0

name                cannonsmash
version             0.6.6
revision            4
categories          games
maintainers         nomaintainer
license             GPL-2+

description         3D tabletennis game
long_description    ${description}

platforms           darwin

homepage            http://cannonsmash.sourceforge.net/
master_sites        sourceforge:project/cannonsmash/CannonSmash/${version}
distname            csmash-${version}

checksums           md5 bcf2eddd0f04d58e5dac6d767f41d9af

depends_build       port:pkgconfig

depends_lib         port:libsdl_mixer port:libsdl_image \
                    path:lib/pkgconfig/gtk+-2.0.pc:gtk2 port:mesa port:libGLU port:xorg-libXmu

patchfiles          patch-BallView.h.diff \
                    patch-configure.in.diff \
                    patch-loadparts.cpp.diff \
                    patch-matrix.diff

use_autoreconf      yes
autoreconf.args     -fvi

configure.args      --disable-sdltest \
                    --x-includes=${prefix}/include \
                    --x-libraries=${prefix}/lib

livecheck.type      regex
livecheck.url       ${homepage}
livecheck.regex     {version ([\d.]+).*released}
