#!/bin/bash hvconfig_pre() { local GAL_OPTS="--with-gallium-drivers=svga,swrast" if [ -n "${XORG_VIDEO_DRIVER}" ]; then case "${XORG_VIDEO_DRIVER}" in nouveau) GAL_OPTS+=",nouveau" ;; intel) GAL_OPTS+=",i915" ;; esac fi CONFIGURE_OPTS+=" \ --enable-texture-float \ --enable-gles1 \ --enable-gles2 \ --enable-openvg \ --enable-osmesa \ --enable-xa \ --enable-gbm \ --enable-gallium-egl \ --enable-gallium-gbm \ --enable-glx-tls \ --with-egl-platforms="drm,x11" \ ${GAL_OPTS} \ ${XORG_CONFIG}" # Mesa builds with debugging symbols. Remove the -g switch from both CFLAGS # and CXXFLAGS with this command: sed 's@FLAGS=\"-g@FLAGS=\"@' -i ${SRC_DIR}/configure }