depends  expat             &&
depends  libvorbis         &&
depends  libmatroska       &&
# unless someone has a better suggestion this seems to be needed on 
# x86_64 else it'll look for it in /usr/lib64 and fail but I'm giving
# this check just to see if that dir exists in case someone goes
# multilib or something similar
if [[ ${SMGL_COMPAT_ARCHS[1]} == x86_64 ]] &&
	 [[ ! -d ${INSTALL_ROOT}/usr/lib64 ]] ; then
depends  -sub REGEX boost "--with-boost-libdir=${INSTALL_ROOT}/usr/lib"
else
depends  -sub REGEX boost
fi &&
depends  -sub CPP pcre     &&
optional_depends  bzip2            \
                  '--enable-bz2'   \
                  '--disable-bz2'  \
                  'for BZ2 compression'  &&
optional_depends  lzo              \
                  '--enable-lzo'   \
                  '--disable-lzo'  \
                  'for LZO compression'  &&
optional_depends  wxgtk            \
                  '--enable-gui'   \
                  '--disable-gui'  \
                  "for mkvinfo and mmg gui"  &&
optional_depends  "flac"  \
                  ""      \
                  ""      \
                  "for FLAC support"
