nixpkgs/pkgs/by-name/op/openexrid-unstable/openexrid.patch
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

36 lines
1003 B
Diff

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