--- trunk/opengl-update/opengl-update.in 2013/03/08 14:09:44 2069 +++ trunk/opengl-update/opengl-update.in 2014/01/15 14:08:52 2518 @@ -339,6 +339,9 @@ headers[VG]="openvg.h vgext.h vgplatform.h vgu.h" for incl_dir in EGL GL GLES GLES2 GLES3 KHR VG do + # run this only if the include dir exist in the chosen profile + [[ -e ${PREFIX}/${LIBDIR}/opengl/${GL_LOCAL}/include/${incl_dir} ]] || continue + mkdir -p ${DST_PREFIX}/include/${incl_dir} pushd ${DST_PREFIX}/include/${incl_dir} &> /dev/null for file in ${headers[${incl_dir}]}