# -*- 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                xscorch
version             0.2.1
revision            1
categories          games
maintainers         nomaintainer
license             GPL-2

description         multiplayer tank shoot-em-up game

long_description    XScorch is a clone of the olden-days DOS game Scorch. \
                    It is an extremely addictive war game where any mixture \
                    of human and computer AIs control separate tanks (teams \
                    are possible) and attempt to blow up or arrange to blow \
                    up the other tanks on the field.  The last tank on the \
                    field is the winner.

homepage            http://www.xscorch.org/
master_sites        ${homepage}releases/

checksums           rmd160  ac8688e40162834db064c2aa18f904748ef56d0e \
                    sha256  a315f7001a020c6b8f644db1c1dc56ccfbb9e3efcbf12c41ac9eb4e5e75cb5f7 \
                    size    849773

depends_build       path:bin/pkg-config:pkgconfig

depends_lib         path:lib/pkgconfig/gtk+-2.0.pc:gtk2 \
                    port:libmikmod

patchfiles          change-echo-n-to-printf.patch \
                    implicit.patch \
                    overlapping-memcpy.diff

if {![string match *gcc* ${configure.compiler}]} {
    patchfiles-append \
                    no-thread-jumps.patch
}

configure.args      --mandir=${prefix}/share/man \
                    --disable-warn \
                    --disable-network \
                    --enable-opt

configure.cppflags-append \
                    -D__ALLOW_DEPRECATED_GDK__

installs_libs       no

livecheck.type      regex
livecheck.url       [lindex ${master_sites} 0]
livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}
