Boswars version 2.5 - How to Download and Install on Mac OS X
Saturday the 7th of November, 2009

    boswars  most recent diff


    version 2.5

      View the most recent changes for the boswars port at: boswars.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for boswars.
      The raw portfile for boswars 2.5 is located here:
      http://boswars.darwinports.com/dports/games/boswars/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/boswars


      The boswars Portfile 58210 2009-09-24 06:56:08Z ryandesign macports.org $

      PortSystem 1.0

      Name: boswars
      Version: 2.5
      Category: games
      Platform: darwin
      Maintainers: simon openmaintainer
      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/
      Checksums: md5 9d280d086ccf81119f40bde98eb9a795 sha1 7305eaea67a0df8dd689df821573dab17e8de01a rmd160 dc42410f3d89c588b579ee7c0d47627c5d455362
      distname ${name}-${version}-src

      depends_build port:scons

      depends_lib port:libogg port:libpng path:lib/pkgconfig/sdl.pc:libsdl port:libtheora port:libvorbis port:lua port:zlib

      Patch Files: patch-SConstruct.diff patch-build_options.py.diff patch-engine_video_graphic.cpp.diff

      configure {
      reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/build_options.py
      }

      build {
      # Use scons to build boswars.
      system "cd ${worksrcpath}; 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}
      }
      }

      post-install {
      ui_msg "****************************************************************"
      ui_msg "* *"
      ui_msg "* Attention! Changing display mode to OpenGL in the settings *"
      ui_msg "* menu may not work and cause an application crash! If this *"
      ui_msg "* happens remove ~/Library/boswars/preferences.lua to reset *"
      ui_msg "* the setting. *"
      ui_msg "* *"
      ui_msg "****************************************************************"
      }

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/boswars
      % sudo port install boswars
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching boswars
      ---> Verifying checksum for boswars
      ---> Extracting boswars
      ---> Configuring boswars
      ---> Building boswars with target all
      ---> Staging boswars into destroot
      ---> Installing boswars
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using boswars with these commands:
      %  man boswars
      % apropos boswars
      % which boswars
      % locate boswars

     Where to find more information:

    Darwin Ports



    Lightbox this page.