mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 07:31:20 +00:00
Merge pull request #27152 from phile314-fh/szip-optional
PostGIS/GDAL/hdf4: Make unfree szip dependency optional.
This commit is contained in:
commit
958a757f1d
|
@ -2,8 +2,8 @@
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, cmake
|
, cmake
|
||||||
, libjpeg
|
, libjpeg
|
||||||
, szip
|
|
||||||
, zlib
|
, zlib
|
||||||
|
, szip ? null
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
|
@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
|
||||||
zlib
|
zlib
|
||||||
];
|
];
|
||||||
|
|
||||||
preConfigure = "export SZIP_INSTALL=${szip}";
|
preConfigure = stdenv.lib.optionalString (szip != null) "export SZIP_INSTALL=${szip}";
|
||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
"-DBUILD_SHARED_LIBS=ON"
|
"-DBUILD_SHARED_LIBS=ON"
|
||||||
|
@ -31,11 +31,12 @@ stdenv.mkDerivation rec {
|
||||||
"-DHDF4_BUILD_WITH_INSTALL_NAME=OFF"
|
"-DHDF4_BUILD_WITH_INSTALL_NAME=OFF"
|
||||||
"-DHDF4_ENABLE_JPEG_LIB_SUPPORT=ON"
|
"-DHDF4_ENABLE_JPEG_LIB_SUPPORT=ON"
|
||||||
"-DHDF4_ENABLE_NETCDF=OFF"
|
"-DHDF4_ENABLE_NETCDF=OFF"
|
||||||
"-DHDF4_ENABLE_SZIP_ENCODING=ON"
|
|
||||||
"-DHDF4_ENABLE_SZIP_SUPPORT=ON"
|
|
||||||
"-DHDF4_ENABLE_Z_LIB_SUPPORT=ON"
|
"-DHDF4_ENABLE_Z_LIB_SUPPORT=ON"
|
||||||
"-DHDF4_BUILD_FORTRAN=OFF"
|
"-DHDF4_BUILD_FORTRAN=OFF"
|
||||||
"-DJPEG_DIR=${libjpeg}"
|
"-DJPEG_DIR=${libjpeg}"
|
||||||
|
] ++ stdenv.lib.optionals (szip != null) [
|
||||||
|
"-DHDF4_ENABLE_SZIP_ENCODING=ON"
|
||||||
|
"-DHDF4_ENABLE_SZIP_SUPPORT=ON"
|
||||||
];
|
];
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
|
@ -2362,7 +2362,9 @@ with pkgs;
|
||||||
|
|
||||||
hddtemp = callPackage ../tools/misc/hddtemp { };
|
hddtemp = callPackage ../tools/misc/hddtemp { };
|
||||||
|
|
||||||
hdf4 = callPackage ../tools/misc/hdf4 { };
|
hdf4 = callPackage ../tools/misc/hdf4 {
|
||||||
|
szip = null;
|
||||||
|
};
|
||||||
|
|
||||||
hdf5 = callPackage ../tools/misc/hdf5 {
|
hdf5 = callPackage ../tools/misc/hdf5 {
|
||||||
gfortran = null;
|
gfortran = null;
|
||||||
|
|
Loading…
Reference in a new issue