Sha256: 9d2c4dc64140d93f005a562931b1771ada18695c78dd6c44d79d95c1365f8467
Contents?: true
Size: 813 Bytes
Versions: 3
Compression:
Stored size: 813 Bytes
Contents
require 'mkmf' require 'rbconfig' PKG_NAME = 'xml/smart' include Config unless File.exists?('extconf.h') $LIBPATH.push(Config::CONFIG['libdir']) unless have_library("z", "inflate") puts "Error: zlib is needed" exit 1 else $defs.push('-DHAVE_ZLIB_H') end unless have_library("xml2", "xmlXPtrNewRange") puts "Error: libxml2 is needed" puts " Install libxml2 library or try one of the following options to extconf.rb:" puts " --with-xml2-dir=/path/to/libxml2" puts " --with-xml2-lib=/path/to/libxml2/lib" puts " --with-xml2-include=/path/to/libxml2/include" exit 1 end $LDFLAGS << ' ' + `xml2-config --libs`.chomp $CFLAGS << ' ' + `xml2-config --cflags`.chomp $CFLAGS = '-g -Wall ' + $CFLAGS create_header() create_makefile(PKG_NAME,".") end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ruby-xml-smart-0.1.12.1-i486-linux | extconf.rb |
ruby-xml-smart-0.1.12-i486-linux | extconf.rb |
ruby-xml-smart-0.1.11-i486-linux | extconf.rb |