mirror of
https://github.com/openbsd/ports.git
synced 2026-06-17 23:13:55 +02:00
44 lines
1.8 KiB
Plaintext
44 lines
1.8 KiB
Plaintext
hunk 1: allow finding X libs
|
|
|
|
hunks 2-3: find_library_file (which comes from distutils via setuptools)
|
|
has a hardcoded 'shared_lib_extension = ".so"' and only searches for the
|
|
full filename, so it misses OpenBSD-style libfoo.so.X.Y unless there's
|
|
also a static library with a matching name. updates to graphics/tiff and
|
|
graphics/libwebp removes static libraries; patch to workaround.
|
|
https://github.com/pypa/distutils/issues/396
|
|
|
|
Index: setup.py
|
|
--- setup.py.orig
|
|
+++ setup.py
|
|
@@ -671,6 +671,12 @@ class pil_build_ext(build_ext):
|
|
),
|
|
)
|
|
|
|
+ elif sys.platform.startswith("openbsd"):
|
|
+ _add_directory(library_dirs, "/usr/X11R6/lib")
|
|
+ _add_directory(library_dirs, "/usr/local/lib")
|
|
+ _add_directory(include_dirs, "/usr/X11R6/include")
|
|
+ _add_directory(include_dirs, "/usr/local/include")
|
|
+
|
|
elif sys.platform.startswith("netbsd"):
|
|
_add_directory(library_dirs, "/usr/pkg/lib")
|
|
_add_directory(include_dirs, "/usr/pkg/include")
|
|
@@ -792,6 +798,8 @@ class pil_build_ext(build_ext):
|
|
feature.set("tiff", "libtiff")
|
|
elif _find_library_file(self, "tiff"):
|
|
feature.set("tiff", "tiff")
|
|
+ elif sys.platform.startswith("openbsd"):
|
|
+ feature.set("tiff", "tiff")
|
|
|
|
if feature.want("freetype"):
|
|
_dbg("Looking for freetype")
|
|
@@ -872,6 +880,8 @@ class pil_build_ext(build_ext):
|
|
):
|
|
feature.set("webp", prefix + "webp")
|
|
break
|
|
+ elif sys.platform.startswith("openbsd"):
|
|
+ feature.set("webp", "webp")
|
|
|
|
if feature.want("xcb"):
|
|
_dbg("Looking for xcb")
|