You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
34b3070336
for pf in */*/Portfile
do
ed -s "$pf" <<-'EOF'
1,3g/^[[:space:]]*#[[:space:]]*\$Id.*\$[[:space:]]*$/d
1g/^[[:space:]]*$/d
w
q
EOF
done
37 lines
1.0 KiB
Plaintext
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
|
|
}
|