2021-01-15 09:19:50 +00:00
|
|
|
{ lib, stdenv, fetchurl, autoconf, automake, libtool, dos2unix, libpgf, freeimage, doxygen }:
|
2015-01-23 15:08:21 +00:00
|
|
|
|
2021-01-15 09:19:50 +00:00
|
|
|
with lib;
|
2015-01-23 15:08:21 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
version = "6.14.12";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
2019-08-13 22:52:01 +01:00
|
|
|
pname = "pgf";
|
|
|
|
inherit version;
|
2015-01-23 15:08:21 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/libpgf/pgf-console-src-${version}.tar.gz";
|
|
|
|
sha256 = "1vfm12cfq3an3xg0679bcwdmjq2x1bbij1iwsmm60hwmrm3zvab0";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ autoconf automake libtool dos2unix libpgf freeimage doxygen ];
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
sed 1i'#include <inttypes.h>' -i src/PGF.cpp
|
|
|
|
sed s/__int64/int64_t/g -i src/PGF.cpp
|
2019-09-08 15:46:03 +01:00
|
|
|
rm include/FreeImage.h include/FreeImagePlus.h
|
2015-01-23 15:08:21 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
preConfigure = "dos2unix configure.ac; sh autogen.sh";
|
|
|
|
|
|
|
|
# configureFlags = optional static "--enable-static --disable-shared";
|
|
|
|
|
|
|
|
meta = {
|
2020-04-24 15:58:19 +01:00
|
|
|
homepage = "https://www.libpgf.org/";
|
2015-01-23 15:08:21 +00:00
|
|
|
description = "Progressive Graphics Format command line program";
|
2021-01-15 09:19:50 +00:00
|
|
|
license = lib.licenses.lgpl21Plus;
|
|
|
|
platforms = lib.platforms.linux;
|
2015-01-23 15:08:21 +00:00
|
|
|
};
|
|
|
|
}
|