X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage4%2Fpkg%2FMesaLib;h=a7068bd2cc8e836726115c863ef0baf2b0c29f4c;hb=a5e9d35a909f5561e79244e581d99a53e1bbda97;hp=80b80178490f4e0caa11599fe929dacd3d3a96cf;hpb=f920c7ef750f2163b9e407cc453b192ede2c185a;p=hvlinux.git diff --git a/stage4/pkg/MesaLib b/stage4/pkg/MesaLib index 80b8017..a7068bd 100644 --- a/stage4/pkg/MesaLib +++ b/stage4/pkg/MesaLib @@ -2,10 +2,28 @@ hvconfig_pre() { + local DRVPTS="--with-dri-drivers=no" + local GALPTS="--with-gallium-drivers=" + + if [ -n "${XORG_VIDEO_DRIVER}" ]; then + case "${XORG_VIDEO_DRIVER}" in + nouveau) + DRVPTS="--with-dri-drivers=nouveau" + GALPTS="--enable-gallium-nouveau" + ;; + intel) + DRVPTS="--with-dri-drivers=i915,i965" + GALPTS="--enable-gallium-i915 --enable-gallium-i965" + ;; + esac + fi + CONFIGURE_OPTS="\ ${CONFIGURE_OPTS} \ --enable-motif \ --enable-xcb \ + ${DRVPTS} \ + ${GALPTS} \ ${XORG_CONFIG}" # Mesa builds with debugging symbols. Remove the -g switch from both CFLAGS