# -*- 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 boost 1.0 PortGroup github 1.0 PortGroup app 1.0 cmake.build_type Release name widelands categories games platforms {darwin != 11.*} maintainers nomaintainer license GPL-2+ homepage https://widelands.org/ description open-source real-time strategy game inspired by Settlers # https://trac.macports.org/ticket/61029 depends_build-append port:cctools depends_lib port:libsdl2 \ port:libsdl2_image \ port:libsdl2_mixer \ port:libsdl2_ttf \ path:bin/doxygen:doxygen \ port:gettext \ path:lib/pkgconfig/icu-uc.pc:icu \ port:libpng \ port:glew \ port:lua \ port:zlib subport ${name}-devel {} if {${subport} eq ${name}} { # release github.setup widelands widelands 1.0 v revision 4 checksums rmd160 a4ffc1caab439293efd5fb8f77e6458245f305d4 \ sha256 9171b15220368e1b7146272fa98f3d1192acbd946c7ec2ed269676883e8055a8 \ size 792144061 conflicts ${name}-devel long_description ${description}: \ Widelands is a real-time strategy game with singleplayer campaigns and a multiplayer mode. The game was inspired by Settlers II™ (© Bluebyte) but has significantly more variety and depth to it. } else { # devel github.setup widelands widelands 59494d191032bd961327fb7e4452ac3d09383485 version 20210615 revision 4 checksums rmd160 a4ffc1caab439293efd5fb8f77e6458245f305d4 \ sha256 9171b15220368e1b7146272fa98f3d1192acbd946c7ec2ed269676883e8055a8 \ size 792144061 conflicts ${name} long_description ${description}: \ This port follows the master version of ${name}, which is typically updated every few weeks. } compiler.cxx_standard 2011 configure.args-append -DCMAKE_INSTALL_PREFIX:PATH="${applications_dir}/Widelands.app/Contents/MacOS" \ -DWL_INSTALL_DATADIR:PATH="${applications_dir}/Widelands.app/Contents/Resources" patchfiles-append patch-widelands-disable-werror-deprecated.diff # Note that case-sensitive filesystems may end up with an extra copy # of the widelands binary (widelands and Widelands). But it's only 12MB # out 1GB of installed files. app.name Widelands app.icon ${worksrcpath}/data/images/logos/widelands.icns app.identifier org.widelands.wl app.executable ${workpath}/build/src/widelands