diff options
author | tron <tron@pkgsrc.org> | 2006-10-03 14:47:40 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2006-10-03 14:47:40 +0000 |
commit | c3d3ff6f225ad0bb2e0a206bb46469506cff0e50 (patch) | |
tree | c1ae4de37beec83c2ca9b65479583722798a3aff /multimedia/mplayer-share | |
parent | 00caeee4548cf7febb3d0bc5f423c5224b647a78 (diff) | |
download | pkgsrc-c3d3ff6f225ad0bb2e0a206bb46469506cff0e50.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.mk | 12 |
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 |