Fix libLAS darwin build
This commit is contained in:
parent
985cd571f3
commit
406e20b832
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, boost, cmake, gdal, libgeotiff, libtiff, LASzip }:
|
{ stdenv, fetchurl, boost, cmake, gdal, libgeotiff, libtiff, LASzip, fixDarwinDylibNames }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "libLAS-1.8.1";
|
name = "libLAS-1.8.1";
|
||||||
@ -9,14 +9,22 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "0xjfxb3ydvr2258ji3spzyf81g9caap19ql2pk91wiivqsc4mnws";
|
sha256 = "0xjfxb3ydvr2258ji3spzyf81g9caap19ql2pk91wiivqsc4mnws";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ boost cmake gdal libgeotiff libtiff LASzip ];
|
buildInputs = [ boost cmake gdal libgeotiff libtiff LASzip ]
|
||||||
|
++ stdenv.lib.optional stdenv.isDarwin fixDarwinDylibNames;
|
||||||
|
|
||||||
|
cmakeFlags = [
|
||||||
|
"-DGDAL_CONFIG=${gdal}/bin/gdal-config"
|
||||||
|
];
|
||||||
|
|
||||||
|
postFixup = stdenv.lib.optionalString stdenv.isDarwin ''
|
||||||
|
install_name_tool -change "@rpath/liblas.3.dylib" "$out/lib/liblas.3.dylib" $out/lib/liblas_c.dylib
|
||||||
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "LAS 1.0/1.1/1.2 ASPRS LiDAR data translation toolset";
|
description = "LAS 1.0/1.1/1.2 ASPRS LiDAR data translation toolset";
|
||||||
homepage = http://www.liblas.org;
|
homepage = http://www.liblas.org;
|
||||||
license = stdenv.lib.licenses.bsd3;
|
license = stdenv.lib.licenses.bsd3;
|
||||||
platforms = stdenv.lib.platforms.linux;
|
platforms = stdenv.lib.platforms.unix;
|
||||||
maintainers = [ stdenv.lib.maintainers.michelk ];
|
maintainers = [ stdenv.lib.maintainers.michelk ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user