# -*- 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           cmake   1.1
PortGroup           github  1.0

github.setup        CorsixTH CorsixTH 0.69.1 v
github.tarball_from archive
name                corsixth
revision            0

description         Open source clone of Theme Hospital

long_description    \
    A reimplementation of the 1997 Bullfrog business sim Theme Hospital. As \
    well as faithfully recreating the original, CorsixTH adds support for \
    modern operating systems, high resolutions and much more.

categories          games
installs_libs       no
license             MIT
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

checksums           rmd160  d9fed77ab1d50a6a0400f2d4cbe4c10f736a8267 \
                    sha256  08eec141bdd8adf265f341a8452601f844a3eaab0378535b2655198fd373a7f8 \
                    size    4323450

patchfiles-append   patch-cmakelists.txt.diff

cmake.install_prefix \
                    ${applications_dir}

depends_lib-append  \
                    path:lib/freetype.dylib:freetype \
                    path:lib/libiconv.2.dylib:libiconv \
                    path:lib/libavcodec.dylib:ffmpeg \
                    port:bzip2 \
                    port:libsdl2 \
                    port:libsdl2_mixer \
                    port:lua53 \
                    port:lua53-luafilesystem \
                    port:lua53-lpeg \
                    port:zlib

notes "
    CorixTH is now available in your Applications/MacPorts directory (${applications_dir})

    You will also need a copy of the game data from the original Theme Hospital game.
"

github.livecheck.regex \
                    {([0-9.]+)}
