Commit 6ba838a1 authored by Ed Reel's avatar Ed Reel Committed by Chris Thurber

Update gdal from 2.2.3 to 2.4.3 (#3669)

Add openjpeg dependency

Add pre-built binaries
parent f65f3350
...@@ -3,46 +3,48 @@ require 'package' ...@@ -3,46 +3,48 @@ require 'package'
class Gdal < Package class Gdal < Package
description 'The Geospatial Data Abstraction Library is a translator for raster and vector geospatial data formats.' description 'The Geospatial Data Abstraction Library is a translator for raster and vector geospatial data formats.'
homepage 'http://www.gdal.org/' homepage 'http://www.gdal.org/'
version '2.2.3' version '2.4.3'
source_url 'http://download.osgeo.org/gdal/2.2.3/gdal-2.2.3.tar.xz' source_url 'https://download.osgeo.org/gdal/2.4.3/gdal-2.4.3.tar.xz'
source_sha256 'a328d63d476b3653f5a25b5f7971e87a15cdf8860ab0729d4b1157ba988b8d0b' source_sha256 'd52dc3e0cff3af3e898d887c4151442989f416e839948e73f0994f0224bbff60'
binary_url ({ binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/gdal-2.2.3-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/gdal-2.4.3-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/gdal-2.2.3-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/gdal-2.4.3-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/gdal-2.2.3-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/gdal-2.4.3-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/gdal-2.2.3-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/gdal-2.4.3-chromeos-x86_64.tar.xz',
}) })
binary_sha256 ({ binary_sha256 ({
aarch64: '87fc7a9a09710e991981b46d4507384e57580e118885ba1fe0f392fb39ae5b8c', aarch64: '78c04f34a1ca8422898d284f7f9696ba6d058c2a1dad9174baeca18a0ca117d1',
armv7l: '87fc7a9a09710e991981b46d4507384e57580e118885ba1fe0f392fb39ae5b8c', armv7l: '78c04f34a1ca8422898d284f7f9696ba6d058c2a1dad9174baeca18a0ca117d1',
i686: 'c3926343dd3c528b21ae50f3b30e5347c2bd0530227fd28b9503cde3539820f7', i686: 'de81c48629f0a44765448cfb43180a394e6714c2c393f1f0262a46f250ad12d1',
x86_64: 'f7a43568512f9426a7951b90006507e4d7080cb61d68fa152a3723c3e0c4e90e', x86_64: '4b6a3d00c6149d1e71fa829f3d6c0b7113c3ad0dca9452da5304447d1ce1598f',
}) })
depends_on 'python27' depends_on 'python27'
depends_on 'openjpeg'
depends_on 'curl' depends_on 'curl'
depends_on 'geos' depends_on 'geos'
depends_on 'proj4' depends_on 'proj4'
depends_on 'libxml2' depends_on 'libxml2'
def self.build def self.build
system "./configure", system 'filefix'
system './configure',
"--prefix=#{CREW_PREFIX}", "--prefix=#{CREW_PREFIX}",
"--libdir=#{CREW_LIB_PREFIX}", "--libdir=#{CREW_LIB_PREFIX}",
"--with-png=internal", '--with-png=internal',
"--with-libtiff=internal", '--with-libtiff=internal',
"--with-geotiff=internal", '--with-geotiff=internal',
"--with-jpeg=internal", '--with-jpeg=internal',
"--with-gif=internal", '--with-gif=internal',
"--with-curl=#{CREW_PREFIX}/bin/curl-config", "--with-curl=#{CREW_PREFIX}/bin/curl-config",
"--with-geos=#{CREW_PREFIX}/bin/geos-config", "--with-geos=#{CREW_PREFIX}/bin/geos-config",
"--with-static-proj4=#{CREW_PREFIX}/share/proj", '--with-python',
"--with-python" '--with-proj'
system "make" system 'make'
end end
def self.install def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment