git.iko.soy/typeable/nixpkgs
on master help sign in
openexrid-unstable: init at 2017-09-17
commitafc6a8a25944e5d980cdf41a6b7a22760ab2595e authorGuillaume Bouchard <guillaum.bouchard@gmail.com> dateSun 17 Sep 2017, 22:31 (9 years ago) parentd99e00c
3 files changed+87
pkgs/development/libraries/openexrid-unstable/default.nix+50 pkgs/development/libraries/openexrid-unstable/openexrid.patch+35 pkgs/top-level/all-packages.nix+2
pkgs/development/libraries/openexrid-unstable/default.nixnew file+50
@@ -0,0 +1,50 @@
1+{ stdenv, fetchFromGitHub, unzip, re2, openfx, zlib, ilmbase, mesa, openexr }:
2+
3+stdenv.mkDerivation rec
4+{
5+ name = "openexrid-unstable-${version}";
6+ version = "2017-09-17";
7+
8+ src = fetchFromGitHub {
9+ owner = "MercenariesEngineering";
10+ repo = "openexrid";
11+ rev = "bec0081548a096f9bcdd1504970c96264b0fc050";
12+ sha256 = "0h4b74lv59p4hhrvrqdmlnchn2i0v5id4kl8xc7j26l9884q0383";
13+ };
14+
15+ outputs = [ "dev" "out" "lib" ];
16+
17+ patches = [ ./openexrid.patch ];
18+
19+ NIX_CFLAGS_COMPILE=''-I${ilmbase.dev}/include/OpenEXR
20+ -I${openexr.dev}/include/OpenEXR
21+ -I${openfx.dev}/include/OpenFX
22+ '';
23+
24+ buildInputs = [ unzip re2 openfx zlib ilmbase mesa openexr ];
25+
26+ enableParallelBuilding = true;
27+
28+ buildPhase = ''
29+ mkdir openexrid/release
30+
31+ PREFIX=$out make -C openexrid install
32+
33+ mkdir $dev;
34+ mkdir $lib;
35+ '';
36+
37+ installPhase = ''
38+ find $out
39+ mv $out/include $dev/
40+ mv $out/lib $lib/
41+ '';
42+
43+ meta = with stdenv.lib; {
44+ description = "OpenEXR files able to isolate any object of a CG image with a perfect antialiazing";
45+ homepage = "https://github.com/MercenariesEngineering/openexrid";
46+ maintainers = [ maintainers.guibou ];
47+ platforms = platforms.all;
48+ license = licenses.mit;
49+ };
50+}
pkgs/development/libraries/openexrid-unstable/openexrid.patchnew file+35
@@ -0,0 +1,35 @@
1+diff --git a/makefile b/makefile
2+index 7a92771..31ef664 100644
3+--- a/makefile
4++++ b/makefile
5+@@ -8,8 +8,8 @@ _openexrid:
6+ _openfx:
7+ make -C openfx
8+
9+-_test: _openexrid
10+- make -C test
11++#_test: _openexrid
12++# make -C test
13+
14+ clean:
15+ make -C openfx clean
16+diff --git a/makefile.config b/makefile.config
17+index 0c6cdfa..0166c4c 100644
18+--- a/makefile.config
19++++ b/makefile.config
20+@@ -4,7 +4,7 @@
21+
22+ PREFIX ?= ~/openexrid
23+
24+-OFX_INCLUDE ?= /usr/include/openfx
25++OFX_INCLUDE ?= /usr/include/OpenFX
26+ EXR_INCLUDE ?= /usr/include/OpenEXR
27+ EXR_LIB ?= /usr/lib
28+ RE2_INCLUDE ?= /usr/include
29+@@ -13,5 +13,5 @@ RE2_LIB ?= /usr/lib
30+ VERSION ?= release
31+ CPPFLAGS += -O3 -Wall -DNDEBUG -fPIC -I $(EXR_INCLUDE) -I $(OFX_INCLUDE) -I $(RE2_INCLUDE) -Dlinux
32+ LDFLAGS += -L$(EXR_LIB) -L$(RE2_LIB) -L../openexrid/$(VERSION) -lpthread
33+-LDFLAGS += -Wl,-Bstatic -lopenexrid -lIlmImf -lIlmThread -lIex -lImath -lHalf -lz -lre2 -Wl,-Bdynamic
34++LDFLAGS += -lopenexrid -lIlmImf -lIlmThread -lIex -lImath -lHalf -lz -lre2 -Wl,-Bdynamic
35+
pkgs/top-level/all-packages.nix+2
@@ -10032,6 +10032,8 @@ with pkgs;
1003210032
1003310033 openexr = callPackage ../development/libraries/openexr { };
1003410034
10035+ openexrid-unstable = callPackage ../development/libraries/openexrid-unstable { };
10036+
1003510037 openldap = callPackage ../development/libraries/openldap { };
1003610038
1003710039 opencolorio = callPackage ../development/libraries/opencolorio { };