mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 12:29:02 +02:00
pgf_graphics: 6.14.12 -> 7.21.7
This commit is contained in:
parent
131957d90f
commit
ac17c2b4b3
|
@ -1,26 +1,37 @@
|
||||||
{ lib, stdenv, fetchurl, autoconf, automake, libtool, dos2unix, libpgf, freeimage, doxygen }:
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchzip
|
||||||
|
, autoreconfHook
|
||||||
|
, dos2unix
|
||||||
|
, doxygen
|
||||||
|
, freeimage
|
||||||
|
, libpgf
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "pgf";
|
pname = "pgf";
|
||||||
version = "6.14.12";
|
version = "7.21.7";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchzip {
|
||||||
url = "mirror://sourceforge/libpgf/pgf-console-src-${version}.tar.gz";
|
url = "mirror://sourceforge/libpgf/libpgf/${version}/pgf-console.zip";
|
||||||
sha256 = "1vfm12cfq3an3xg0679bcwdmjq2x1bbij1iwsmm60hwmrm3zvab0";
|
hash = "sha256-W9eXYhbynLtvZQsn724Uw0SZ5TuyK2MwREwYKGFhJj0=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ autoconf automake ];
|
postPatch = ''
|
||||||
buildInputs = [ libtool dos2unix libpgf freeimage doxygen ];
|
find . -type f | xargs dos2unix
|
||||||
|
mv README.txt README
|
||||||
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";
|
nativeBuildInputs = [
|
||||||
|
autoreconfHook
|
||||||
|
dos2unix
|
||||||
|
doxygen
|
||||||
|
];
|
||||||
|
|
||||||
# configureFlags = optional static "--enable-static --disable-shared";
|
buildInputs = [
|
||||||
|
freeimage
|
||||||
|
libpgf
|
||||||
|
];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "https://www.libpgf.org/";
|
homepage = "https://www.libpgf.org/";
|
||||||
|
|
Loading…
Reference in a new issue