diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2013-11-15 18:26:38 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2013-11-15 18:26:38 -0800 |
commit | c1a7d24fa43eb2f726dc5b5e4abe38528a6aec9d (patch) | |
tree | fcc0fa922a7fcd0d7a926279712cdfd34998ccb7 /ext | |
parent | 6af42b8267778bb0d894ab396822764510913cbd (diff) | |
download | ffi-yajl-c1a7d24fa43eb2f726dc5b5e4abe38528a6aec9d.tar.gz |
remove rakefile
Diffstat (limited to 'ext')
-rw-r--r-- | ext/libyajl2/Rakefile | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/ext/libyajl2/Rakefile b/ext/libyajl2/Rakefile deleted file mode 100644 index a81caa1..0000000 --- a/ext/libyajl2/Rakefile +++ /dev/null @@ -1,57 +0,0 @@ -#!/usr/bin/env ruby - -require 'mkmf' -require 'rbconfig' - -## the customer is always right, ruby is always compiled to be stupid -$CFLAGS = ENV['CFLAGS'] if ENV['CFLAGS'] -$LDFLAGS = ENV['LDFLAGS'] if ENV['LDFLAGS'] -RbConfig::MAKEFILE_CONFIG['CC'] = ENV['CC'] if ENV['CC'] - -## except if you're doing an unoptimized gcc install we're going to help you out a bit -#if RbConfig::MAKEFILE_CONFIG['CC'] =~ /gcc|clang/ -# $CFLAGS << " -O3" unless $CFLAGS[/-O\d/] -#end - -pkg_config('yajl') - -# yajl_tree.h is only in >= 2.0 -#have_header("yajl/yajl_tree.h") || find_header("yajl/yajl_tree.h", "/usr/local/include") - -# yajl_complete_parse is only in >= 2.0 -#libyajl2_ok = have_library("yajl", "yajl_complete_parse", [ "yajl/yajl_parse.h" ]) - -libyajl2_ok = have_func('yajl_complete_parse', 'yajl/yajl_parse.h') - -prefix=File.expand_path(File.join(ENV['RUBYARCHDIR'], "..")) - -unless libyajl2_ok - desc "Build the shared library" - task :default do - - sh "wget -O yajl-2.0.1.tar.gz http://github.com/lloyd/yajl/tarball/2.0.1" - sh "tar xvf yajl-2.0.1.tar.gz" - Dir.chdir "lloyd-yajl-f4b2b1a" - sh "./configure --prefix=#{prefix} > /tmp/libyajl.out" - sh "make install >> /tmp/libyajl.out" - end -else - desc "Use the system libyajl2" - task :default do - puts "looking good" - end -end - -#LIBYAJL_VERSION="2.0.1" -#SUPPORT_LIB = FFI.map_library_name("libyajl2-#{LIBYAJL_VERSION}") -# -#require 'pp' -# -#File.open "/tmp/env.out", "w+" do |f| -# PP.pp(ENV, f) -#end -# -#prefix=File.expand_path(File.join(ENV['RUBYARCHDIR'], "..")) -# -#end - |