Lines 1-29
Link Here
|
1 |
--- ./setup.py.orig 2012-11-07 00:17:06.624869638 +0100 |
1 |
--- ./setup.py.orig 2012-11-07 00:17:06.624869638 +0100 |
2 |
+++ ./setup.py 2012-11-07 00:37:17.129040078 +0100 |
2 |
+++ ./setup.py 2012-11-07 00:37:17.129040078 +0100 |
3 |
@@ -57,7 +57,7 @@ |
3 |
@@ -74,6 +74,12 @@ else: |
4 |
|
|
|
5 |
pyaudio_module_sources = ['src/_portaudiomodule.c'] |
6 |
|
7 |
-include_dirs = [] |
8 |
+include_dirs = ['%%PREFIX%%/include/portaudio2'] |
9 |
external_libraries = [] |
10 |
extra_compile_args = ['-fno-strict-aliasing'] |
11 |
extra_link_args = [] |
12 |
@@ -74,6 +74,9 @@ |
13 |
external_libraries = ['portaudio'] |
4 |
external_libraries = ['portaudio'] |
14 |
extra_link_args = [] |
5 |
extra_link_args = [] |
15 |
|
6 |
|
16 |
+if sys.platform.startswith('freebsd'): |
7 |
+if sys.platform.startswith('dragonfly') or \ |
17 |
+ extra_link_args = ['-L%%PREFIX%%/lib/portaudio2'] |
8 |
+ sys.platform.startswith('freebsd'): |
|
|
9 |
+ include_dirs = ['%%LOCALBASE%%/include/portaudio2'] |
10 |
+ external_libraries = [] |
11 |
+ extra_link_args = ['%%LOCALBASE%%/lib/portaudio2/libportaudio.so'] |
18 |
+ |
12 |
+ |
19 |
if sys.platform == 'darwin': |
13 |
if sys.platform == 'darwin': |
20 |
defines += [('MACOSX', '1')] |
14 |
defines += [('MACOSX', '1')] |
21 |
|
15 |
|
22 |
@@ -83,7 +86,6 @@ |
|
|
23 |
|
24 |
if STATIC_LINKING: |
25 |
|
26 |
- # platform specific configuration |
27 |
if sys.platform == 'darwin': |
28 |
extra_link_args += ['-framework', 'CoreAudio', |
29 |
'-framework', 'AudioToolbox', |