diff options
author | N.N. <matju@users.sourceforge.net> | 2008-04-28 18:10:15 +0000 |
---|---|---|
committer | N.N. <matju@users.sourceforge.net> | 2008-04-28 18:10:15 +0000 |
commit | 91c0003b158e5f0ed9d0677fb136ae8bb6f86ec5 (patch) | |
tree | d413a48086819f6a2620cd27d030861d122d4f3f /externals/gridflow/devices4ruby/extconf.rb | |
parent | 98dfdfa2fc1c92ba69e33fd77ed3392034297c1f (diff) |
this is an old gridflow, and there's already a svn repository at http://gridflow.ca/svn/trunk
svn path=/trunk/; revision=9739
Diffstat (limited to 'externals/gridflow/devices4ruby/extconf.rb')
-rw-r--r-- | externals/gridflow/devices4ruby/extconf.rb | 112 |
1 files changed, 0 insertions, 112 deletions
diff --git a/externals/gridflow/devices4ruby/extconf.rb b/externals/gridflow/devices4ruby/extconf.rb deleted file mode 100644 index 9e49cbdc..00000000 --- a/externals/gridflow/devices4ruby/extconf.rb +++ /dev/null @@ -1,112 +0,0 @@ -#!/usr/bin/env ruby -# $Id: extconf.rb,v 1.1 2005-10-04 02:02:14 matju Exp $ -# installer for RubyX11 / MetaRuby / etc -# by Mathieu Bouchard - -require "rbconfig" -require "ftools" -include Config - -$DESTDIR = "#{CONFIG["sitedir"]}/#{CONFIG["MAJOR"]}.#{CONFIG["MINOR"]}" -#$DESTDIR = "/home/matju/lib/ruby/#{RUBY_VERSION[0,3]}" -$RUBY = "ruby" - -while ARGV.length>0 - arg=ARGV.shift - case arg - when /=/ - i=arg.index '=' - ARGV.unshift arg[0..i-1], arg[i+1..-1] - when "--prefix" - $DESTDIR = ARGV.shift + "/lib/ruby/#{CONFIG["MAJOR"]}.#{CONFIG["MINOR"]}" - end -end - - - -def install_files(f,base,entries) - entries.each {|type,name,*rest| - case type - when :ruby - f.puts "\tinstall -m644 #{base+name} $(DESTDIR)/#{base+name}" - when :directory - f.puts "\t@mkdir $(DESTDIR)/#{base+name} || true" - install_files(f,base+name,rest) - end - } -end - -def uninstall_files(f,base,entries) - entries.each {|type,name,*rest| - case type - when :ruby - f.puts "\trm $(DESTDIR)/#{base+name}" - when :directory - uninstall_files(f,base+name,rest) - end - } -end - -def make_makefile - File.open("Makefile","w") {|f| - f.puts "# Warning: this file is GENERATED by ./extconf.rb", "" - f.puts "DESTDIR = #{$DESTDIR}", "" - f.puts "RUBY = #{$RUBY}" - f.puts "all::", "" - f.puts "Makefile: extconf.rb" - f.puts "\t$(RUBY) extconf.rb", "" - - f.puts "install::" - f.puts "\t@mkdir -p $(DESTDIR)" - install_files(f,"",FILES) - f.puts - f.puts "uninstall::" - uninstall_files(f,"",FILES) - f.puts - } - #FILES.each {|name| - # File.install "lib/#{name}", "#{DSTPATH}/#{name}", 0644, true - #end -end - -#----------------------------------------------------------------# - -$DESTDIR += "/linux/" #(HACK!) - -FILES = [ -# [:directory, "linux/", - [:ruby, "ioctl.rb"], - [:ruby, "SoundPCM.rb"], - [:ruby, "ParallelPort.rb"], - [:ruby, "SoundMixer.rb"], -# ] -] - -make_makefile - - -__END__ -### the following is discarded (just a test) - -require "mkmf" - -srcs = %w( - termios -) - -#have_library("m") -#have_func("sincos") -#have_func("asinh") - -#if have_header("fftw.h") -# if have_library("fftw", "fftwnd_create_plan") -# srcs.push "na_fftw" -# else -# $defs.delete "-DHAVE_FFTW_H" -# end -#end - -$objs = srcs.map {|i| i+".o"} - -#dir_config("linux") -create_makefile("linux") |