1{ stdenv, fetchurl, autoconf, automake, libtool, dos2unix }:
2
3with stdenv.lib;
4
5let
6 version = "6.14.12";
7in
8stdenv.mkDerivation {
9 name = "libpgf-${version}";
10
11 src = fetchurl {
12 url = "mirror://sourceforge/libpgf/libpgf-src-${version}.tar.gz";
13 sha256 = "1ssqjbh6l5jc04f67n47m9bqcigl46c6lgyabyi6cabnh1frk9dx";
14 };
15
16 buildInputs = [ autoconf automake libtool dos2unix ];
17
18 preConfigure = "dos2unix configure.ac; sh autogen.sh";
19
20# configureFlags = optional static "--enable-static --disable-shared";
21
22 meta = {
23 homepage = http://www.libpgf.org/;
24 description = "Progressive Graphics Format";
25 license = stdenv.lib.licenses.lgpl21Plus;
26 };
27}