mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
pgf_graphics: 6.14.12 -> 7.21.7
This commit is contained in:
parent
131957d90f
commit
ac17c2b4b3
1 changed files with 25 additions and 14 deletions
|
@ -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 {
|
||||
pname = "pgf";
|
||||
version = "6.14.12";
|
||||
version = "7.21.7";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/libpgf/pgf-console-src-${version}.tar.gz";
|
||||
sha256 = "1vfm12cfq3an3xg0679bcwdmjq2x1bbij1iwsmm60hwmrm3zvab0";
|
||||
src = fetchzip {
|
||||
url = "mirror://sourceforge/libpgf/libpgf/${version}/pgf-console.zip";
|
||||
hash = "sha256-W9eXYhbynLtvZQsn724Uw0SZ5TuyK2MwREwYKGFhJj0=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ autoconf automake ];
|
||||
buildInputs = [ 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
|
||||
rm include/FreeImage.h include/FreeImagePlus.h
|
||||
postPatch = ''
|
||||
find . -type f | xargs dos2unix
|
||||
mv README.txt README
|
||||
'';
|
||||
|
||||
preConfigure = "dos2unix configure.ac; sh autogen.sh";
|
||||
nativeBuildInputs = [
|
||||
autoreconfHook
|
||||
dos2unix
|
||||
doxygen
|
||||
];
|
||||
|
||||
# configureFlags = optional static "--enable-static --disable-shared";
|
||||
buildInputs = [
|
||||
freeimage
|
||||
libpgf
|
||||
];
|
||||
|
||||
meta = {
|
||||
homepage = "https://www.libpgf.org/";
|
||||
|
|
Loading…
Reference in a new issue