openexrid-unstable: init at 2017-09-17
This commit is contained in:
parent
d99e00c9d8
commit
afc6a8a259
50
pkgs/development/libraries/openexrid-unstable/default.nix
Normal file
50
pkgs/development/libraries/openexrid-unstable/default.nix
Normal file
@ -0,0 +1,50 @@
|
||||
{ stdenv, fetchFromGitHub, unzip, re2, openfx, zlib, ilmbase, mesa, openexr }:
|
||||
|
||||
stdenv.mkDerivation rec
|
||||
{
|
||||
name = "openexrid-unstable-${version}";
|
||||
version = "2017-09-17";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "MercenariesEngineering";
|
||||
repo = "openexrid";
|
||||
rev = "bec0081548a096f9bcdd1504970c96264b0fc050";
|
||||
sha256 = "0h4b74lv59p4hhrvrqdmlnchn2i0v5id4kl8xc7j26l9884q0383";
|
||||
};
|
||||
|
||||
outputs = [ "dev" "out" "lib" ];
|
||||
|
||||
patches = [ ./openexrid.patch ];
|
||||
|
||||
NIX_CFLAGS_COMPILE=''-I${ilmbase.dev}/include/OpenEXR
|
||||
-I${openexr.dev}/include/OpenEXR
|
||||
-I${openfx.dev}/include/OpenFX
|
||||
'';
|
||||
|
||||
buildInputs = [ unzip re2 openfx zlib ilmbase mesa openexr ];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
buildPhase = ''
|
||||
mkdir openexrid/release
|
||||
|
||||
PREFIX=$out make -C openexrid install
|
||||
|
||||
mkdir $dev;
|
||||
mkdir $lib;
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
find $out
|
||||
mv $out/include $dev/
|
||||
mv $out/lib $lib/
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "OpenEXR files able to isolate any object of a CG image with a perfect antialiazing";
|
||||
homepage = "https://github.com/MercenariesEngineering/openexrid";
|
||||
maintainers = [ maintainers.guibou ];
|
||||
platforms = platforms.all;
|
||||
license = licenses.mit;
|
||||
};
|
||||
}
|
@ -0,0 +1,35 @@
|
||||
diff --git a/makefile b/makefile
|
||||
index 7a92771..31ef664 100644
|
||||
--- a/makefile
|
||||
+++ b/makefile
|
||||
@@ -8,8 +8,8 @@ _openexrid:
|
||||
_openfx:
|
||||
make -C openfx
|
||||
|
||||
-_test: _openexrid
|
||||
- make -C test
|
||||
+#_test: _openexrid
|
||||
+# make -C test
|
||||
|
||||
clean:
|
||||
make -C openfx clean
|
||||
diff --git a/makefile.config b/makefile.config
|
||||
index 0c6cdfa..0166c4c 100644
|
||||
--- a/makefile.config
|
||||
+++ b/makefile.config
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
PREFIX ?= ~/openexrid
|
||||
|
||||
-OFX_INCLUDE ?= /usr/include/openfx
|
||||
+OFX_INCLUDE ?= /usr/include/OpenFX
|
||||
EXR_INCLUDE ?= /usr/include/OpenEXR
|
||||
EXR_LIB ?= /usr/lib
|
||||
RE2_INCLUDE ?= /usr/include
|
||||
@@ -13,5 +13,5 @@ RE2_LIB ?= /usr/lib
|
||||
VERSION ?= release
|
||||
CPPFLAGS += -O3 -Wall -DNDEBUG -fPIC -I $(EXR_INCLUDE) -I $(OFX_INCLUDE) -I $(RE2_INCLUDE) -Dlinux
|
||||
LDFLAGS += -L$(EXR_LIB) -L$(RE2_LIB) -L../openexrid/$(VERSION) -lpthread
|
||||
-LDFLAGS += -Wl,-Bstatic -lopenexrid -lIlmImf -lIlmThread -lIex -lImath -lHalf -lz -lre2 -Wl,-Bdynamic
|
||||
+LDFLAGS += -lopenexrid -lIlmImf -lIlmThread -lIex -lImath -lHalf -lz -lre2 -Wl,-Bdynamic
|
||||
|
@ -10032,6 +10032,8 @@ with pkgs;
|
||||
|
||||
openexr = callPackage ../development/libraries/openexr { };
|
||||
|
||||
openexrid-unstable = callPackage ../development/libraries/openexrid-unstable { };
|
||||
|
||||
openldap = callPackage ../development/libraries/openldap { };
|
||||
|
||||
opencolorio = callPackage ../development/libraries/opencolorio { };
|
||||
|
Loading…
Reference in New Issue
Block a user