From 0e99319427e7106a24b7a3c5a431b4a37c497344 Mon Sep 17 00:00:00 2001 From: Ivan Holmes Date: Wed, 17 Aug 2022 22:39:41 +0100 Subject: patch setup.py for haiku library paths diff --git a/setup.py b/setup.py index fbf775d..94d75c8 100644 --- a/setup.py +++ b/setup.py @@ -569,6 +569,7 @@ if ('-h' not in sys.argv and '--help' not in sys.argv openbsd = sys.platform.startswith( 'openbsd') freebsd = sys.platform.startswith( 'freebsd') darwin = sys.platform.startswith( 'darwin') + haiku = sys.platform.startswith( 'haiku') if mupdf_local and (linux or openbsd or freebsd): # setuptools' link command always seems to put '-L @@ -625,7 +626,16 @@ if ('-h' not in sys.argv and '--help' not in sys.argv 'freetype', 'harfbuzz', ] - + + elif haiku: + include_dirs.append("/boot/system/develop/headers/x86/mupdf") + include_dirs.append("/boot/system/develop/headers/mupdf") + include_dirs.append("/boot/system/develop/headers/x86/freetype2") + include_dirs.append("/boot/system/develop/headers/freetype2") + library_dirs.append("/boot/system/lib/x86") + library_dirs.append("/boot/system/lib") + libraries = ["mupdf"] + else: # Windows. assert mupdf_local -- 2.36.1 From ced6643f4b25569aa1ce4c01f2814875caa4e8a5 Mon Sep 17 00:00:00 2001 From: Ivan Holmes Date: Wed, 17 Aug 2022 22:50:41 +0100 Subject: force use of system mupdf diff --git a/setup.py b/setup.py index 94d75c8..e1f9bf0 100644 --- a/setup.py +++ b/setup.py @@ -484,7 +484,8 @@ if ('-h' not in sys.argv and '--help' not in sys.argv # Build MuPDF before setuptools runs, so that it can link with the MuPDF # libraries. # - mupdf_local = get_mupdf() + # mupdf_local = get_mupdf() + mupdf_local = None if mupdf_local: if not mupdf_local.endswith( '/'): mupdf_local += '/' -- 2.36.1