mkdir -p ${INSTALL_ROOT}/usr/include/GL                                    &&
mkdir -p ${INSTALL_ROOT}/usr/include/GLES                                  &&
mkdir -p ${INSTALL_ROOT}/usr/lib/modules/dri                               &&
mv -fv ${SOURCE_DIRECTORY}/include/GL/*.h ${INSTALL_ROOT}/usr/include/GL   &&
## NOT YET: cp -f ${TOP}/include/GLES/*.h ${INCLUDE_DIR}/GLES              &&
local base_lib_dir=lib
if [[ "${SMGL_COMPAT_ARCHS[1]}" == "x86_64" ]]
then
base_lib_dir=lib64
fi
if grep -q dri <<< "$MESALIB_BUILD"
then
mv -fv ${SOURCE_DIRECTORY}/$base_lib_dir/*_dri* ${INSTALL_ROOT}/usr/lib/modules/dri  &&
ln -s ${INSTALL_ROOT}/usr/lib/modules/dri ${INSTALL_ROOT}/usr/lib/dri
fi                                                                         &&
mv -fv ${SOURCE_DIRECTORY}/$base_lib_dir/* ${INSTALL_ROOT}/usr/lib

