diff options
-rw-r--r-- | pkgs/development/libraries/podofo/default.nix | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/pkgs/development/libraries/podofo/default.nix b/pkgs/development/libraries/podofo/default.nix index b68bc20ecf350..d7569c017a7a5 100644 --- a/pkgs/development/libraries/podofo/default.nix +++ b/pkgs/development/libraries/podofo/default.nix @@ -1,16 +1,16 @@ { stdenv, fetchurl, cmake, zlib, freetype, libjpeg, libtiff, fontconfig -, gcc5, openssl, libpng, lua5 }: +, gcc5, openssl, libpng, lua5, pkgconfig, libidn, expat }: stdenv.mkDerivation rec { - name = "podofo-0.9.4"; + name = "podofo-0.9.5"; src = fetchurl { url = "mirror://sourceforge/podofo/${name}.tar.gz"; - sha256 = "0ngqgwl38afmzcj2zpf18a2g63vhm2fp45cbf9z62129rdgm1pyc"; + sha256 = "012kgfx5j5n6w4zkc1d290d2cwjk60jhzsjlr2x19g3yi75q2jc5"; }; - propagatedBuildInputs = [ zlib freetype libjpeg libtiff fontconfig openssl libpng ]; - nativeBuildInputs = [ cmake gcc5 ]; + propagatedBuildInputs = [ zlib freetype libjpeg libtiff fontconfig openssl libpng libidn expat ]; + nativeBuildInputs = [ cmake gcc5 pkgconfig ]; buildInputs = [ lua5 stdenv.cc.libc ]; crossAttrs = { @@ -19,15 +19,6 @@ stdenv.mkDerivation rec { lua5.crossDrv stdenv.ccCross.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 = { |