Lines 1-15
Link Here
|
1 |
--- setup.py.orig 2015-10-19 05:48:12 UTC |
1 |
--- setup.py.orig 2022-07-19 03:53:30 UTC |
2 |
+++ setup.py |
2 |
+++ setup.py |
3 |
@@ -63,6 +63,12 @@ extra_link_args = [] |
3 |
@@ -56,6 +56,12 @@ def setup_extension(): |
4 |
scripts = [] |
4 |
extra_link_args = [] |
5 |
defines = [] |
5 |
defines = [] |
6 |
|
6 |
|
7 |
+if sys.platform.startswith('dragonfly') or \ |
7 |
+ if sys.platform.startswith('dragonfly') or \ |
8 |
+ sys.platform.startswith('freebsd'): |
8 |
+ sys.platform.startswith('freebsd'): |
9 |
+ include_dirs = ['%%LOCALBASE%%/include/'] |
9 |
+ include_dirs = ['%%LOCALBASE%%/include/'] |
10 |
+ external_libraries = [] |
10 |
+ external_libraries = [] |
11 |
+ extra_link_args = ['%%LOCALBASE%%/lib/libportaudio.so'] |
11 |
+ extra_link_args = ['%%LOCALBASE%%/lib/libportaudio.so'] |
12 |
+ |
12 |
+ |
13 |
if sys.platform == 'darwin': |
13 |
if sys.platform == 'darwin': |
14 |
defines += [('MACOSX', '1')] |
14 |
# Support only dynamic linking with portaudio, since the supported path |
15 |
if mac_sysroot_path: |
15 |
# is to install portaudio using a package manager (e.g., Homebrew). |