summaryrefslogtreecommitdiff
path: root/multimedia/mplayer-share
diff options
context:
space:
mode:
authortron <tron>2006-10-03 14:47:40 +0000
committertron <tron>2006-10-03 14:47:40 +0000
commit151f260cb1382e8d5e6296011524e0a03749bb87 (patch)
treec1ae4de37beec83c2ca9b65479583722798a3aff /multimedia/mplayer-share
parentcbc4070541c3af72e6b4f4c0757b5cc2fa36be93 (diff)
downloadpkgsrc-151f260cb1382e8d5e6296011524e0a03749bb87.tar.gz
Don't offer the "oss" option on platforms which don't support OSS.
This fixes the build under Mac OS X. Sounds playback works fine via the "macosx" audio driver on this platform.
Diffstat (limited to 'multimedia/mplayer-share')
-rw-r--r--multimedia/mplayer-share/options.mk12
1 files changed, 8 insertions, 4 deletions
diff --git a/multimedia/mplayer-share/options.mk b/multimedia/mplayer-share/options.mk
index bf9b4091b4c..35c189e654d 100644
--- a/multimedia/mplayer-share/options.mk
+++ b/multimedia/mplayer-share/options.mk
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.16 2006/08/04 20:48:25 wiz Exp $
+# $NetBSD: options.mk,v 1.17 2006/10/03 14:47:40 tron Exp $
.if defined(PKGNAME) && empty(PKGNAME:Mmplayer-share*)
@@ -6,14 +6,19 @@
# not defined yet, so we cannot use it here.
PKG_OPTIONS_VAR= PKG_OPTIONS.${PKGNAME:C/-[0-9].*//}
-.include "../../mk/bsd.prefs.mk"
+.include "../../mk/oss.buildlink3.mk"
# -------------------------------------------------------------------------
# Define PKG_SUPPORTED_OPTIONS based on the current package and system.
# -------------------------------------------------------------------------
# Options supported by both mplayer* or mencoder*.
+
+.if ${OSS_TYPE} != "none"
PKG_SUPPORTED_OPTIONS= gif jpeg mad dts dv dvdread oss png theora vorbis
+.else
+PKG_SUPPORTED_OPTIONS= gif jpeg mad dts dv dvdread png theora vorbis
+.endif
# Set options based on the specific package being built.
.if !empty(PKGNAME:M*mplayer*)
@@ -204,9 +209,8 @@ CONFIGURE_ARGS+= --enable-nas
CONFIGURE_ARGS+= --disable-nas
.endif
-.if !empty(PKG_OPTIONS:Moss)
+.if ${OSS_TYPE} != "none" && !empty(PKG_OPTIONS:Moss)
CONFIGURE_ARGS+= --enable-ossaudio
-. include "../../mk/oss.buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-ossaudio
.endif