Only use /usr/local/opt/openal-soft on Darwin

Commit 883781c selected these paths for all OSs, but when linking to
a system copy of OpenAL for Linux distribution binaries we want the
normal OpenAL in /usr.

Signed-off-by: Simon McVittie <smcv@debian.org>
This commit is contained in:
Simon McVittie 2017-06-18 14:54:16 +01:00
parent 1da7ff5594
commit 992f453016

View file

@ -430,8 +430,12 @@ else
release/quake2 : CFLAGS += -DUSE_OPENAL -DDEFAULT_OPENAL_DRIVER='"libopenal.so.1"' -DDLOPEN_OPENAL release/quake2 : CFLAGS += -DUSE_OPENAL -DDEFAULT_OPENAL_DRIVER='"libopenal.so.1"' -DDLOPEN_OPENAL
endif endif
else # !DLOPEN_OPENAL else # !DLOPEN_OPENAL
release/quake2 : CFLAGS += -DUSE_OPENAL -I/usr/local/opt/openal-soft/include release/quake2 : CFLAGS += -DUSE_OPENAL
release/quake2 : LDFLAGS += -lopenal -L/usr/local/opt/openal-soft/lib release/quake2 : LDFLAGS += -lopenal
ifeq ($(YQ2_OSTYPE), Darwin)
release/quake2 : CFLAGS += -I/usr/local/opt/openal-soft/include
release/quake2 : LDFLAGS += -L/usr/local/opt/openal-soft/lib
endif # Darwin
endif # !DLOPEN_OPENAL endif # !DLOPEN_OPENAL
endif # WITH_OPENAL endif # WITH_OPENAL