3
0
Fork 0
forked from mirrors/nixpkgs

Adding a pgf command line tool.

(cherry picked from commit 442148e20a)
This commit is contained in:
Lluís Batlle i Rossell 2015-01-23 16:08:21 +01:00
parent 031af8f0cf
commit 84e9a2e636
2 changed files with 34 additions and 0 deletions

View file

@ -0,0 +1,32 @@
{ stdenv, fetchurl, autoconf, automake, libtool, dos2unix, libpgf, freeimage, doxygen }:
with stdenv.lib;
let
version = "6.14.12";
in
stdenv.mkDerivation {
name = "pgf-${version}";
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
'';
preConfigure = "dos2unix configure.ac; sh autogen.sh";
# configureFlags = optional static "--enable-static --disable-shared";
meta = {
homepage = http://www.libpgf.org/;
description = "Progressive Graphics Format command line program";
license = stdenv.lib.licenses.lgpl21Plus;
};
}

View file

@ -1477,6 +1477,8 @@ let
partimage = callPackage ../tools/backup/partimage { }; partimage = callPackage ../tools/backup/partimage { };
pgf_graphics = callPackage ../tools/graphics/pgf { };
pigz = callPackage ../tools/compression/pigz { }; pigz = callPackage ../tools/compression/pigz { };
pxz = callPackage ../tools/compression/pxz { }; pxz = callPackage ../tools/compression/pxz { };