Sha256: a8b272277287b164e576732e375ecdbfb2313a999e2154d620dafcbd047d4b93

Contents?: true

Size: 546 Bytes

Versions: 1

Compression:

Stored size: 546 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/ogr')

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gdal-0.0.7 ext/gdal-ruby/ogr/extconf.rb