# -*- 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 name boswars version 2.6.1 categories games platforms darwin maintainers nomaintainer license GPL-2+ description Bos Wars is a futuristic real time strategy game. long_description Bos Wars is a futuristic real time strategy game (RTS). \ Bos Wars has a dynamic rate based economy. Energy is \ produced by power plants and magma gets pumped from hot \ spots. Buildings and mobile units are also built at a \ continuous rate. Control of larger parts of the map \ creates the potential to increase your economy \ throughput. Holding key points like roads and passages \ allow for different strategies. homepage http://boswars.org/ master_sites ${homepage}dist/releases/ distname ${name}-${version}-src checksums rmd160 f7c41b3c9276d21aab19e93af0de851646dc4bac \ sha256 6003307692bde9913f6b5c227bf351e43e33d44ffaab198f0d0677e8fef86315 depends_build port:scons depends_lib port:libogg \ port:libpng \ port:libsdl \ port:libtheora \ port:libvorbis \ port:lua \ port:zlib license_noconflict scons patchfiles patch-SConstruct.diff \ patch-build_options.py.diff \ patch-engine_video_graphic.cpp.diff post-patch { reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/build_options.py } use_configure no build { system -W ${worksrcpath} "${prefix}/bin/scons debug" } destroot { # Path to the boswars resource directory ${prefix}/share/boswars. set share ${prefix}/share/boswars # Rename the boswars binary to boswars-bin and install it in destroot so a # helper script can be used which automatically sets the path to the # boswars files. move ${worksrcpath}/boswars-debug ${destroot}${prefix}/bin/boswars-bin # Copy the helper script to ${prefix}/bin. xinstall ${portpath}/${filesdir}/boswars ${destroot}${prefix}/bin # Set the correct path to the boswars files in the boswars helper script. reinplace "s|__BOSWARS__|${share}|g" ${destroot}${prefix}/bin/boswars # Create the resource directory in destroot. xinstall -d ${destroot}${share} # Install the boswar files into ${prefix}/share/boswars: set files {campaigns doc graphics intro languages maps scripts sounds \ units} foreach file $files { move ${worksrcpath}/$file ${destroot}${share}/${file} } } notes " Attention! Changing display mode to OpenGL in the settings\ menu may not work and cause an application crash! If this\ happens remove ~/Library/boswars/preferences.lua to reset\ the setting. " livecheck.type regex livecheck.url ${homepage}download.shtml livecheck.regex ${name}-(\[0-9.\]+)-src${extract.suffix}