mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 08:59:32 +03:00
openexr: 1.7.1 -> 2.2.0
This commit is contained in:
parent
aec96d46c1
commit
51cc9612b7
@ -1,18 +1,31 @@
|
||||
{ stdenv, fetchurl, pkgconfig, zlib, ctl, ilmbase }:
|
||||
|
||||
{ stdenv, callPackage, autoconf, automake, libtool, pkgconfig, zlib, ilmbase }:
|
||||
let
|
||||
source = callPackage ./source.nix { };
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
name = "openexr-1.7.1";
|
||||
name = "openexr-${source.version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://savannah/openexr/${name}.tar.gz";
|
||||
sha256 = "0l2rdbx9lg4qk2ms98hwbsnzpggdrx3pbjl6pcvrrpjqp5m905n6";
|
||||
src = source.src;
|
||||
|
||||
prePatch = ''
|
||||
cd OpenEXR
|
||||
'';
|
||||
|
||||
preConfigure = ''
|
||||
./bootstrap
|
||||
'';
|
||||
|
||||
configureFlags = [ "--enable-imfexamples" ];
|
||||
|
||||
buildInputs = [ autoconf automake libtool pkgconfig ];
|
||||
propagatedBuildInputs = [ ilmbase zlib ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://www.openexr.com/;
|
||||
license = licenses.bsd3;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ wkennington ];
|
||||
};
|
||||
|
||||
buildInputs = [ pkgconfig ctl ];
|
||||
|
||||
propagatedBuildInputs = [ zlib ilmbase ];
|
||||
|
||||
configureFlags = "--enable-imfexamples";
|
||||
|
||||
patches = [ ./stringh.patch ];
|
||||
|
||||
passthru.source = source;
|
||||
}
|
||||
|
11
pkgs/development/libraries/openexr/source.nix
Normal file
11
pkgs/development/libraries/openexr/source.nix
Normal file
@ -0,0 +1,11 @@
|
||||
{ fetchFromGitHub }:
|
||||
rec {
|
||||
version = "2.2.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "openexr";
|
||||
repo = "openexr";
|
||||
rev = "v${version}";
|
||||
sha256 = "030vj2jk3n65x1wl0rmxzpl1bd5mzmld2lzn7sg92svpnghry6a8";
|
||||
};
|
||||
}
|
@ -1,25 +0,0 @@
|
||||
diff --git a/exrenvmap/main.cpp b/exrenvmap/main.cpp
|
||||
index c5afcc5..5e993b3 100644
|
||||
--- a/exrenvmap/main.cpp
|
||||
+++ b/exrenvmap/main.cpp
|
||||
@@ -45,6 +45,7 @@
|
||||
#include <iostream>
|
||||
#include <exception>
|
||||
#include <stdlib.h>
|
||||
+#include <string.h>
|
||||
|
||||
using namespace Imf;
|
||||
using namespace std;
|
||||
diff --git a/exrmaketiled/main.cpp b/exrmaketiled/main.cpp
|
||||
index 5ce4e95..f93ec08 100644
|
||||
--- a/exrmaketiled/main.cpp
|
||||
+++ b/exrmaketiled/main.cpp
|
||||
@@ -44,7 +44,7 @@
|
||||
|
||||
#include <iostream>
|
||||
#include <exception>
|
||||
-#include <string>
|
||||
+#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
using namespace Imf;
|
Loading…
Reference in New Issue
Block a user