2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, cmake, zlib, freetype, libjpeg, libtiff, fontconfig
|
2021-02-13 14:23:35 +00:00
|
|
|
, openssl, libpng, lua5, pkg-config, libidn, expat
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2022-05-18 14:49:53 +00:00
|
|
|
version = "0.9.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "podofo";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/podofo/${pname}-${version}.tar.gz";
|
2022-05-18 14:49:53 +00:00
|
|
|
sha256 = "sha256-XeYH4V8ZK4rZBzgwB1nYjeoPXM3OO/AASKDJMrxkUVQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" "lib" ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [ zlib freetype libjpeg libtiff fontconfig openssl libpng
|
|
|
|
libidn expat lua5 ];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DPODOFO_BUILD_SHARED=ON"
|
|
|
|
"-DPODOFO_BUILD_STATIC=OFF"
|
|
|
|
"-DCMAKE_BUILD_WITH_INSTALL_NAME_DIR=ON"
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
moveToOutput lib "$lib"
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://podofo.sourceforge.net";
|
|
|
|
description = "A library to work with the PDF file format";
|
|
|
|
platforms = platforms.all;
|
2021-02-13 14:23:35 +00:00
|
|
|
license = with licenses; [ gpl2Plus lgpl2Plus ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|