2014-06-26 17:24:44 +01:00
|
|
|
{ stdenv, fetchurl, cmake, zlib, freetype, libjpeg, libtiff, fontconfig
|
2017-02-14 06:43:25 +00:00
|
|
|
, gcc5, openssl, libpng, lua5, pkgconfig, libidn, expat }:
|
2010-01-07 22:47:30 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-02-14 06:43:25 +00:00
|
|
|
name = "podofo-0.9.5";
|
2014-06-26 17:24:44 +01:00
|
|
|
|
2010-01-07 22:47:30 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/podofo/${name}.tar.gz";
|
2017-02-14 06:43:25 +00:00
|
|
|
sha256 = "012kgfx5j5n6w4zkc1d290d2cwjk60jhzsjlr2x19g3yi75q2jc5";
|
2010-01-07 22:47:30 +00:00
|
|
|
};
|
2014-06-26 17:24:44 +01:00
|
|
|
|
2017-02-14 06:43:25 +00:00
|
|
|
propagatedBuildInputs = [ zlib freetype libjpeg libtiff fontconfig openssl libpng libidn expat ];
|
|
|
|
nativeBuildInputs = [ cmake gcc5 pkgconfig ];
|
2014-12-17 18:11:30 +00:00
|
|
|
buildInputs = [ lua5 stdenv.cc.libc ];
|
2013-04-10 15:49:18 +01:00
|
|
|
|
|
|
|
crossAttrs = {
|
|
|
|
propagatedBuildInputs = [ zlib.crossDrv freetype.crossDrv libjpeg.crossDrv
|
|
|
|
libtiff.crossDrv fontconfig.crossDrv openssl.crossDrv libpng.crossDrv
|
2014-12-17 18:11:30 +00:00
|
|
|
lua5.crossDrv stdenv.ccCross.libc ];
|
2013-04-10 15:49:18 +01:00
|
|
|
};
|
|
|
|
|
2010-01-07 22:47:30 +00:00
|
|
|
cmakeFlags = "-DPODOFO_BUILD_SHARED=ON -DPODOFO_BUILD_STATIC=OFF";
|
2010-09-15 19:37:38 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://podofo.sourceforge.net;
|
|
|
|
description = "A library to work with the PDF file format";
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
2017-03-27 18:11:17 +01:00
|
|
|
maintainers = [ ];
|
2010-09-15 19:37:38 +01:00
|
|
|
};
|
2010-01-07 22:47:30 +00:00
|
|
|
}
|