--- mesa-10.1.0.ebuild.orig 2014-03-14 03:31:22.000000000 +0400 +++ mesa-10.1.0.ebuild 2014-04-16 19:31:15.288604631 +0400 @@ -49,9 +49,9 @@ done IUSE="${IUSE_VIDEO_CARDS} - bindist +classic debug +dri3 +egl +gallium gbm gles1 gles2 +llvm +nptl - +llvm-shared-libs opencl openvg osmesa pax_kernel pic - r600-llvm-compiler selinux vdpau wayland xvmc xa kernel_FreeBSD" + bindist +classic debug +dri3 +egl +gallium gbm gles1 gles2 +llvm + +llvm-shared-libs +nptl opencl openvg osmesa pax_kernel pic + r600-llvm-compiler selinux sse4_1 vdpau wayland xvmc xa kernel_FreeBSD" REQUIRED_USE=" llvm? ( gallium ) @@ -210,6 +210,9 @@ # relax the requirement that r300 must have llvm, bug 380303 epatch "${FILESDIR}"/${PN}-9.2-dont-require-llvm-for-r300.patch + # do not force sse41 just because compiler supports this flag + epatch "${FILESDIR}"/${P}-sse41.patch + # fix for hardened pax_kernel, bug 240956 [[ ${PV} != 9999* ]] && epatch "${FILESDIR}"/glx_ro_text_segm.patch @@ -322,6 +325,7 @@ $(use_enable nptl glx-tls) \ $(use_enable osmesa) \ $(use_enable !pic asm) \ + $(use_enable sse4_1) \ $(use_with llvm-shared-libs) \ --with-dri-drivers=${DRI_DRIVERS} \ --with-gallium-drivers=${GALLIUM_DRIVERS} \