Sha256: f32547633067b85b0356cc45e7ee0dc09f2d9838ba0cae8acd7a311ca4f20da5
Contents?: true
Size: 547 Bytes
Versions: 1
Compression:
Stored size: 547 Bytes
Contents
require 'mkmf' raise 'gdal-config not found.' if `which gdal-config`.empty? dir_config 'gdal', `gdal-config --cflags`.split(' ')[0].gsub(/-I/, ''), `gdal-config --libs`.split(' ')[0].gsub(/-L/, '') have_library 'gdal' or raise 'libgdal not found' pkg_config 'gdal' $libs = append_library $libs, 'gdal' # earlier versions of ruby do not define $CXXFLAGS $CXXFLAGS = CONFIG["CXXFLAGS"] unless defined?($CXXFLAGS) $CFLAGS << ' -Wno-format-security' $CXXFLAGS << ' -Wno-format-security' create_makefile 'gdal-ruby/gdal'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gdal-0.0.7 | ext/gdal-ruby/gdal/extconf.rb |