From 7e639b9d47478d4f94054c7553fd147ba45ab1b5 Mon Sep 17 00:00:00 2001 From: Ed Lafargue Date: Mon, 1 Apr 2019 16:14:46 -0700 Subject: [PATCH] Add compatibility with Macports --- src/urh/dev/native/ExtensionHelper.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/urh/dev/native/ExtensionHelper.py b/src/urh/dev/native/ExtensionHelper.py index 69cd84d89e..fb3d8eea87 100644 --- a/src/urh/dev/native/ExtensionHelper.py +++ b/src/urh/dev/native/ExtensionHelper.py @@ -123,7 +123,11 @@ def get_device_extensions_and_extras(library_dirs=None): if sys.platform == "darwin": # On Mac OS X clang is by default not smart enough to search in the lib dir # see: https://github.com/jopohl/urh/issues/173 + if os.path.isdir("/opt/local/lib"): + library_dirs.append("/opt/local/lib") library_dirs.append("/usr/local/lib") + if os.path.isdir("/opt/local/include"): + include_dirs.append("/opt/local/include") result = []