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

    version 1.5.1

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


      # -*- 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
      The glew Portfile 57460 2009-09-11 11:45:20Z jmr macports.org $

      PortSystem 1.0

      Name: glew
      Version: 1.5.1
      Revision: 2
      Category: graphics devel
      Platform: darwin
      license GPLv2+/BSD/MIT
      Maintainers: jmr openmaintainer
      Description: OpenGL Extension Wrangler Library
      Long Description: The OpenGL Extension Wrangler Library (GLEW) is a cross-platform C/C++ extension loading library. GLEW provides efficient run-time mechanisms for determining which OpenGL extensions are supported on the target platform. OpenGL core and extension functionality is exposed in a single header file.

      Homepage: http://glew.sourceforge.net
      Master Sites: sourceforge
      distfiles ${distname}-src.tgz
      Checksums: md5 759a59853dfaae4d007b414a3c1712f2 sha1 a94113169d46487ccda1bb2fde68fa1803bdf009 rmd160 920fdff559976492a2e6acf93d3b02e8286f6b7b
      worksrcdir ${name}
      use_configure no
      build.env GLEW_DEST=${prefix}
      build.args CC=${configure.cc} LD=${configure.cc}
      destroot.env GLEW_DEST=${destroot}${prefix}

      Patch Files: darwin-glx.patch

      pre-patch {
      # CRLF line endings confuse patch and sh
      reinplace "s|\r||" ${worksrcpath}/config/config.guess ${worksrcpath}/Makefile
      reinplace "s:/usr/X11R6:${prefix}:g" ${worksrcpath}/config/Makefile.darwin
      }

      Variant: universal {
      patchfiles patch-Makefile.diff
      build.args-append CFLAGS.EXTRA="${configure.universal_cflags}" LDFLAGS.EXTRA="${configure.universal_ldflags}"
      }

      Variant: x11 description {Build libGLEW for GLX rather than OpenGL.framework} {
      depends_lib-append port:mesa
      build.args-append GLEW_APPLE_GLX=1
      destroot.args-append GLEW_APPLE_GLX=1
      }

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.