summaryrefslogtreecommitdiff
path: root/multimedia/mplayer-share
diff options
context:
space:
mode:
authorwiz <wiz>2007-12-27 13:19:40 +0000
committerwiz <wiz>2007-12-27 13:19:40 +0000
commitfb24adc06c31f9538e0a0cb7ff7b4950c0aa4cde (patch)
tree0e5aa04ecef3fe371114e59022088d4c50954fe6 /multimedia/mplayer-share
parentd6a2d759de1b1cb6b10169adf438f81a7fea71e5 (diff)
downloadpkgsrc-fb24adc06c31f9538e0a0cb7ff7b4950c0aa4cde.tar.gz
Add vidix option, only for Linux.
Fixes build on NetBSD/amd64.
Diffstat (limited to 'multimedia/mplayer-share')
-rw-r--r--multimedia/mplayer-share/options.mk19
1 files changed, 15 insertions, 4 deletions
diff --git a/multimedia/mplayer-share/options.mk b/multimedia/mplayer-share/options.mk
index f55903fc906..a5dff074b29 100644
--- a/multimedia/mplayer-share/options.mk
+++ b/multimedia/mplayer-share/options.mk
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.24 2007/12/21 17:41:12 drochner Exp $
+# $NetBSD: options.mk,v 1.25 2007/12/27 13:19:40 wiz Exp $
.if defined(PKGNAME) && empty(PKGNAME:Mmplayer-share*)
@@ -14,10 +14,9 @@ PKG_OPTIONS_VAR= PKG_OPTIONS.${PKGNAME:C/-[0-9].*//}
# 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
+.if ${OSS_TYPE} != "none"
+PKG_SUPPORTED_OPTIONS+= oss
.endif
# Set options based on the specific package being built.
@@ -41,6 +40,9 @@ PKG_SUPPORTED_OPTIONS+= cdparanoia
.elif ${OPSYS} == "SunOS"
PKG_SUPPORTED_OPTIONS+= mlib
.endif
+.if ${OPSYS} == "Linux"
+PKG_SUPPORTED_OPTIONS+= vidix
+.endif
# Platform-specific options.
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" || \
@@ -70,6 +72,9 @@ PKG_SUPPORTED_OPTIONS+= mplayer-ssse3
PKG_SUGGESTED_OPTIONS+= ${_o_}
. endif
.endfor
+.if ${OPSYS} == "Linux"
+PKG_SUGGESTED_OPTIONS+= vidix
+.endif
# -------------------------------------------------------------------------
# Handle extra libraries (part 1)
@@ -247,6 +252,12 @@ CONFIGURE_ARGS+= --enable-theora
CONFIGURE_ARGS+= --disable-theora
.endif
+# disable vidix if not in options
+.if empty(PKG_OPTIONS:Mvidix)
+CONFIGURE_ARGS+= --disable-vidix-internal
+CONFIGURE_ARGS+= --disable-vidix-external
+.endif
+
.if !empty(PKG_OPTIONS:Mvorbis)
CONFIGURE_ARGS+= --enable-libvorbis
.else