# -*- 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.67 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  e2fae0dae75d3a9103e5be64372d50fe050c54e5 \
                    sha256  4e88cf1916bf4d7c304b551ddb91fb9194f110bad4663038ca73d31b939d69e3 \
                    size    4127698

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.
"
