aboutsummaryrefslogtreecommitdiff
path: root/devel/ruby-libglade2/files/patch-extconf.rb
blob: de691728f32d76b336e026c30e159ad541cca9a5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--- extconf.rb.orig	Wed Jan 24 12:29:18 2001
+++ extconf.rb	Thu Feb  8 04:50:07 2001
@@ -2,6 +2,16 @@
 
 $objs = ["rbglade.o"]
 
+glib_config = with_config("glib-config", "glib-config")
+$CFLAGS += " " + %x(#{glib_config} --cflags).chomp
+$LDFLAGS += " " + %x(#{glib_config} --libs).chomp
+
+gtk_config = with_config("gtk-config", "gtk-config")
+$CFLAGS += " " + %x(#{gtk_config} --cflags).chomp
+$LDFLAGS += " " + %x(#{gtk_config} --libs).chomp
+
+puts $CFLAGS
+
 dir_config("glade")
 dir_config("xml")
 dir_config("z")
@@ -15,4 +25,4 @@
 	end
 end
 
-create_makefile("lglade")
+create_makefile("lglade")