Rrgbis version 1.12 - How to Download and Install on Mac OS X
Sunday the 22nd of November, 2009

    version 1.12

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


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

      PortSystem 1.0

      Name: rrgbis
      Version: 1.12
      Revision: 1
      set data_version 1.11
      Category: games
      Platform: darwin
      Maintainers: simon openmaintainer
      Description: Real time strategy game with fleets of spaceships.
      Long Description: ${description}

      Homepage: http://rrgbis.sourceforge.net/
      Master Sites: sourceforge
      use_bzip2 yes
      set source rrgbis-${version}-src${extract.suffix}
      set data rrgbis-${data_version}-data${extract.suffix}
      distfiles ${source} ${data}
      Checksums: ${source} md5 14396c77f2b68cf2e5104174c135f4e4 sha1 aa48440907f82fdb99f564fba69084146b9fae59 rmd160 ec7d2f15086125d437179a53e552fd03f16c4539 ${data} md5 abd55dc67686ac99e96f9db2e59b5981 sha1 bbfb809982f3c1a9d39d1685f23bd2e6b9b5599e rmd160 65d9eca5be7c67d3e3c48bf90fb4a5a17f2bada4
      worksrcdir ${name}

      depends_lib port:freetype path:lib/pkgconfig/sdl.pc:libsdl port:libsdl_image port:libsdl_mixer port:libvorbis

      Patch Files: patch-src_GLSDL.cpp.diff patch-Makefile.diff

      pre-patch {
      # Convert files from DOS to UNIX linefeeds before patching.
      reinplace "s/\r$//g" ${worksrcpath}/Makefile
      }
      post-patch {
      # Set the correct path to the installed rrgbis data in the settings file.
      reinplace "s|pwd|${prefix}/share/rrgbis/|g" ${worksrcpath}/settings.dat
      }

      configure.dir ${worksrcpath}/src/FTGL

      build.target default

      destroot {
      # Install the helper script which automatically sets the correct
      # LD_LIBRARY_PATH variable and set the right ${prefix} path.
      xinstall ${portpath}/${filesdir}/rrgbis ${destroot}${prefix}/bin
      reinplace "s|__PREFIX__|${prefix}|g" ${destroot}${prefix}/bin/rrgbis

      # Install the helper setup script which creates ~/.rrgbis and the
      # settings.dat file in it.
      xinstall ${portpath}/${filesdir}/rrgbis-setup ${destroot}${prefix}/bin
      reinplace "s|__PREFIX__|${prefix}|g" ${destroot}${prefix}/bin/rrgbis-setup

      # Install the real binary and rename it to rrgbis-bin.
      copy ${worksrcpath}/rrgbis ${destroot}${prefix}/bin/rrgbis-bin

      # Create the directory for the rrgbis data.
      xinstall -d ${destroot}${prefix}/share/rrgbis
      # Copy all data files and directories to ${destroot}.
      set files {aiscripts fonts images missions music settings.dat sound squirrelscripts unitdata unitpictures}
      foreach file $files {
      move ${worksrcpath}/${file} ${destroot}${prefix}/share/rrgbis/${file}
      }
      }

      post-install {
      ui_msg "****************************************************************"
      ui_msg "* *"
      ui_msg "* Before you run rrgbis for the first time, you must run *"
      ui_msg "* rrgbis-setup to set up the default configuration. *"
      ui_msg "* *"
      ui_msg "* This script is provided by MacPorts and not part of the *"
      ui_msg "* official distribution! If there are any problems with it *"
      ui_msg "* contact the port maintainer. *"
      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/rrgbis
      % sudo port install rrgbis
      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 rrgbis
      ---> Verifying checksum for rrgbis
      ---> Extracting rrgbis
      ---> Configuring rrgbis
      ---> Building rrgbis with target all
      ---> Staging rrgbis into destroot
      ---> Installing rrgbis
    - 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 rrgbis with these commands:
      %  man rrgbis
      % apropos rrgbis
      % which rrgbis
      % locate rrgbis

     Where to find more information:

    Darwin Ports



    Lightbox this page.