1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-24 21:01:20 +00:00
freebsd-ports/x11/ruby-gnome2/files/patch-extconf.rb
Akinori MUSHA e6cc215bad Add ruby-gnome, a set of Ruby bindings for GNOME which includes gnome,
gtk, gdk_imlib, and gdk_pixbuf modules.  The last three modules will
be provided as separate ports.
2001-02-28 12:52:25 +00:00

19 lines
748 B
Ruby

--- extconf.rb.orig Sat Sep 23 06:00:02 2000
+++ extconf.rb Wed Feb 28 20:59:59 2001
@@ -21,11 +21,12 @@
config_library = "gnomeui"
version = `#{config_cmd} --version`
if not version.chomp.empty? then
- $LDFLAGS, *libs =
+ ldflags, *libs =
`#{config_cmd} #{config_libs} #{config_library}`.chomp.split(/(-l.*)/)
+ $LDFLAGS += ldflags
$libs = libs.join(' ') + ' ' + $libs
- $CFLAGS = `#{config_cmd} #{config_cflags} #{config_library}`.chomp
- $CFLAGS = $CFLAGS + " -DHAVE_GDKIMLIB -I../../gtk/src -I../../gdkimlib"
+ $CFLAGS += `#{config_cmd} #{config_cflags} #{config_library}`.chomp
+ $CFLAGS += " -DHAVE_GDKIMLIB -I../../gtk/src -I../../gdkimlib"
else
raise "can't find a config command"
end