nixpkgs/pkgs/development/libraries/podofo/default.nix

29 lines
974 B
Nix
Raw Normal View History

{stdenv, fetchurl, cmake, zlib, freetype, libjpeg, libtiff, fontconfig,
openssl, libpng, lua5}:
stdenv.mkDerivation rec {
2013-03-18 12:20:43 +01:00
name = "podofo-0.9.2";
src = fetchurl {
url = "mirror://sourceforge/podofo/${name}.tar.gz";
2013-03-18 12:20:43 +01:00
sha256 = "1wx3s0718rmhdzdwyi8hgpf2s92sk3hijy8f4glrmnjpiihr2la6";
};
propagatedBuildInputs = [ zlib freetype libjpeg libtiff fontconfig openssl libpng ];
nativeBuildInputs = [ cmake ];
buildInputs = [ lua5 stdenv.gcc.libc ];
2013-04-10 16:49:18 +02:00
crossAttrs = {
propagatedBuildInputs = [ zlib.crossDrv freetype.crossDrv libjpeg.crossDrv
libtiff.crossDrv fontconfig.crossDrv openssl.crossDrv libpng.crossDrv
lua5.crossDrv stdenv.gccCross.libc ];
};
cmakeFlags = "-DPODOFO_BUILD_SHARED=ON -DPODOFO_BUILD_STATIC=OFF";
meta = {
homepage = http://podofo.sourceforge.net;
description = "A library to work with the PDF file format";
platforms = stdenv.lib.platforms.all;
maintainers = [ stdenv.lib.maintainers.urkud ];
};
}