about summary refs log tree commit diff
path: root/pkgs/development/python-modules/glymur/set-lib-paths.patch
blob: 4ae7b58b1cdc01ae15c98d3dcfde8c1b06c3c921 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/glymur/config.py b/glymur/config.py
index 962e299..dab44ba 100644
--- a/glymur/config.py
+++ b/glymur/config.py
@@ -53,6 +53,11 @@ def _determine_full_path(libname):
     if path is not None:
         return path
 
+    if libname == "openjp2":
+        return "@openjp2_lib@"
+    if libname == "tiff":
+        return "@tiff_lib@"
+
     # No joy on config file.  Cygwin?  Cygwin is a bit of an odd case.
     if platform.system().startswith('CYGWIN'):
         g = pathlib.Path('/usr/bin').glob('cygopenjp2*.dll')