aboutsummaryrefslogtreecommitdiff
path: root/audio/py-pyaudio/files/patch-setup.py
blob: 4feed50c13bdf0ed045391ce9ed07ae5a7ce0abd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- setup.py.orig	2016-04-04 21:15:34 UTC
+++ setup.py
@@ -63,6 +63,12 @@ extra_link_args = []
 scripts = []
 defines = []
 
+if sys.platform.startswith('dragonfly') or \
+   sys.platform.startswith('freebsd'):
+    include_dirs = ['%%LOCALBASE%%/include/']
+    external_libraries = []
+    extra_link_args = ['%%LOCALBASE%%/lib/libportaudio.so']
+
 if sys.platform == 'darwin':
     defines += [('MACOSX', '1')]
     if mac_sysroot_path: