LASzip, LASzip2: Rename LASzip -> LASzip2, add LASzip 3.

We have to keep the old one because libLAS does not support LASzip 3,
see https://github.com/libLAS/libLAS/issues/144.
This commit is contained in:
Niklas Hambüchen
2020-06-26 15:06:50 +02:00
parent 75c7f58507
commit 0866700e3b
4 changed files with 37 additions and 9 deletions
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, boost, cmake, gdal, libgeotiff, libtiff, LASzip, fixDarwinDylibNames }:
{ stdenv, fetchurl, boost, cmake, gdal, libgeotiff, libtiff, LASzip2, fixDarwinDylibNames }:
stdenv.mkDerivation rec {
name = "libLAS-1.8.1";
@@ -9,13 +9,15 @@ stdenv.mkDerivation rec {
sha256 = "0xjfxb3ydvr2258ji3spzyf81g9caap19ql2pk91wiivqsc4mnws";
};
buildInputs = [ boost cmake gdal libgeotiff libtiff LASzip ]
buildInputs = [ boost cmake gdal libgeotiff libtiff LASzip2 ]
++ stdenv.lib.optional stdenv.isDarwin fixDarwinDylibNames;
cmakeFlags = [
"-DGDAL_CONFIG=${gdal}/bin/gdal-config"
"-DWITH_LASZIP=ON"
"-DLASZIP_INCLUDE_DIR=${LASzip}/include"
# libLAS is currently not compatible with LASzip 3,
# see https://github.com/libLAS/libLAS/issues/144.
"-DLASZIP_INCLUDE_DIR=${LASzip2}/include"
"-DCMAKE_EXE_LINKER_FLAGS=-pthread"
];