diff options
author | taca <taca@pkgsrc.org> | 2015-06-07 10:50:26 +0000 |
---|---|---|
committer | taca <taca@pkgsrc.org> | 2015-06-07 10:50:26 +0000 |
commit | 106c063330d4a332ce5aff4c791f78bfaeed5a8f (patch) | |
tree | 2e733eadd6f1181802699a49f23aaf5c731280f1 /graphics/ruby-opengl | |
parent | 68a032ce56fb0e033ecab0c66fae6ac5e8f96fcf (diff) | |
download | pkgsrc-106c063330d4a332ce5aff4c791f78bfaeed5a8f.tar.gz |
Use more modern macro to build with newer Ruby.
Diffstat (limited to 'graphics/ruby-opengl')
-rw-r--r-- | graphics/ruby-opengl/distinfo | 3 | ||||
-rw-r--r-- | graphics/ruby-opengl/patches/patch-ext_common_conv.h | 15 |
2 files changed, 17 insertions, 1 deletions
diff --git a/graphics/ruby-opengl/distinfo b/graphics/ruby-opengl/distinfo index 39ab585bf92..96081ece32d 100644 --- a/graphics/ruby-opengl/distinfo +++ b/graphics/ruby-opengl/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.11 2013/03/07 17:05:42 taca Exp $ +$NetBSD: distinfo,v 1.12 2015/06/07 10:50:26 taca Exp $ SHA1 (ruby-opengl-0.60.1.gem) = ae8a2ceec7102fce6450273885372fa16d820c87 RMD160 (ruby-opengl-0.60.1.gem) = fc046485ad0da0a269c5b282cef9f027dad16077 Size (ruby-opengl-0.60.1.gem) = 245248 bytes SHA1 (patch-Rakefile) = 3fc0debd15a230e43dde593af79aa3e857fa4c2d +SHA1 (patch-ext_common_conv.h) = 12bc77ddbdfd2df39aa7c9688847bae433a8c620 diff --git a/graphics/ruby-opengl/patches/patch-ext_common_conv.h b/graphics/ruby-opengl/patches/patch-ext_common_conv.h new file mode 100644 index 00000000000..b5baca5b4c6 --- /dev/null +++ b/graphics/ruby-opengl/patches/patch-ext_common_conv.h @@ -0,0 +1,15 @@ +$NetBSD: patch-ext_common_conv.h,v 1.1 2015/06/07 10:50:27 taca Exp $ + +* Use more portable macro. + +--- ext/common/conv.h.orig 2015-05-30 13:44:54.000000000 +0000 ++++ ext/common/conv.h +@@ -30,7 +30,7 @@ + #if RUBY_VERSION <190 + #define FLOAT_VAL_ACCESS(val) RFLOAT(val)->value + #else +-#define FLOAT_VAL_ACCESS(val) RFLOAT(val)->float_value ++#define FLOAT_VAL_ACCESS(val) RFLOAT_VALUE((val)) + #endif + + #define FASTCONV(_name_,_type_,_convfix_,_convfallback_) \ |