# Handling of variables using helpers
# Include before bsd.port.(pre|options).mk

# OPTIONs
AALIB_LIB_DEPENDS=	libaa.so:graphics/aalib
AALIB_CONFIGURE_OFF=	--disable-aa

AMR_NB_LIB_DEPENDS=	libopencore-amrnb.so:audio/opencore-amr
AMR_NB_CONFIGURE_ENABLE=libopencore_amrnb

AMR_WB_LIB_DEPENDS=	libopencore-amrwb.so:audio/opencore-amr
AMR_WB_CONFIGURE_ENABLE=libopencore_amrwb

ASS_LIB_DEPENDS=	libass.so:multimedia/libass \
			libharfbuzz.so:print/harfbuzz
ASS_CONFIGURE_OFF=	--disable-ass

BLURAY_LIB_DEPENDS=	libbluray.so:multimedia/libbluray
BLURAY_CONFIGURE_OFF=	--disable-bluray

CACA_LIB_DEPENDS=	libcaca.so:graphics/libcaca
CACA_CONFIGURE_OFF=	--disable-caca

CDIO_LIB_DEPENDS=	libcdio_paranoia.so:sysutils/libcdio-paranoia
CDIO_CONFIGURE_OFF=	--disable-libcdio

DV_LIB_DEPENDS=		libdv.so:multimedia/libdv
DV_CONFIGURE_ENABLE=	libdv

DVDNAV_LIB_DEPENDS=	libdvdnav.so:multimedia/libdvdnav \
			libdvdread.so:multimedia/libdvdread
DVDNAV_CONFIGURE_OFF=	--disable-dvdnav

ENCA_LIB_DEPENDS=	libenca.so:converters/enca
ENCA_CONFIGURE_OFF=	--disable-enca

FAAC_LIB_DEPENDS=	libfaac.so:audio/faac
FAAC_CONFIGURE_OFF=	--disable-faac

FONTCONFIG_LIB_DEPENDS=	libfontconfig.so:x11-fonts/fontconfig
FONTCONFIG_CONFIGURE_OFF=	--disable-fontconfig

FRIBIDI_LIB_DEPENDS=	libfribidi.so:converters/fribidi
FRIBIDI_CONFIGURE_OFF=	--disable-fribidi

GIF_LIB_DEPENDS=	libgif.so:graphics/giflib
GIF_CONFIGURE_OFF=	--disable-gif

GNUTLS_LIB_DEPENDS=	libgnutls.so:security/gnutls
GNUTLS_CONFIGURE_OFF=	--disable-gnutls

GSM_LIB_DEPENDS=	libgsm.so:audio/gsm
GSM_CONFIGURE_OFF=	--disable-libgsm

GUI_CONFIGURE_ENABLE=	gui
GUI_USE=		GNOME=cairo,gdkpixbuf,gtk20
GUI_USES=		gnome
GUI_DESKTOP_ENTRIES=	"MPlayer" "High performance media player" "mplayer" "gmplayer" "" false
GUI_IMPLIES=		ASS JPEG X11

IPV6_CONFIGURE_OFF=	--disable-inet6

JACK_LIB_DEPENDS=	libjack.so:audio/jack
JACK_CONFIGURE_OFF=	--disable-jack
JACK_BROKEN=		does not compile with recent ffmpeg due to deprecated API

JPEG_USES=		jpeg
JPEG_CONFIGURE_OFF=	--disable-jpeg

LADSPA_RUN_DEPENDS=	${LOCALBASE}/lib/ladspa/amp.so:audio/ladspa
LADSPA_CONFIGURE_OFF=	--disable-ladspa

LIBMNG_LIB_DEPENDS=	libmng.so:graphics/libmng
LIBMNG_CONFIGURE_OFF=	--disable-mng

LIRC_LIB_DEPENDS=	liblirc_client.so:comms/lirc
LIRC_CONFIGURE_OFF=	--disable-lirc

LZO_LIB_DEPENDS=	liblzo2.so:archivers/lzo2
LZO_CONFIGURE_OFF=	--disable-liblzo

NAS_LIB_DEPENDS=	libaudio.so:audio/nas
NAS_CONFIGURE_OFF=	--disable-nas

NLS_USES=		gettext
NLS_CONFIGURE_ENABLE=	nls

OPENAL_USES=		openal:soft
OPENAL_CONFIGURE_OFF=	--disable-openal

OPENGL_USE=		GL=gl
OPENGL_USES=		gl
OPENGL_CONFIGURE_OFF=	--disable-gl
OPENGL_IMPLIES=		X11

OPENJPEG_LIB_DEPENDS=	libopenjp2.so:graphics/openjpeg
OPENJPEG_CONFIGURE_ENABLE=	libopenjpeg

OPUS_LIB_DEPENDS=	libopus.so:audio/opus
OPUS_CONFIGURE_OFF=	--disable-libopus

PULSEAUDIO_LIB_DEPENDS=	libpulse.so:audio/pulseaudio
PULSEAUDIO_CONFIGURE_OFF=	--disable-pulse

RTCPU_CONFIGURE_ON=	--enable-runtime-cpudetection

SDL_USE=		SDL=sdl
SDL_USES=		sdl
SDL_LIB_DEPENDS=	libaa.so:graphics/aalib
SDL_CONFIGURE_OFF=	--disable-sdl

SNDIO_LIB_DEPENDS=	libsndio.so:audio/sndio
SNDIO_CONFIGURE_OFF=	--disable-sndio

SKINS_RUN_DEPENDS=	mplayer-skins>=0:multimedia/mplayer-skins
SKINS_IMPLIES=		GUI

SMB_USES=		samba:lib
SMB_CONFIGURE_ON=	--extra-ldflags="-L${SAMBA_LIBDIR}"
SMB_CONFIGURE_OFF=	--disable-smb

SPEEX_LIB_DEPENDS=	libspeex.so:audio/speex
SPEEX_CONFIGURE_OFF=	--disable-speex

SVGALIB_LIB_DEPENDS=	libvga.so:graphics/svgalib
SVGALIB_CONFIGURE_OFF=	--disable-svga

THEORA_LIB_DEPENDS=	libtheora.so:multimedia/libtheora \
			libogg.so:audio/libogg
THEORA_CONFIGURE_OFF=	--disable-theora

TWOLAME_LIB_DEPENDS=	libtwolame.so:audio/twolame
TWOLAME_CONFIGURE_OFF=	--disable-twolame

V4L_BUILD_DEPENDS=	${LOCALBASE}/include/linux/videodev2.h:multimedia/v4l_compat
V4L_LIB_DEPENDS=	libv4l2.so:multimedia/libv4l
V4L_CONFIGURE_OFF=	--disable-tv-v4l1 --disable-tv-v4l2
V4L_CONFIGURE_ON=	--enable-tv-v4l1 --enable-tv-v4l2 --extra-libs="-lv4l1 -lv4l2"

VDPAU_LIB_DEPENDS=	libvdpau.so:multimedia/libvdpau
VDPAU_CONFIGURE_OFF=	--disable-vdpau

VPX_LIB_DEPENDS=	libvpx.so:multimedia/libvpx
VPX_CONFIGURE_ENABLE=	libvpx-lavc

X11_USES=		xorg
X11_USE=		XORG=x11,xext,xorgproto,xscrnsaver
X11_CONFIGURE_OFF=	--disable-x11

X11DGA_USES=		xorg
X11DGA_USE=		XORG=xxf86dga
X11DGA_CONFIGURE_OFF=	--disable-dga1 --disable-dga2
X11DGA_IMPLIES=		X11

X11VM_USES=		xorg
X11VM_USE=		XORG=xxf86vm
X11VM_CONFIGURE_OFF=	--disable-vm
X11VM_IMPLIES=		X11

X264_LIB_DEPENDS=	libx264.so:multimedia/libx264
X264_CONFIGURE_OFF=	--disable-x264

XINERAMA_USES=		xorg
XINERAMA_USE=		XORG=xinerama,xorgproto
XINERAMA_CONFIGURE_OFF=	--disable-xinerama
XINERAMA_IMPLIES=	X11

XVID_LIB_DEPENDS=	libxvidcore.so:multimedia/xvid
XVID_CONFIGURE_OFF=	--disable-xvid

XVIDEO_USE=		XORG=xv
XVIDEO_CONFIGURE_OFF=	--disable-xv
XVIDEO_IMPLIES=		X11

