ports/audio/py-pyaudio/files/patch-setup.py
Pawel Pekala 2c623ca15c - Update to version 0.2.8, add LICENSE [1]
- Fix build on DragonFly and when LOCALBASE != PREFIX [2]
- Make sure to link with audio/portaudio2 [2]

PR:		196054
Submitted by:	maintainer [1], Jan Beich [2]
2015-01-01 19:56:44 +00:00

15 lines
512 B
Python

--- ./setup.py.orig 2012-11-07 00:17:06.624869638 +0100
+++ ./setup.py 2012-11-07 00:37:17.129040078 +0100
@@ -74,6 +74,12 @@ else:
external_libraries = ['portaudio']
extra_link_args = []
+if sys.platform.startswith('dragonfly') or \
+ sys.platform.startswith('freebsd'):
+ include_dirs = ['%%LOCALBASE%%/include/portaudio2']
+ external_libraries = []
+ extra_link_args = ['%%LOCALBASE%%/lib/portaudio2/libportaudio.so']
+
if sys.platform == 'darwin':
defines += [('MACOSX', '1')]