diff options
author | Akinori MUSHA <knu@FreeBSD.org> | 2001-10-20 11:51:26 +0000 |
---|---|---|
committer | Akinori MUSHA <knu@FreeBSD.org> | 2001-10-20 11:51:26 +0000 |
commit | 52512d3ab6a91b75d3947bc30f62a31c606bc9db (patch) | |
tree | 0dea91c08048733a06dd7416c796b4e01af8cf40 /devel/ruby-gconf2/files | |
parent | Add ruby-openssl, a Ruby module which wraps OpenSSL. (diff) |
Add ruby-gconf, a Ruby interface to GConf (1.0.x).
Diffstat (limited to 'devel/ruby-gconf2/files')
-rw-r--r-- | devel/ruby-gconf2/files/patch-extconf.rb | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/devel/ruby-gconf2/files/patch-extconf.rb b/devel/ruby-gconf2/files/patch-extconf.rb new file mode 100644 index 000000000000..9b882428ca2b --- /dev/null +++ b/devel/ruby-gconf2/files/patch-extconf.rb @@ -0,0 +1,27 @@ +--- extconf.rb.orig Tue Oct 16 07:27:04 2001 ++++ extconf.rb Sat Oct 20 20:28:04 2001 +@@ -1,13 +1,17 @@ + #!/usr/bin/ruby -w + require 'mkmf' +-puts "GTK+ version: #{`gtk-config --version`}" +-puts "GConf version: #{`gconf-config --version`}" +-$CFLAGS << ' -O3 -Wall ' +-$CFLAGS << `gconf-config --cflags`.chomp ++ ++gconf_config = with_config('gconf-config', 'gconf-config') ++gtk_config = with_config('gtk-config', 'gtk-config') ++ ++puts "GTK+ version: #{`#{gtk_config} --version`}" ++puts "GConf version: #{`#{gconf_config} --version`}" ++$CFLAGS << ' -Wall ' ++$CFLAGS << `#{gconf_config} --cflags`.chomp + $CFLAGS << ' ' +-$CFLAGS << `gtk-config --cflags` +-$LDFLAGS << `gconf-config --libs`.chomp ++$CFLAGS << `#{gtk_config} --cflags` ++$LDFLAGS << `#{gconf_config} --libs`.chomp + $LDFLAGS << ' -lgconf-gtk-1 ' +-$LDFLAGS << `gtk-config --libs` ++$LDFLAGS << `#{gtk_config} --libs` + Dir.chdir('src') + create_makefile('gconf') |