From 33d889b7fa34079ebaa7e19a9a1e4d6fb56b4701 Mon Sep 17 00:00:00 2001 From: Pav Lucistnik Date: Thu, 10 Feb 2005 23:53:43 +0000 Subject: wxRuby is a library to allow Ruby programs to use wxWindows (also known as wxWidgets), which is a mature, cross-platform, GUI toolkit that uses native widgets where possible. PR: ports/77283 Submitted by: Ulrich Spoerlein --- x11-toolkits/ruby-wx/files/patch-extconf.rb | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 x11-toolkits/ruby-wx/files/patch-extconf.rb (limited to 'x11-toolkits/ruby-wx/files/patch-extconf.rb') diff --git a/x11-toolkits/ruby-wx/files/patch-extconf.rb b/x11-toolkits/ruby-wx/files/patch-extconf.rb new file mode 100644 index 000000000000..b018405af9f1 --- /dev/null +++ b/x11-toolkits/ruby-wx/files/patch-extconf.rb @@ -0,0 +1,20 @@ +--- extconf.rb.orig Wed Nov 17 15:56:22 2004 ++++ extconf.rb Fri Feb 11 00:42:43 2005 +@@ -32,13 +32,16 @@ + end + + +-if /linux/ =~ RUBY_PLATFORM or /i386-freebsd/ =~ RUBY_PLATFORM ++if /linux/ =~ RUBY_PLATFORM or /freebsd/ =~ RUBY_PLATFORM + CONFIG['CC'] = `wx-config --cxx` + CONFIG['LDSHARED'].gsub!("gcc",`wx-config --cxx`.strip) + $CFLAGS += " `wx-config --cxxflags`" + $LDFLAGS += " `wx-config --libs` -Wl,--version-script,./version-script " + ["htmlprocessor.o", "htmlwindow.o", "htmleasyprinting.o"].each do |str| + $objs.delete(str) ++ end ++ if ($use_xrc) ++ $LDFLAGS += " -lwx_gtk2_xrc-2.4 " + end + + elsif /mingw32/ =~ RUBY_PLATFORM -- cgit v1.2.3