Files
chromebrew/packages/gdal.rb
2017-07-23 09:12:12 -05:00

25 lines
891 B
Ruby

require 'package'
class Gdal < Package
description 'The Geospatial Data Abstraction Library is a translator for raster and vector geospatial data formats.'
homepage 'http://www.gdal.org/'
version '1.11.5'
source_url 'http://download.osgeo.org/gdal/1.11.5/gdal-1.11.5.tar.xz'
source_sha256 'd4fdc3e987b9926545f0a514b4328cd733f2208442f8d03bde630fe1f7eff042'
depends_on 'python27'
depends_on 'curl'
depends_on 'geos'
depends_on 'proj4'
depends_on 'libxml2'
def self.build
system "./configure CFLAGS=\" -fPIC\" --with-png=internal --with-libtiff=internal --with-geotiff=internal --with-jpeg=internal --with-gif=internal --with-curl=/usr/local/bin/curl-config --with-geos=/usr/local/bin/geos-config --with-static-proj4=/usr/local/share/proj --with-python"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end