# -*- 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 github 1.0 PortGroup cmake 1.1 PortGroup legacysupport 1.1 PortGroup compiler_blacklist_versions 1.0 github.setup ihhub fheroes2 1.1.5 # Change github.tarball_from to 'releases' or 'archive' next update github.tarball_from tarball categories games maintainers {@oleg-derevenetz gmail.com:oleg.derevenetz} openmaintainer license GPL-2 description Free implementation of Heroes of Might and Magic II game engine long_description \ {*}${description} homepage https://ihhub.github.io/fheroes2/ checksums rmd160 7ca38bc30f03e66ca3dc9180b7b857d7ed4f849c \ sha256 c14c7712b0953597c5c425f8d926137ab4113afacfa4e301905b44454e42d21a \ size 12305240 depends_build-append \ port:gettext depends_lib port:libsdl2 \ port:libsdl2_mixer \ port:zlib depends_run port:innoextract patchfiles patch-readme-txt.diff compiler.cxx_standard \ 2017 compiler.thread_local_storage \ yes compiler.blacklist-append \ {clang < 900} # On macOS < 10.15 built-in libc++ has no support for std::filesystem legacysupport.newest_darwin_requires_legacy \ 18 # GCC can be enforced instead of Clang if {[string match *clang* ${configure.compiler}]} { legacysupport.use_mp_libcxx \ yes } post-destroot { copy ${destroot}${prefix}/share/doc/fheroes2/demo/download_demo_version.sh ${destroot}${prefix}/bin/fheroes2-install-demo copy ${destroot}${prefix}/share/doc/fheroes2/homm2/extract_homm2_resources.sh ${destroot}${prefix}/bin/fheroes2-extract-resources } notes " You will need to have a demo version or the full version of Heroes of Might and Magic II game to be able to play. If you do not have the original Heroes of Might and Magic II game, type the following command: fheroes2-install-demo This script will download and install all the necessary files from the demo version of the original Heroes of Might and Magic II game. If you have a legally purchased copy of the original game, type the following command: fheroes2-extract-resources This script will extract all the necessary resource files from the original Heroes of Might and Magic II game. As an alternative to the previous step, you can manually copy the subdirectories 'ANIM', 'DATA', 'MAPS' and 'MUSIC' (some of them may be missing depending on the version of the original game) from the original game directory to the '.fheroes2' subdirectory of your home directory. When all prerequisites are in place, you can start the game by typing: fheroes2 Please visit project website: ${homepage} and read ${prefix}/share/doc/fheroes2/README.txt for more information. "