Files
Lawrence Velázquez 34b3070336 Remove all $Id$ lines
for pf in */*/Portfile
do
    ed -s "$pf" <<-'EOF'
	1,3g/^[[:space:]]*#[[:space:]]*\$Id.*\$[[:space:]]*$/d
	1g/^[[:space:]]*$/d
	w
	q
	EOF
done
2016-12-28 18:14:04 +01:00

37 lines
1.0 KiB
Plaintext

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
}