# $Id: Portfile 64950 2010-03-18 12:22:44Z ryandesign@macports.org $

PortSystem                      1.0
PortGroup                       pure 1.0

pure.setup                      gl 0.8
categories                      graphics
platforms                       macosx
maintainers                     ryandesign
license                         BSD

description                     an interface to access OpenGL functions from \
                                Pure

long_description                ${name} provides ${description}.

checksums                       md5     d8f02877006c4625a8364f94e61390f6 \
                                sha1    7b6e6f2a014155ea927240679e525a02f2e99c74 \
                                rmd160  0b1b386ab43411e353e9af461866a78c9f0d1005

depends_lib-append              path:lib/libGL.dylib:mesa

patchfiles                      patch-Makefile.diff

post-patch {
    reinplace -E "s,#include <(OpenGL|GLUT)/,#include <GL/,g" \
        ${worksrcpath}/GL.c \
        ${worksrcpath}/GL_ARB.c \
        ${worksrcpath}/GL_ATI.c \
        ${worksrcpath}/GL_EXT.c \
        ${worksrcpath}/GL_NV.c \
        ${worksrcpath}/GLU.c \
        ${worksrcpath}/GLUT.c
}
