diff options
author | jperkin <jperkin@pkgsrc.org> | 2016-07-25 15:28:27 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2016-07-25 15:28:27 +0000 |
commit | 84110f9432af82ca51e1bdc721439bc7bc4d71bd (patch) | |
tree | 1e602f623ae9f8117ff891c5b1729af54ec81de2 /audio | |
parent | a4b81930f31b0918c4686325b90054375755ee41 (diff) | |
download | pkgsrc-84110f9432af82ca51e1bdc721439bc7bc4d71bd.tar.gz |
Don't enable OSS if unsupported. Fixes Darwin at least.
Diffstat (limited to 'audio')
-rw-r--r-- | audio/openal-soft/Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/audio/openal-soft/Makefile b/audio/openal-soft/Makefile index f78cbb91118..6f4d386fe9a 100644 --- a/audio/openal-soft/Makefile +++ b/audio/openal-soft/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2016/07/19 08:44:45 jperkin Exp $ +# $NetBSD: Makefile,v 1.3 2016/07/25 15:28:27 jperkin Exp $ # DISTNAME= openal-soft-1.17.2 @@ -25,7 +25,6 @@ CMAKE_ARGS+= -DALSOFT_BACKEND_ALSA:BOOL=OFF .include "../../audio/alsa-lib/buildlink3.mk" .endif -CMAKE_ARGS+= -DALSOFT_REQUIRE_OSS:BOOL=ON CMAKE_ARGS+= -DALSOFT_REQUIRE_SOLARIS:BOOL=OFF CMAKE_ARGS+= -DALSOFT_REQUIRE_SNDIO:BOOL=OFF CMAKE_ARGS+= -DALSOFT_REQUIRE_QSA:BOOL=OFF @@ -38,6 +37,12 @@ CMAKE_ARGS+= -DALSOFT_BACKEND_PULSEAUDIO:BOOL=OFF .include "../../mk/oss.buildlink3.mk" +.if ${OSS_TYPE} == "none" +CMAKE_ARGS+= -DALSOFT_REQUIRE_OSS:BOOL=OFF +.else +CMAKE_ARGS+= -DALSOFT_REQUIRE_OSS:BOOL=ON +.endif + .if !empty(BUILTIN_LIB_FOUND.ossaudio:M[Yy][Ee][Ss]) CMAKE_ARGS+= -DEXTRA_LIBS=${LIBOSSAUDIO:Q} .endif |