diff options
author | knu <knu@FreeBSD.org> | 2002-03-20 21:24:30 +0800 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2002-03-20 21:24:30 +0800 |
commit | f1ab26c7c6de5cc6ad433455416a4a70f1d27900 (patch) | |
tree | fd0181bc1f0580cb6863576f079a9e19102a8887 /x11-toolkits/ruby-gtk | |
parent | 40e21db275ca77942c803b0387c21a1a94806311 (diff) | |
download | freebsd-ports-gnome-f1ab26c7c6de5cc6ad433455416a4a70f1d27900.tar.gz freebsd-ports-gnome-f1ab26c7c6de5cc6ad433455416a4a70f1d27900.tar.zst freebsd-ports-gnome-f1ab26c7c6de5cc6ad433455416a4a70f1d27900.zip |
Perform extconf.rb cleanup with no functional change.
Diffstat (limited to 'x11-toolkits/ruby-gtk')
-rw-r--r-- | x11-toolkits/ruby-gtk/Makefile | 2 | ||||
-rw-r--r-- | x11-toolkits/ruby-gtk/files/patch-extconf.rb | 32 |
2 files changed, 33 insertions, 1 deletions
diff --git a/x11-toolkits/ruby-gtk/Makefile b/x11-toolkits/ruby-gtk/Makefile index 7a9fecaad89e..2cf5d8f511bb 100644 --- a/x11-toolkits/ruby-gtk/Makefile +++ b/x11-toolkits/ruby-gtk/Makefile @@ -24,7 +24,7 @@ USE_GTK= yes .include "${.CURDIR}/../../x11/ruby-gnome/Makefile.common" WRKSRC= ${RUBY_GNOME_WRKSRC}/${PORTNAME} -CONFIGURE_ARGS= ${GTK_CONFIG} +CONFIGURE_ARGS= --with-gtk-config=${GTK_CONFIG} INSTALL_TARGET= site-install DOCS_EN= BUGS \ diff --git a/x11-toolkits/ruby-gtk/files/patch-extconf.rb b/x11-toolkits/ruby-gtk/files/patch-extconf.rb new file mode 100644 index 000000000000..8134afd73c31 --- /dev/null +++ b/x11-toolkits/ruby-gtk/files/patch-extconf.rb @@ -0,0 +1,32 @@ +--- extconf.rb.orig Wed Jan 9 05:21:22 2002 ++++ extconf.rb Wed Mar 20 22:12:37 2002 +@@ -8,24 +8,13 @@ + # detect GTK+ configurations + # + if /mswin32/ !~ PLATFORM +- config_cmds = ["gtk-config"] +- while /^--/ =~ ARGV[0] +- ARGV.shift +- end +- if ARGV.size > 0 +- config_cmds.unshift(ARGV[0]) +- end ++ config_cmd = with_config("gtk-config", "gtk-config") + + begin +- config_cmds.each do |config_cmd| +- version = `#{config_cmd} --version` +- if not version.chomp.empty? +- config_libs, config_cflags = "--libs", "--cflags" +- $LDFLAGS, *libs = `#{config_cmd} #{config_libs}`.chomp.split(/(-l.*)/) +- $libs = libs.join(' ') + ' ' + $libs +- $CFLAGS = `#{config_cmd} #{config_cflags}`.chomp +- break +- end ++ version = `#{config_cmd} --version` ++ if not version.chomp.empty? ++ $LDFLAGS += ' ' + `#{config_cmd} --libs`.chomp ++ $CFLAGS += ' ' + `#{config_cmd} --cflags`.chomp + end + rescue + $LDFLAGS = '-L/usr/X11R6/lib -L/usr/local/lib' |