ruby.setup {opengl rbogl} 0.32g extconf.rb {sample}
description OpenGL bindings for Ruby
long_description ${description}
categories-append graphics
homepage http://www2.giganet.net/~yoshi/
checksums md5 0832d08a87ebb16f6d4e30459a5019f0
worksrcdir ${ruby.module}-${version}
patchfiles patch-extconf.rb \
reinplace "s|^CFLAGS.*\$|& \
-I/System/Library/Frameworks/OpenGL.framework/Headers \
-I/System/Library/Frameworks/GLUT.framework/Headers|" \
${worksrcpath}/Makefile.glut ${worksrcpath}/Makefile.ogl
reinplace "s|^DLDFLAGS.*\$|& \
-L/System/Library/Frameworks/OpenGL.framework/Libraries|" \
${worksrcpath}/Makefile.glut ${worksrcpath}/Makefile.ogl
reinplace "s|^LIBS.*\$|& \
-lGLU -framework GLUT -lGL -framework OpenGL|" \
${worksrcpath}/Makefile.glut ${worksrcpath}/Makefile.ogl