# $Id: Portfile 93723 2012-05-29 03:46:55Z jmr@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} categories-append graphics license MIT homepage http://www2.giganet.net/~yoshi/ master_sites ${homepage} checksums md5 0832d08a87ebb16f6d4e30459a5019f0 platforms darwin worksrcdir ${ruby.module}-${version} patchfiles 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|" \ ${worksrcpath}/Makefile.glut ${worksrcpath}/Makefile.ogl reinplace "s|^DLDFLAGS.*\$|& \ -L\$(prefix)/lib \ -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 }