freebsd-ports/x11-toolkits/ruby-wx/files/patch-extconf.rb
Max Khon 6127b7c922 Ooops. Backout previous commit. pav has provided a different
fix in Makefile rev. 1.5.

Pointy hat to:	fjoe
2005-05-30 15:14:35 +00:00

20 lines
678 B
Ruby

--- 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