summaryrefslogtreecommitdiff
path: root/devel/ruby-rudl/files/patch-extconf.rb
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2001-04-10 08:10:50 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2001-04-10 08:10:50 +0000
commit866400759e4d51fc130e8f727ed860876a73cf02 (patch)
tree2b85fef91205fa39f770171a98f1789bb6446e5c /devel/ruby-rudl/files/patch-extconf.rb
parentAdd to audio category. (diff)
Add ruby-rudl, a high level library to use SDL from Ruby, rather than
just a direct API wrapper. (cf. Ruby/SDL)
Diffstat (limited to '')
-rw-r--r--devel/ruby-rudl/files/patch-extconf.rb35
1 files changed, 35 insertions, 0 deletions
diff --git a/devel/ruby-rudl/files/patch-extconf.rb b/devel/ruby-rudl/files/patch-extconf.rb
new file mode 100644
index 000000000000..388ffa185c81
--- /dev/null
+++ b/devel/ruby-rudl/files/patch-extconf.rb
@@ -0,0 +1,35 @@
+--- extconf.rb.orig Tue Apr 10 07:12:54 2001
++++ extconf.rb Tue Apr 10 16:56:53 2001
+@@ -5,20 +5,20 @@
+
+ makeMakefile=false
+
+-havePthread=have_library('pthread')
++sdl_config = with_config("sdl-config", "sdl-config")
+
+-if have_library('SDL', 'SDL_Quit') and
+- have_library('SDLmain') then
++have_library('pthread')
+
+- if /mswin32|cygwin/ =~ RUBY_PLATFORM then
+- # Make sure SDL.h is to be found somewhere!
+- makeMakefile=have_header('SDL.h')
+- else
+- $CFLAGS += `sdl-config --cflags`.chomp
+- $LDFLAGS += `sdl-config --libs`.chomp
+- makeMakefile=have_header('SDL.h') and havePthread
+- end
++if /mswin32|cygwin/ =~ RUBY_PLATFORM then
++ have_library('SDL', 'SDL_Quit')
++ have_library('SDLmain')
++else
++ $CFLAGS += `#{sdl_config} --cflags`.chomp
++ $LDFLAGS += `#{sdl_config} --libs`.chomp
+ end
+
+-if makeMakefile then create_makefile('RuDL') end
++if have_func('SDL_Quit') then
++ makeMakefile=have_header('SDL.h')
++end
+
++if makeMakefile then create_makefile('RuDL') end