2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, autoconf, automake, libtool, dos2unix, libpgf, freeimage, doxygen }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-17 21:14:59 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "pgf";
|
2021-07-17 21:14:59 +00:00
|
|
|
version = "6.14.12";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/libpgf/pgf-console-src-${version}.tar.gz";
|
|
|
|
sha256 = "1vfm12cfq3an3xg0679bcwdmjq2x1bbij1iwsmm60hwmrm3zvab0";
|
|
|
|
};
|
|
|
|
|
2022-04-03 18:54:34 +00:00
|
|
|
nativeBuildInputs = [ autoconf automake ];
|
|
|
|
buildInputs = [ libtool dos2unix libpgf freeimage doxygen ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
sed 1i'#include <inttypes.h>' -i src/PGF.cpp
|
|
|
|
sed s/__int64/int64_t/g -i src/PGF.cpp
|
|
|
|
rm include/FreeImage.h include/FreeImagePlus.h
|
|
|
|
'';
|
|
|
|
|
|
|
|
preConfigure = "dos2unix configure.ac; sh autogen.sh";
|
|
|
|
|
|
|
|
# configureFlags = optional static "--enable-static --disable-shared";
|
|
|
|
|
|
|
|
meta = {
|
2020-05-03 17:38:23 +00:00
|
|
|
homepage = "https://www.libpgf.org/";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Progressive Graphics Format command line program";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.lgpl21Plus;
|
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|