pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio/openal-soft Don't enable OSS if unsupported. Fi...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a92ce6372307
branches:  trunk
changeset: 350300:a92ce6372307
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Mon Jul 25 15:28:27 2016 +0000

description:
Don't enable OSS if unsupported.  Fixes Darwin at least.

diffstat:

 audio/openal-soft/Makefile |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r 798bb4330aac -r a92ce6372307 audio/openal-soft/Makefile
--- a/audio/openal-soft/Makefile        Mon Jul 25 13:11:17 2016 +0000
+++ b/audio/openal-soft/Makefile        Mon Jul 25 15:28:27 2016 +0000
@@ -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 @@
 .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 @@
 
 .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



Home | Main Index | Thread Index | Old Index