# -*- 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 # $Id$ PortSystem 1.0 PortGroup cmake 1.0 PortGroup cxx11 1.0 name widelands version build18 categories games platforms darwin maintainers nomaintainer license GPL-2+ description open-source real-time strategy game inspired by Settlers long_description Widelands is an open-source real-time strategy game. It \ is built upon the SDL and other open source libraries and \ is (and will always be) under heavy development. If you \ knew Settlers I & II™ (© Bluebyte), then you already have \ a rough idea what Widelands is all about because \ widelands is heavily inspired by those two games. homepage http://wl.widelands.org/ master_sites https://launchpad.net/${name}/${version}/build-18/+download/ use_bzip2 yes distfiles ${distname}-src${extract.suffix} worksrcdir ${distname}-src/ checksums rmd160 9af8cf7b8108475bec23ac94c2ac05f4d9a60d67 \ sha256 6dffd9178f93ff7a9c3c0c9b31b7d3b8eb060c79fbd98901e6311837390b7de3 depends_lib port:libsdl \ port:libsdl_image \ port:libsdl_mixer \ port:libsdl_net \ port:libsdl_ttf \ port:libsdl_gfx \ port:boost \ port:glew \ port:lua51 cmake.out_of_source yes configure.env LUA_DIR=${prefix}/lib/lua-5.1 configure.args -DLUA_INCLUDE_DIR="${prefix}/include/lua-5.1" -DCMAKE_INSTALL_PREFIX:PATH="${applications_dir}/Widelands.app/Contents/MacOS" pre-destroot { xinstall -d ${destroot}${applications_dir}/Widelands.app/Contents/Resources \ ${destroot}${applications_dir}/Widelands.app/MacOS file copy ${worksrcpath}/pics/widelands.icns ${destroot}${applications_dir}/Widelands.app/Contents/Resources/widelands.icns set data " {\n\ CFBundleName = widelands;\n\ CFBundleDisplayName = Widelands;\n\ CFBundleIdentifier = \"org.widelands.wl\";\n\ CFBundleVersion = ${version};\n\ \"CFBundleInfoDictionaryVersion\" = \"6.0\";\n\ CFBundlePackageType = APPL;\n\ CFBundleSignature = \"????\";\n\ CFBundleExecutable = widelands;\n\ CFBundleIconFile = \"widelands.icns\";\n\ }" set filename "${destroot}${applications_dir}/Widelands.app/Contents/Info.plist" set fileId [open $filename "w"] puts -nonewline $fileId $data close $fileId } notes \ "On some systems, Widelands might demonstrate button artifacts or other visual \ \nanomalies. If this occurs, consider editing ~/.widelands/config to change \ \nthe opengl setting to opengl=\"false.\""