pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/graphics/ruby-opengl Fix rpath provlem with native X11.
details: https://anonhg.NetBSD.org/pkgsrc/rev/af57d0838d27
branches: trunk
changeset: 347671:af57d0838d27
user: taca <taca%pkgsrc.org@localhost>
date: Thu May 26 17:08:57 2016 +0000
description:
Fix rpath provlem with native X11.
Bump PKGREVISION.
diffstat:
graphics/ruby-opengl/Makefile | 5 ++-
graphics/ruby-opengl/distinfo | 5 ++-
graphics/ruby-opengl/patches/patch-ext_gl_mkrf__conf.rb | 20 ++++++++++++++
graphics/ruby-opengl/patches/patch-ext_glu_mkrf__conf.rb | 21 +++++++++++++++
graphics/ruby-opengl/patches/patch-ext_glut_mkrf__conf.rb | 21 +++++++++++++++
5 files changed, 69 insertions(+), 3 deletions(-)
diffs (112 lines):
diff -r e7e5d84a0730 -r af57d0838d27 graphics/ruby-opengl/Makefile
--- a/graphics/ruby-opengl/Makefile Thu May 26 16:41:59 2016 +0000
+++ b/graphics/ruby-opengl/Makefile Thu May 26 17:08:57 2016 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.32 2015/04/25 14:23:19 tnn Exp $
+# $NetBSD: Makefile,v 1.33 2016/05/26 17:08:57 taca Exp $
DISTNAME= ruby-opengl-0.60.1
PKGNAME= ${RUBY_PKGPREFIX}-${DISTNAME:S/ruby-//}
-PKGREVISION= 2
+PKGREVISION= 3
CATEGORIES= graphics
MAINTAINER= taca%NetBSD.org@localhost
@@ -13,6 +13,7 @@
DEPENDS+= ${RUBY_PKGPREFIX}-mkrf>=0.2.0:../../devel/ruby-mkrf
USE_RAKE= YES
+MAKE_ENV+= LDSHARED=${COMPILER_RPATH_FLAG:Q}${X11BASE:Q}/lib
pre-configure:
${FIND} ${WRKSRC} -type f -exec ${CHMOD} -x {} \;
diff -r e7e5d84a0730 -r af57d0838d27 graphics/ruby-opengl/distinfo
--- a/graphics/ruby-opengl/distinfo Thu May 26 16:41:59 2016 +0000
+++ b/graphics/ruby-opengl/distinfo Thu May 26 17:08:57 2016 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.13 2015/11/03 21:34:19 agc Exp $
+$NetBSD: distinfo,v 1.14 2016/05/26 17:08:57 taca Exp $
SHA1 (ruby-opengl-0.60.1.gem) = ae8a2ceec7102fce6450273885372fa16d820c87
RMD160 (ruby-opengl-0.60.1.gem) = fc046485ad0da0a269c5b282cef9f027dad16077
@@ -6,3 +6,6 @@
Size (ruby-opengl-0.60.1.gem) = 245248 bytes
SHA1 (patch-Rakefile) = 3fc0debd15a230e43dde593af79aa3e857fa4c2d
SHA1 (patch-ext_common_conv.h) = 12bc77ddbdfd2df39aa7c9688847bae433a8c620
+SHA1 (patch-ext_gl_mkrf__conf.rb) = 1043fd1b2c5d0edc2bd70bd2fe86e210ce4ca537
+SHA1 (patch-ext_glu_mkrf__conf.rb) = e1a8c53b8538c015b17237fd228f63447cb1d653
+SHA1 (patch-ext_glut_mkrf__conf.rb) = 94e4f50e3a5dbad5dc0beb8a887c608747b5c43f
diff -r e7e5d84a0730 -r af57d0838d27 graphics/ruby-opengl/patches/patch-ext_gl_mkrf__conf.rb
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/ruby-opengl/patches/patch-ext_gl_mkrf__conf.rb Thu May 26 17:08:57 2016 +0000
@@ -0,0 +1,20 @@
+$NetBSD: patch-ext_gl_mkrf__conf.rb,v 1.1 2016/05/26 17:08:57 taca Exp $
+
+Make sure to set rpath.
+
+--- ext/gl/mkrf_conf.rb.orig 2016-05-26 07:39:33.064606316 +0000
++++ ext/gl/mkrf_conf.rb
+@@ -24,11 +24,13 @@ Mkrf::Generator.new( 'gl' ) do |g|
+ when /darwin/
+ g.cflags << RUBYVER
+ g.ldshared << ' -framework OpenGL'
++ g.ldshared << " #{ENV['LDSHARED']}"
+ when /mswin32/
+ g.cflags << ' -DWIN32' + RUBYVER
+ g.include_library( 'opengl32.lib', 'glVertex3d')
+ else
+ g.cflags << ' -Wall' + RUBYVER
+ g.include_library( 'GL', 'glVertex3d')
++ g.ldshared << " #{ENV['LDSHARED']}"
+ end
+ end
diff -r e7e5d84a0730 -r af57d0838d27 graphics/ruby-opengl/patches/patch-ext_glu_mkrf__conf.rb
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/ruby-opengl/patches/patch-ext_glu_mkrf__conf.rb Thu May 26 17:08:57 2016 +0000
@@ -0,0 +1,21 @@
+$NetBSD: patch-ext_glu_mkrf__conf.rb,v 1.1 2016/05/26 17:08:57 taca Exp $
+
+Make sure to set rpath.
+
+--- ext/glu/mkrf_conf.rb.orig 2016-05-26 08:03:52.613279441 +0000
++++ ext/glu/mkrf_conf.rb
+@@ -23,6 +23,7 @@ Mkrf::Generator.new( 'glu' ) do |g|
+ when /darwin/
+ g.cflags << RUBYVER
+ g.ldshared << ' -framework OpenGL'
++ g.ldshared << " #{ENV['LDSHARED']}"
+ when /mswin32/
+ g.cflags << ' -DWIN32' + RUBYVER
+ g.include_library( 'opengl32.lib', 'glVertex3d')
+@@ -31,5 +32,6 @@ Mkrf::Generator.new( 'glu' ) do |g|
+ g.cflags << ' -Wall' + RUBYVER
+ g.include_library( 'GLU', 'gluLookAt' )
+ g.include_library( 'GL', 'glVertex3d')
++ g.ldshared << " #{ENV['LDSHARED']}"
+ end
+ end
diff -r e7e5d84a0730 -r af57d0838d27 graphics/ruby-opengl/patches/patch-ext_glut_mkrf__conf.rb
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/ruby-opengl/patches/patch-ext_glut_mkrf__conf.rb Thu May 26 17:08:57 2016 +0000
@@ -0,0 +1,21 @@
+$NetBSD: patch-ext_glut_mkrf__conf.rb,v 1.1 2016/05/26 17:08:57 taca Exp $
+
+Make sure to set rpath.
+
+--- ext/glut/mkrf_conf.rb.orig 2016-05-26 08:03:52.577469373 +0000
++++ ext/glut/mkrf_conf.rb
+@@ -23,6 +23,7 @@ Mkrf::Generator.new( 'glut' ) do |g|
+ when /darwin/
+ g.cflags << RUBYVER
+ g.ldshared << ' -framework GLUT -framework OpenGL -framework Cocoa'
++ g.ldshared << " #{ENV['LDSHARED']}"
+ when /mswin32/
+ g.cflags << ' -DWIN32' + RUBYVER
+ g.include_library( 'glut32.lib', 'glutSolidTeapot' )
+@@ -33,5 +34,6 @@ Mkrf::Generator.new( 'glut' ) do |g|
+ g.include_library( 'glut', 'glutSolidTeapot' )
+ g.include_library( 'GLU', 'gluLookAt' )
+ g.include_library( 'GL', 'glVertex3d')
++ g.ldshared << " #{ENV['LDSHARED']}"
+ end
+ end
Home |
Main Index |
Thread Index |
Old Index