Files
chromebrew/packages/gdal.rb
2017-05-30 05:20:56 +02:00

25 lines
867 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.2-1'
source_url 'http://download.osgeo.org/gdal/1.11.2/gdal-1.11.2.tar.gz'
source_sha1 '6f3ccbe5643805784812072a33c25be0bbff00db'
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