Merge pull request #3304 from eska014/fbsd-alsa
Give FreeBSD a chance to enable ALSA
This commit is contained in:
commit
4c090313bc
1 changed files with 5 additions and 1 deletions
|
@ -147,9 +147,13 @@ def configure(env):
|
||||||
|
|
||||||
|
|
||||||
env.Append(CPPFLAGS=['-DOPENGL_ENABLED','-DGLEW_ENABLED'])
|
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(CPPFLAGS=["-DALSA_ENABLED"])
|
||||||
env.Append(LIBS=['asound'])
|
env.Append(LIBS=['asound'])
|
||||||
|
else:
|
||||||
|
print("ALSA libraries not found, disabling driver")
|
||||||
|
|
||||||
if (env["gamepad"]=="yes" and platform.system() == "Linux"):
|
if (env["gamepad"]=="yes" and platform.system() == "Linux"):
|
||||||
# pkg-config returns 0 when the lib exists...
|
# pkg-config returns 0 when the lib exists...
|
||||||
|
|
Loading…
Reference in a new issue