media-libs/mesa: Add valgrind USE flag.
authorMatt Turner <mattst88@gentoo.org>
Thu, 21 Apr 2016 04:36:22 +0000 (21:36 -0700)
committerMatt Turner <mattst88@gentoo.org>
Thu, 21 Apr 2016 04:36:53 +0000 (21:36 -0700)
media-libs/mesa/mesa-9999.ebuild
media-libs/mesa/metadata.xml

index 6c2c4ebe96af086b2406df8fa744392379ac084f..00213165a443b4700536f29b94359029d8a73f73 100644 (file)
@@ -44,8 +44,8 @@ done
 
 IUSE="${IUSE_VIDEO_CARDS}
        bindist +classic d3d9 debug +dri3 +egl +gallium +gbm gles1 gles2 +llvm
-       +nptl opencl osmesa pax_kernel openmax pic selinux +udev vaapi vdpau
-       wayland xvmc xa kernel_FreeBSD"
+       +nptl opencl osmesa pax_kernel openmax pic selinux +udev vaapi valgrind
+       vdpau wayland xvmc xa kernel_FreeBSD"
 
 REQUIRED_USE="
        d3d9?   ( dri3 gallium )
@@ -148,6 +148,7 @@ DEPEND="${RDEPEND}
        )
        sys-devel/gettext
        virtual/pkgconfig
+       valgrind? ( dev-util/valgrind )
        >=x11-proto/dri2proto-2.8-r1:=[${MULTILIB_USEDEP}]
        dri3? (
                >=x11-proto/dri3proto-1.0:=[${MULTILIB_USEDEP}]
@@ -299,6 +300,7 @@ multilib_src_configure() {
                $(use_enable gles2) \
                $(use_enable nptl glx-tls) \
                $(use_enable !udev sysfs) \
+               --enable-valgrind=$(usex valgrind auto no) \
                --enable-llvm-shared-libs \
                --with-dri-drivers=${DRI_DRIVERS} \
                --with-gallium-drivers=${GALLIUM_DRIVERS} \
index 88120e51f659dd2d4ab4f95dcc5b87f8bac7ea01..cd38cd9042c50872c5b6fb32441498bca60223b8 100644 (file)
@@ -23,6 +23,7 @@
                <flag name="osmesa">Build the Mesa library for off-screen rendering.</flag>
                <flag name="pax_kernel">Enable if the user plans to run the package under a pax enabled hardened kernel</flag>
                <flag name="pic">disable optimized assembly code that is not PIC friendly</flag>
+               <flag name="valgrind">Compile in valgrind memory hints</flag>
                <flag name="vdpau">Enable the VDPAU acceleration interface for the Gallium3D Video Layer.</flag>
                <flag name="wayland">Enable support for dev-libs/wayland</flag>
                <flag name="xa">Enable the XA (X Acceleration) API for Gallium3D.</flag>