Glui version 2.36 - How to Download and Install on Mac OS X
Tuesday the 3rd of November, 2009

    version 2.36

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


      # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
      The glui Portfile 56100 2009-08-24 07:01:14Z ryandesign macports.org $

      PortSystem 1.0

      Name: glui
      Version: 2.36
      Revision: 1
      Category: x11
      Maintainers: mcalhoun
      Description: A GLUT-based C++ user interface library.
      Long Description: GLUI is a GLUT-based C++ user interface library which provides controls such as buttons, checkboxes, radio buttons, and spinners to OpenGL applications.
      Homepage: http://glui.sourceforge.net/
      Master Sites: sourceforge:glui
      extract.suffix .tgz
      worksrcdir ${name}-${version}/src
      Platform: darwin
      Checksums: md5 9e8d506af9a9428dac09e8cd7bda7c1e sha1 00e6a4a8a331ccfde951966526c63b0f37c7d8f3 rmd160 f39fe98e3e215816b0af2089ab7ac460df5701b8

      Patch Files:-append patch-makefile.diff patch-glui.diff patch-glui_filebrowser.diff

      configure.ldflags -framework GLUT -framework OpenGL

      use_configure no

      post-configure {
      reinplace "s|__CONFIGURE_CXX__|${configure.cxx}|" ${worksrcpath}/makefile
      reinplace "s|__CONFIGURE_CXXFLAGS__|${configure.cxxflags}|" ${worksrcpath}/makefile
      reinplace "s|__CONFIGURE_LDFLAGS__|${configure.ldflags}|" ${worksrcpath}/makefile
      reinplace "s|__CONFIGURE_CPPFLAGS__|${configure.cppflags}|" ${worksrcpath}/makefile
      }

      destroot {
      xinstall -m 644 ${worksrcpath}/include/GL/glui.h ${destroot}${prefix}/include
      xinstall -m 644 ${worksrcpath}/lib/libglui.a ${destroot}${prefix}/lib
      xinstall -m 755 ${worksrcpath}/bin/ppm2array ${destroot}${prefix}/bin
      }

      post-destroot {
      xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}
      xinstall -m 644 ${worksrcpath}/doc/glui_manual.pdf ${destroot}${prefix}/share/doc/${name}
      xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}/examples
      eval xinstall -m 644 [glob ${worksrcpath}/example/example*.cpp] ${destroot}${prefix}/share/doc/${name}/examples
      eval xinstall -m 755 [glob ${worksrcpath}/bin/example*] ${destroot}${prefix}/share/doc/${name}/examples
      }

      livecheck.distname Source

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.