aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authortabthorpe <tabthorpe@FreeBSD.org>2013-10-11 20:07:39 +0800
committertabthorpe <tabthorpe@FreeBSD.org>2013-10-11 20:07:39 +0800
commitbadb8c1e8a3976f224a50a965b86868d43c5e8fc (patch)
tree1ec87f8f92f2f153c8163980071145177701b746 /graphics
parente1d85a0e48c66ce99423039c9039e9b38a5e76f6 (diff)
downloadfreebsd-ports-gnome-badb8c1e8a3976f224a50a965b86868d43c5e8fc.tar.gz
freebsd-ports-gnome-badb8c1e8a3976f224a50a965b86868d43c5e8fc.tar.zst
freebsd-ports-gnome-badb8c1e8a3976f224a50a965b86868d43c5e8fc.zip
- Restore graphics/ruby-opengl, fix the INDEX buld
Submitted by: erwinbot Pointyhat to: tabthorpe
Diffstat (limited to 'graphics')
-rw-r--r--graphics/ruby-opengl/Makefile42
-rw-r--r--graphics/ruby-opengl/distinfo2
-rw-r--r--graphics/ruby-opengl/files/patch-glut.c20
-rw-r--r--graphics/ruby-opengl/pkg-descr3
-rw-r--r--graphics/ruby-opengl/pkg-plist54
5 files changed, 121 insertions, 0 deletions
diff --git a/graphics/ruby-opengl/Makefile b/graphics/ruby-opengl/Makefile
new file mode 100644
index 000000000000..1b267bec244c
--- /dev/null
+++ b/graphics/ruby-opengl/Makefile
@@ -0,0 +1,42 @@
+# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
+# $FreeBSD$
+
+PORTNAME= opengl
+PORTVERSION= 0.32b
+PORTREVISION= 5
+CATEGORIES= graphics ruby
+MASTER_SITES= http://www2.giganet.net/~yoshi/
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
+DISTNAME= rbogl-${PORTVERSION}
+EXTRACT_SUFX= .tgz
+DIST_SUBDIR= ruby
+
+MAINTAINER= ruby@FreeBSD.org
+COMMENT= OpenGL/GLU/GLUT interface modules for Ruby
+
+DEPRECATED= Does not work with Ruby 1.9
+EXPIRATION_DATE= 2013-05-02
+
+USE_RUBY= yes
+USE_RUBY_EXTCONF= yes
+USE_XORG= x11 xi xmu xext
+USE_GL= glut
+
+WRKSRC= ${WRKDIR}/${PORTNAME}
+CONFIGURE_ARGS= --with-ruby-dir="${LOCALBASE}" --with-x11-dir="${LOCALBASE}"
+INSTALL_TARGET= site-install
+
+post-install:
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${RUBY_MODEXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/sample/*.rb ${RUBY_MODEXAMPLESDIR}/
+ ${MKDIR} ${RUBY_MODDOCDIR}/ja
+ ${INSTALL_DATA} ${WRKSRC}/ChangeLog ${RUBY_MODDOCDIR}/
+ ${INSTALL_DATA} ${WRKSRC}/README.EUC ${RUBY_MODDOCDIR}/ja/
+.endif
+
+.include <bsd.port.pre.mk>
+.if ${RUBY_VER} == 1.9
+BROKEN= does not build with ruby 1.9
+.endif
+.include <bsd.port.post.mk>
diff --git a/graphics/ruby-opengl/distinfo b/graphics/ruby-opengl/distinfo
new file mode 100644
index 000000000000..b317fe774ba3
--- /dev/null
+++ b/graphics/ruby-opengl/distinfo
@@ -0,0 +1,2 @@
+SHA256 (ruby/rbogl-0.32b.tgz) = 78d98334ab53d94a62185ec78008b4e5651570ad0261480ebb9ae21ab8bf36d1
+SIZE (ruby/rbogl-0.32b.tgz) = 70340
diff --git a/graphics/ruby-opengl/files/patch-glut.c b/graphics/ruby-opengl/files/patch-glut.c
new file mode 100644
index 000000000000..828ad84cc652
--- /dev/null
+++ b/graphics/ruby-opengl/files/patch-glut.c
@@ -0,0 +1,20 @@
+--- glut.c.orig Fri Jan 7 01:37:43 2000
++++ glut.c Thu Aug 21 23:46:38 2003
+@@ -15,7 +15,7 @@
+ static VALUE _funcname = Qnil; \
+ static void glut_ ## _funcname ## Callback(); \
+ static VALUE \
+-glut_ ## _funcname ## (obj,arg1) \
++glut_ ## _funcname (obj,arg1) \
+ VALUE obj,arg1; \
+ { \
+ int win; \
+@@ -25,7 +25,7 @@
+ if (win == 0) \
+ rb_raise(rb_eRuntimeError, "GLUT.%s needs current window", #_funcname); \
+ rb_ary_store(_funcname, win, arg1); \
+- glut ## _funcname ## (glut_ ## _funcname ## Callback); \
++ glut ## _funcname (glut_ ## _funcname ## Callback); \
+ return Qnil; \
+ }
+
diff --git a/graphics/ruby-opengl/pkg-descr b/graphics/ruby-opengl/pkg-descr
new file mode 100644
index 000000000000..3feb92231589
--- /dev/null
+++ b/graphics/ruby-opengl/pkg-descr
@@ -0,0 +1,3 @@
+This is OpenGL/GLU/GLUT interface modules for Ruby.
+
+WWW: http://www.ruby-lang.org/raa/list.rhtml?name=opengl
diff --git a/graphics/ruby-opengl/pkg-plist b/graphics/ruby-opengl/pkg-plist
new file mode 100644
index 000000000000..a5a174018237
--- /dev/null
+++ b/graphics/ruby-opengl/pkg-plist
@@ -0,0 +1,54 @@
+%%RUBY_SITEARCHLIBDIR%%/glut.so
+%%RUBY_SITEARCHLIBDIR%%/opengl.so
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/aaindex.rb
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/aapoly.rb
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/aargb.rb
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/accanti.rb
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/accpersp.rb
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/alpha.rb
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/alpha3D.rb
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/bezcurve.rb
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/bezmesh.rb
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/checker.rb
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/clip.rb
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/colormat.rb
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/cube.rb
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/depthcue.rb
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/dof.rb
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/double.rb
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/drawf.rb
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/feedback.rb
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/fog.rb
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/font.rb
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/hello.rb
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/image.rb
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/jitter.rb
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/lines.rb
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/list.rb
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/material.rb
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/mipmap.rb
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/model.rb
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/movelight.rb
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/pickdepth.rb
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/plane.rb
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/planet.rb
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/quadric.rb
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/robot.rb
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/select.rb
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/smooth.rb
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/stencil.rb
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/stroke.rb
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/surface.rb
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/teaambient.rb
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/teapots.rb
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/tess.rb
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/texbind.rb
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/texgen.rb
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/texturesurf.rb
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/varray.rb
+%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/wrap.rb
+%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%%
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ChangeLog
+%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ja/README.EUC
+%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%/ja
+%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%