diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-10-04 13:17:38 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-10-04 13:17:38 +0100 |
commit | 78754950ffa3aaba0f48b1ca1d505caa4a3dfbfa (patch) | |
tree | 285997f09f32d26633ba2beffd30c972a4ec87a2 /dev-python/python-rtmidi/files | |
parent | bf99f8024d68382f76665735c70ae912331bc2ca (diff) |
gentoo auto-resync : 04:10:2022 - 13:17:38
Diffstat (limited to 'dev-python/python-rtmidi/files')
-rw-r--r-- | dev-python/python-rtmidi/files/python-rtmidi-1.4.9-unbundle_rtmidi.patch | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/dev-python/python-rtmidi/files/python-rtmidi-1.4.9-unbundle_rtmidi.patch b/dev-python/python-rtmidi/files/python-rtmidi-1.4.9-unbundle_rtmidi.patch index ecd9f53b108c..45cece4b2eb9 100644 --- a/dev-python/python-rtmidi/files/python-rtmidi-1.4.9-unbundle_rtmidi.patch +++ b/dev-python/python-rtmidi/files/python-rtmidi-1.4.9-unbundle_rtmidi.patch @@ -9,25 +9,24 @@ elif exists(join(SRC_DIR, "_rtmidi.cpp")): cythonize = lambda x: x # noqa sources = [join(SRC_DIR, "_rtmidi.cpp"), join(SRC_DIR, "rtmidi", "RtMidi.cpp")] -@@ -145,18 +145,18 @@ +@@ -145,18 +145,13 @@ if sys.platform.startswith('linux'): - if alsa and find_library('asound'): - define_macros.append(("__LINUX_ALSA__", None)) - libraries.append('asound') -- -- if jack: -- check_for_jack(define_macros, libraries) -- - if not find_library('pthread'): - sys.exit("The 'pthread' library is required to build python-rtmidi on" - "Linux. Please install the libc6 development package.") + if not find_library('rtmidi'): + sys.exit("Failed to find librtmidi") - libraries.append("pthread") -+ +- if jack: +- check_for_jack(define_macros, libraries) +- +- if not find_library('pthread'): +- sys.exit("The 'pthread' library is required to build python-rtmidi on" +- "Linux. Please install the libc6 development package.") +- +- libraries.append("pthread") + res = subprocess.check_output(['pkg-config', '--variable', 'includedir', 'rtmidi']) + rtmidi_include_dir = res.decode().strip() + include_dirs.append(rtmidi_include_dir) @@ -35,7 +34,7 @@ elif sys.platform.startswith('darwin'): if jack: check_for_jack(define_macros, libraries) -@@ -197,7 +197,7 @@ +@@ -197,7 +192,7 @@ # Finally, set up our distribution setup( packages=['rtmidi'], |