2010-07-28 12:55:54 +01:00
|
|
|
{ stdenv, fetchurl, composableDerivation, unzip, libjpeg, libtiff, zlib
|
|
|
|
, postgresql, mysql, libgeotiff }:
|
2010-06-03 01:51:20 +01:00
|
|
|
|
2010-07-28 12:55:54 +01:00
|
|
|
composableDerivation.composableDerivation {} (fixed: {
|
2010-06-03 01:51:20 +01:00
|
|
|
name = "gdal-1.7.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = ftp://ftp.remotesensing.org/gdal/gdal171.zip;
|
|
|
|
md5 = "f5592cff69b239166c9b64ff81943b1a";
|
|
|
|
};
|
|
|
|
|
2013-12-25 09:28:35 +00:00
|
|
|
buildInputs = [ unzip libjpeg libtiff ];
|
2010-06-03 01:51:20 +01:00
|
|
|
|
|
|
|
# don't use optimization for gcc >= 4.3. That's said to be causeing segfaults
|
|
|
|
preConfigure = "export CFLAGS=-O0; export CXXFLAGS=-O0";
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-jpeg=${libjpeg}"
|
|
|
|
"--with-libtiff=${libtiff}" # optional (without largetiff support
|
|
|
|
"--with-libz=${zlib}" # optional
|
|
|
|
|
|
|
|
"--with-pg=${postgresql}/bin/pg_config"
|
|
|
|
"--with-mysql=${mysql}/bin/mysql_config"
|
|
|
|
"--with-geotiff=${libgeotiff}"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
2010-07-28 12:55:54 +01:00
|
|
|
description = "Translator library for raster geospatial data formats";
|
2010-06-03 01:51:20 +01:00
|
|
|
homepage = http://www.gdal.org/;
|
|
|
|
license = "X/MIT";
|
2010-07-28 12:55:54 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.marcweber ];
|
2010-06-03 01:51:20 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
})
|