summaryrefslogtreecommitdiff
path: root/audio/py-pyaudio/files/patch-setup.py
blob: 872eba21d658dc5ffe60df6ef16795bee20e76f0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- setup.py.orig	2022-07-19 03:53:30 UTC
+++ setup.py
@@ -56,6 +56,12 @@ def setup_extension():
     extra_link_args = []
     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':
         # Support only dynamic linking with portaudio, since the supported path
         # is to install portaudio using a package manager (e.g., Homebrew).