From 80eafb39e140b64f1366b26f5aa210ae2d80e68a Mon Sep 17 00:00:00 2001 From: Josef Kemetmueller Date: Sun, 13 Nov 2016 13:18:39 +0100 Subject: mapnik: Make dependencies explicit for SCons This is necessary to fix the build for (at least) darwin. If the arguments are not specified explicitly then homebrew-install locations are assumed for at least "icu". Closes #20395. --- pkgs/development/libraries/mapnik/default.nix | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) (limited to 'pkgs/development/libraries/mapnik') diff --git a/pkgs/development/libraries/mapnik/default.nix b/pkgs/development/libraries/mapnik/default.nix index 1df9cf0492dc..e5845fee3041 100644 --- a/pkgs/development/libraries/mapnik/default.nix +++ b/pkgs/development/libraries/mapnik/default.nix @@ -24,7 +24,31 @@ stdenv.mkDerivation rec { ]; configurePhase = '' - scons configure PREFIX="$out" + scons configure PREFIX="$out" BOOST_INCLUDES="${boost.dev}/include" \ + BOOST_LIBS="${boost.out}/lib" \ + CAIRO_INCLUDES="${cairo.dev}/include" \ + CAIRO_LIBS="${cairo.out}/lib" \ + FREETYPE_INCLUDES="${freetype.dev}/include" \ + FREETYPE_LIBS="${freetype.out}/lib" \ + GDAL_CONFIG="${gdal}/bin/gdal-config" \ + HB_INCLUDES="${harfbuzz.dev}/include" \ + HB_LIBS="${harfbuzz.out}/lib" \ + ICU_INCLUDES="${icu.dev}/include" \ + ICU_LIBS="${icu.out}/lib" \ + JPEG_INCLUDES="${libjpeg.dev}/include" \ + JPEG_LIBS="${libjpeg.out}/lib" \ + PNG_INCLUDES="${libpng.dev}/include" \ + PNG_LIBS="${libpng.out}/lib" \ + PROJ_INCLUDES="${proj}/include" \ + PROJ_LIBS="${proj}/lib" \ + SQLITE_INCLUDES="${sqlite.dev}/include" \ + SQLITE_LIBS="${sqlite.out}/lib" \ + TIFF_INCLUDES="${libtiff.dev}/include" \ + TIFF_LIBS="${libtiff.out}/lib" \ + WEBP_INCLUDES="${libwebp}/include" \ + WEBP_LIBS="${libwebp}/lib" \ + XML2_INCLUDES="${libxml2.dev}/include" \ + XML2_LIBS="${libxml2.out}/lib" ''; buildPhase = false; -- cgit 1.4.1