# $Id$ PNAME="libva" PVER="1.8.2" PBUILD="r1" PCAT="x11-libs" DESCRIPTION="Video Acceleration (VA) API for Linux." HOMEPAGE="http://www.freedesktop.org/wiki/Software/vaapi" # dep-loop with >= media-libs/mesa! # mesa needs libva and libva needs libglx from mesa # bootstrap without opengl support, build mesa and after that # rebuild everything with opengl enabled # # enable=1 or disable=0 opengl support ENABLE_OPENGL=1 DEPEND=">= x11-libs/libX11-1.6 >= x11-libs/libXext-1.3 >= x11-libs/libXfixes-5 >= sys-fs/libudev-228 >= sys-libs/libstdc++-5.3" if [[ ${ENABLE_OPENGL} = 1 ]] then DEPEND="${DEPEND} >= virtual/opengl" fi SDEPEND=">= dev-util/pkgconfig-0.25" SRCFILE="${PNAME}-${PVER}.tar.bz2" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude multilib SRC_URI=( #http://cgit.freedesktop.org/${PNAME}/snapshot/${SRCFILE} http://freedesktop.org/software/vaapi/releases/${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) #UP2DATE="updatecmd http://cgit.freedesktop.org/${PNAME}/ | grep '${PNAME}-' | highesttarball gz" UP2DATE="updatecmd http://freedesktop.org/software/vaapi/releases/${PNAME}/ | highesttarball" src_prepare() { munpack ${SRCFILE} || die # configure is missing mautoreconf || die } src_compile() { local myconf if [[ ${ENABLE_OPENGL} = 1 ]] then myconf="--enable-glx" else myconf"--disable-glx" fi mconfigure \ --with-drivers-path=/usr/'$(mlibdir)'/va/drivers \ --enable-dummy-driver \ --enable-dummy-backend \ ${myconf} \ || die mmake || die }