243 |
# First remove old symlinks |
# First remove old symlinks |
244 |
for file in lib{EGL,GL*,OpenVG}{,core}.{so,dylib,a,la} |
for file in lib{EGL,GL*,OpenVG}{,core}.{so,dylib,a,la} |
245 |
do |
do |
246 |
|
# exclude libGLU |
247 |
|
[[ ${file} = libGLU.so ]] && continue |
248 |
[[ -h ${file} ]] && rm -f ${file} |
[[ -h ${file} ]] && rm -f ${file} |
249 |
done |
done |
250 |
|
|
273 |
# First remove old symlinks |
# First remove old symlinks |
274 |
for file in lib{EGL,GL*,OpenVG}{,core}.{so,dylib,a,la} |
for file in lib{EGL,GL*,OpenVG}{,core}.{so,dylib,a,la} |
275 |
do |
do |
276 |
|
# exclude libGLU |
277 |
|
[[ ${file} = libGLU.so ]] && continue |
278 |
[[ -h ${file} ]] && rm -f ${file} |
[[ -h ${file} ]] && rm -f ${file} |
279 |
done |
done |
280 |
|
|
333 |
headers[GL]="gl.h glx.h glxtokens.h glext.h glxext.h glxmd.h glxproto.h" |
headers[GL]="gl.h glx.h glxtokens.h glext.h glxext.h glxmd.h glxproto.h" |
334 |
headers[GLES]="egl.h gl_extensions.h glext.h gl.h glplatform.h" |
headers[GLES]="egl.h gl_extensions.h glext.h gl.h glplatform.h" |
335 |
headers[GLES2]="gl2ext.h gl2.h gl2platform.h" |
headers[GLES2]="gl2ext.h gl2.h gl2platform.h" |
336 |
headers[EGL]="eglext.h egl.h eglmesaext.h eglplatform.h" |
headers[GLES3]="gl3ext.h gl3.h gl31.h gl3platform.h" |
337 |
|
headers[EGL]="eglext.h egl.h eglextchromium.h eglmesaext.h eglplatform.h" |
338 |
headers[KHR]="khrplatform.h" |
headers[KHR]="khrplatform.h" |
339 |
headers[VG]="openvg.h vgext.h vgplatform.h vgu.h" |
headers[VG]="openvg.h vgext.h vgplatform.h vgu.h" |
340 |
for incl_dir in EGL GL GLES GLES2 KHR VG |
for incl_dir in EGL GL GLES GLES2 GLES3 KHR VG |
341 |
do |
do |
342 |
|
# run this only if the include dir exist in the chosen profile |
343 |
|
[[ -e ${PREFIX}/${LIBDIR}/opengl/${GL_LOCAL}/include/${incl_dir} ]] || continue |
344 |
|
|
345 |
mkdir -p ${DST_PREFIX}/include/${incl_dir} |
mkdir -p ${DST_PREFIX}/include/${incl_dir} |
346 |
pushd ${DST_PREFIX}/include/${incl_dir} &> /dev/null |
pushd ${DST_PREFIX}/include/${incl_dir} &> /dev/null |
347 |
for file in ${headers[${incl_dir}]} |
for file in ${headers[${incl_dir}]} |