From e540c522d5aed5aaa4c7d8e7b3423353eb854c84 Mon Sep 17 00:00:00 2001 From: Daniel Mierswa Date: Sun, 21 Dec 2008 00:42:12 +0100 Subject: [PATCH] forgot the actual DRI lib --- packages/x11-dri/gallium/gallium-scm.exheres-0 | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/packages/x11-dri/gallium/gallium-scm.exheres-0 b/packages/x11-dri/gallium/gallium-scm.exheres-0 index 75eb723..744563e 100644 --- a/packages/x11-dri/gallium/gallium-scm.exheres-0 +++ b/packages/x11-dri/gallium/gallium-scm.exheres-0 @@ -2,7 +2,7 @@ SCM_REPOSITORY="git://anongit.freedesktop.org/git/nouveau/mesa" SCM_TYPE="git" SCM_BRANCH="gallium-0.1" -require multilib scm toolchain-funcs +require eutils multilib scm toolchain-funcs SUMMARY="nouveau mesa driver" DESCRIPTION="The nouveau driver for the mesa OpenGL implementation." @@ -41,13 +41,14 @@ src_prepare() { src_compile() { get_target - emake "${TARGET}" \ + emake DRI_DIRS="nouveau" "${TARGET}" \ CC=$(tc-getCC) \ - CXX=$(tc-getCXX) \ - || die "emake failed" + CXX=$(tc-getCXX) } src_install() { + mkdir -p "${IMAGE}/usr/$(get_libdir)/dri" || die "mkdir failed" + cp "$(get_libdir)/nouveau_dri.so" "${IMAGE}/usr/$(get_libdir)/dri" || die "cp failed" bin/installmesa "${IMAGE}/usr/$(get_libdir)/opengl/gallium" \ || die "bin/installmesa failed" @@ -55,3 +56,9 @@ src_install() { mv include/{GL/*,} || die "mv failed" rmdir include/GL || die "rmdir failed" } + +pkg_postinst() { + einfo "If you encounter a black screen while rendering, you may have to add" + einfo " Option \"GlxVisuals\" \"all\"" + einfo "to your xorg.conf, see ${HOMEPAGE}." +}