Rb-opengl - How to Download and Install on Mac OS X
Saturday the 4th of July, 2009

    rb-opengl  most recent diff


    version

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


      The rb-opengl Portfile 38254 2008-07-13 22:16:28Z febeling macports.org $
      PortSystem 1.0
      PortGroup ruby 1.0

      ruby.setup {opengl rbogl} 0.32g extconf.rb {sample}
      Revision: 0
      Maintainers: nomaintainer
      Description: OpenGL bindings for Ruby
      Long Description: ${description}
      Category:-append graphics
      Homepage: http://www2.giganet.net/~yoshi/
      Master Sites: ${homepage}
      Checksums: md5 0832d08a87ebb16f6d4e30459a5019f0
      Platform: darwin

      worksrcdir ${ruby.module}-${version}

      Patch Files: patch-extconf.rb patch-glu.c patch-glut.c patch-ogl.c patch-rbogl.c

      post-configure {
      reinplace "s|^CFLAGS.*\$|& -I/System/Library/Frameworks/OpenGL.framework/Headers -I/System/Library/Frameworks/GLUT.framework/Headers|" Makefile.glut Makefile.ogl
      reinplace "s|^DLDFLAGS.*\$|& -L\$(prefix)/lib -L/System/Library/Frameworks/OpenGL.framework/Libraries|" Makefile.glut Makefile.ogl
      reinplace "s|^LIBS.*\$|& -lGLU -framework GLUT -lGL -framework OpenGL|" Makefile.glut Makefile.ogl
      }


    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/rb-opengl
      % sudo port install rb-opengl
      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 rb-opengl
      ---> Verifying checksum for rb-opengl
      ---> Extracting rb-opengl
      ---> Configuring rb-opengl
      ---> Building rb-opengl with target all
      ---> Staging rb-opengl into destroot
      ---> Installing rb-opengl
    - 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 rb-opengl with these commands:
      %  man rb-opengl
      % apropos rb-opengl
      % which rb-opengl
      % locate rb-opengl

     Where to find more information:

    Darwin Ports



    Lightbox this page.