diff options
author | Vladimír Čunát <vcunat@gmail.com> | 2014-06-26 18:24:44 +0200 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2014-06-26 18:24:44 +0200 |
commit | 02a1e85ab17727544415d710fa781aa9aaf1a762 (patch) | |
tree | 3ed092acee70c6451e80f68b16a5a9fac99b6e1a /pkgs/development/libraries/podofo | |
parent | e993219be75a86b69b6a553104c4cd27bb0b80a8 (diff) |
cmake, podofo: fix finding freetype-2.5
Diffstat (limited to 'pkgs/development/libraries/podofo')
-rw-r--r-- | pkgs/development/libraries/podofo/default.nix | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/pkgs/development/libraries/podofo/default.nix b/pkgs/development/libraries/podofo/default.nix index d6b604367fb4f..b1464817a7014 100644 --- a/pkgs/development/libraries/podofo/default.nix +++ b/pkgs/development/libraries/podofo/default.nix @@ -1,12 +1,14 @@ -{stdenv, fetchurl, cmake, zlib, freetype, libjpeg, libtiff, fontconfig, -openssl, libpng, lua5}: +{ stdenv, fetchurl, cmake, zlib, freetype, libjpeg, libtiff, fontconfig +, openssl, libpng, lua5 }: stdenv.mkDerivation rec { name = "podofo-0.9.2"; + src = fetchurl { url = "mirror://sourceforge/podofo/${name}.tar.gz"; sha256 = "1wx3s0718rmhdzdwyi8hgpf2s92sk3hijy8f4glrmnjpiihr2la6"; }; + propagatedBuildInputs = [ zlib freetype libjpeg libtiff fontconfig openssl libpng ]; nativeBuildInputs = [ cmake ]; buildInputs = [ lua5 stdenv.gcc.libc ]; @@ -17,6 +19,15 @@ stdenv.mkDerivation rec { lua5.crossDrv stdenv.gccCross.libc ]; }; + # fix finding freetype-2.5 + preConfigure = '' + substituteInPlace ./CMakeLists.txt \ + --replace FREETYPE_INCLUDE_DIR FREETYPE_INCLUDE_DIRS \ + --replace 'FIND_PACKAGE(FREETYPE' 'FIND_PACKAGE(Freetype' + + rm ./cmake/modules/Find{FREETYPE,ZLIB,PkgConfig}.cmake + ''; + cmakeFlags = "-DPODOFO_BUILD_SHARED=ON -DPODOFO_BUILD_STATIC=OFF"; meta = { |