diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2016-01-11 08:50:15 +0100 |
---|---|---|
committer | Rémi Verschelde <remi@verschelde.fr> | 2016-01-11 08:50:15 +0100 |
commit | 4c090313bc0d4e5244a9387851658cd582e36ef0 (patch) | |
tree | e30d806f1d0fb9e0746b8f7800a9fcd9b654eecd /platform | |
parent | 90e5fba1c137b99eb767f73c98a34c353dcec7f2 (diff) | |
parent | 56e65f9e29f3cdf988c19c8534eec7fb88e785ec (diff) |
Merge pull request #3304 from eska014/fbsd-alsa
Give FreeBSD a chance to enable ALSA
Diffstat (limited to 'platform')
-rw-r--r-- | platform/x11/detect.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/platform/x11/detect.py b/platform/x11/detect.py index 344545ab81..e035c72993 100644 --- a/platform/x11/detect.py +++ b/platform/x11/detect.py @@ -147,9 +147,13 @@ def configure(env): env.Append(CPPFLAGS=['-DOPENGL_ENABLED','-DGLEW_ENABLED']) - if platform.system() == 'Linux': + + if os.system("pkg-config --exists alsa")==0: + print("Enabling ALSA") env.Append(CPPFLAGS=["-DALSA_ENABLED"]) env.Append(LIBS=['asound']) + else: + print("ALSA libraries not found, disabling driver") if (env["gamepad"]=="yes" and platform.system() == "Linux"): # pkg-config returns 0 when the lib exists... |