diff options
author | taca <taca@pkgsrc.org> | 2004-12-02 01:47:35 +0000 |
---|---|---|
committer | taca <taca@pkgsrc.org> | 2004-12-02 01:47:35 +0000 |
commit | 0315816c85068176e904813f1411ab86d7fc71e7 (patch) | |
tree | 97185694a5c953adfe592583d92f7d05c7cfae73 /graphics | |
parent | b07617d80f966379b987dcebf3940a6322640b22 (diff) | |
download | pkgsrc-0315816c85068176e904813f1411ab86d7fc71e7.tar.gz |
Make it compile on NetBSD 1.6.X, really this is fix for traditional
C compile which needs to define variable in first in function.
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/ruby-opengl/distinfo | 3 | ||||
-rw-r--r-- | graphics/ruby-opengl/patches/patch-ab | 21 |
2 files changed, 23 insertions, 1 deletions
diff --git a/graphics/ruby-opengl/distinfo b/graphics/ruby-opengl/distinfo index 445167ee71b..51b7b346261 100644 --- a/graphics/ruby-opengl/distinfo +++ b/graphics/ruby-opengl/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.4 2004/11/28 14:55:00 taca Exp $ +$NetBSD: distinfo,v 1.5 2004/12/02 01:47:35 taca Exp $ SHA1 (ruby/rbogl-0.32f.tar.gz) = 0ff63b7241c27111f0d7a7efba5e5a3e89bd1ad9 Size (ruby/rbogl-0.32f.tar.gz) = 75228 bytes SHA1 (patch-aa) = a1239bd409f4a39075330ab91b4f1e5d3a3e3e7a +SHA1 (patch-ab) = cb0c3964ebd01b048942cafb91d259007f0e1910 diff --git a/graphics/ruby-opengl/patches/patch-ab b/graphics/ruby-opengl/patches/patch-ab new file mode 100644 index 00000000000..b93eb6680fa --- /dev/null +++ b/graphics/ruby-opengl/patches/patch-ab @@ -0,0 +1,21 @@ +$NetBSD: patch-ab,v 1.1 2004/12/02 01:47:35 taca Exp $ + +--- ogl.c.orig Sun Jul 18 00:26:38 2004 ++++ ogl.c +@@ -2162,14 +2162,14 @@ VALUE obj,arg1,arg2,arg3,arg4,arg5,arg6; + int format; + int type; + VALUE pixels; ++ int type_size; ++ int format_size; + x = (GLint)NUM2INT(arg1); + y = (GLint)NUM2INT(arg2); + width = (GLsizei)NUM2INT(arg3); + height = (GLsizei)NUM2INT(arg4); + format = NUM2INT(arg5); + type = NUM2INT(arg6); +- int type_size; +- int format_size; + if (format != -1 && type != -1) { + type_size = gltype_size(type) / 8; + format_size = glformat_size(format); |