mirror of
https://git.freebsd.org/ports.git
synced 2025-06-21 20:50:31 -04:00
audio I/O library. With PyAudio, you can easily use Python to play and record audio on a variety of platforms. WWW: http://people.csail.mit.edu/hubert/pyaudio/ PR: ports/173708 Submitted by: Jaap Akkerhuis <jaap@NLnetLabs.nl>
29 lines
824 B
Python
29 lines
824 B
Python
--- ./setup.py.orig 2012-11-07 00:17:06.624869638 +0100
|
|
+++ ./setup.py 2012-11-07 00:37:17.129040078 +0100
|
|
@@ -57,7 +57,7 @@
|
|
|
|
pyaudio_module_sources = ['src/_portaudiomodule.c']
|
|
|
|
-include_dirs = []
|
|
+include_dirs = ['%%PREFIX%%/include/portaudio2']
|
|
external_libraries = []
|
|
extra_compile_args = ['-fno-strict-aliasing']
|
|
extra_link_args = []
|
|
@@ -74,6 +74,9 @@
|
|
external_libraries = ['portaudio']
|
|
extra_link_args = []
|
|
|
|
+if sys.platform.startswith('freebsd'):
|
|
+ extra_link_args = ['-L%%PREFIX%%/lib/portaudio2']
|
|
+
|
|
if sys.platform == 'darwin':
|
|
defines += [('MACOSX', '1')]
|
|
|
|
@@ -83,7 +86,6 @@
|
|
|
|
if STATIC_LINKING:
|
|
|
|
- # platform specific configuration
|
|
if sys.platform == 'darwin':
|
|
extra_link_args += ['-framework', 'CoreAudio',
|
|
'-framework', 'AudioToolbox',
|