2009-10-22 15:46:01 +00:00
|
|
|
#!/usr/bin/env ruby
|
|
|
|
require 'mkmf'
|
|
|
|
|
2012-03-27 20:29:28 +00:00
|
|
|
|
|
|
|
$CFLAGS += " -I/usr/include/lorcon2"
|
|
|
|
|
|
|
|
if ( RUBY_VERSION =~ /^(1\.9|2\.0)/ )
|
2009-10-26 21:09:40 +00:00
|
|
|
$CFLAGS += " -DRUBY_19"
|
|
|
|
end
|
|
|
|
|
2012-03-27 20:29:28 +00:00
|
|
|
if find_library("orcon2", "lorcon_list_drivers", "lorcon2/lorcon.h")
|
2009-10-22 15:46:01 +00:00
|
|
|
create_makefile("Lorcon2")
|
|
|
|
else
|
|
|
|
puts "Error: the lorcon2 library was not found, please see the README"
|
|
|
|
end
|
2012-03-27 20:29:28 +00:00
|
|
|
|