# -*- 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
PortGroup           app 1.0

name                bzflag
version             2.4.26
revision            1
categories          games
maintainers         {allejo.io:me @allejo} openmaintainer
license             {LGPL-2.1 MPL-2}

description         3D tank game, multiplayer and internet gaming available
long_description    BZFlag is a free multiplayer multiplatform 3D tank \
                    battle game. The name stands for Battle Zone capture Flag.

homepage            https://www.bzflag.org/
master_sites        https://download.bzflag.org/bzflag/source/${version}/
use_bzip2           yes

checksums           rmd160  2aa5256083f20845b8bfddb3f7c3db7991324682 \
                    sha256  01830405ff26ad1dc595a7e0695c824c2786e678868d9ff822aeb14ac7481014 \
                    size    14107130

depends_build       port:pkgconfig
depends_lib         port:c-ares \
                    port:curl \
                    port:glew \
                    port:libsdl2 \
                    port:ncurses \
                    port:zlib

patchfiles          dynamic_lookup-11.patch

compiler.cxx_standard 2011

configure.args      --libdir=${prefix}/lib/${name} \
                    --disable-sdltest

app.name            BZFlag
app.icon            data/bzflag-256x256.png

livecheck.url       https://download.bzflag.org/bzflag/source/
livecheck.regex     {(\d+(?:\.(?:\d|\w)+)*)/}
