gdal3 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +19 -0
- data/.travis.yml +10 -0
- data/CHANGELOG.md +8 -0
- data/Gemfile +3 -0
- data/LICENSE +28 -0
- data/Makefile +12 -0
- data/README.md +14 -0
- data/Rakefile +38 -0
- data/ext/gdal-ruby/LICENSE +253 -0
- data/ext/gdal-ruby/gdal/extconf.rb +30 -0
- data/ext/gdal-ruby/gdal/gdal.cpp +19064 -0
- data/ext/gdal-ruby/gdalconst/extconf.rb +24 -0
- data/ext/gdal-ruby/gdalconst/gdalconst.c +2248 -0
- data/ext/gdal-ruby/ogr/extconf.rb +29 -0
- data/ext/gdal-ruby/ogr/ogr.cpp +20050 -0
- data/ext/gdal-ruby/osr/extconf.rb +29 -0
- data/ext/gdal-ruby/osr/osr.cpp +10266 -0
- data/ext/gdal-ruby/ruby-2.2-patch.rb +58 -0
- data/gdal3.gemspec +23 -0
- data/lib/gdal-ruby/version.rb +5 -0
- data/lib/gdal.rb +5 -0
- data/spec/gdal_spec.rb +10 -0
- metadata +112 -0
@@ -0,0 +1,29 @@
|
|
1
|
+
require 'mkmf'
|
2
|
+
|
3
|
+
# see https://github.com/zhm/gdal-ruby/issues/5
|
4
|
+
require_relative '../ruby-2.2-patch'
|
5
|
+
|
6
|
+
raise 'gdal-config not found.' if `which gdal-config`.empty?
|
7
|
+
|
8
|
+
dir_config 'gdal',
|
9
|
+
`gdal-config --cflags`.split(' ')[0].gsub(/-I/, ''),
|
10
|
+
`gdal-config --libs`.split(' ')[0].gsub(/-L/, '')
|
11
|
+
|
12
|
+
have_library 'gdal' or raise 'libgdal not found'
|
13
|
+
|
14
|
+
pkg_config 'gdal'
|
15
|
+
|
16
|
+
$libs = append_library $libs, 'gdal'
|
17
|
+
|
18
|
+
# earlier versions of ruby do not define $CXXFLAGS
|
19
|
+
$CXXFLAGS = CONFIG["CXXFLAGS"] unless defined?($CXXFLAGS)
|
20
|
+
|
21
|
+
$CFLAGS << ' -Wno-format-security'
|
22
|
+
$CXXFLAGS << ' -Wno-format-security'
|
23
|
+
|
24
|
+
if !(`gdal-config --version`.strip =~ /^1/)
|
25
|
+
$CFLAGS << ' -Wno-reserved-user-defined-literal -std=c++11'
|
26
|
+
$CXXFLAGS << ' -Wno-reserved-user-defined-literal -std=c++11'
|
27
|
+
end
|
28
|
+
|
29
|
+
create_makefile('gdal-ruby/osr')
|