241 |
mkdir -p ${DST_PREFIX}/${LIBDIR} |
mkdir -p ${DST_PREFIX}/${LIBDIR} |
242 |
pushd ${DST_PREFIX}/${LIBDIR} &> /dev/null |
pushd ${DST_PREFIX}/${LIBDIR} &> /dev/null |
243 |
# First remove old symlinks |
# First remove old symlinks |
244 |
for file in lib{EGL,GL{,ESv{1,2}},OpenVG}{,core}.{so,dylib,a,la} |
for file in lib{EGL,GL*,OpenVG}{,core}.{so,dylib,a,la} |
245 |
do |
do |
246 |
[[ -h ${file} ]] && rm -f ${file} |
[[ -h ${file} ]] && rm -f ${file} |
247 |
done |
done |
249 |
# Note that we don't do .so*, just .so on purpose. The |
# Note that we don't do .so*, just .so on purpose. The |
250 |
# loader knows to look in the profile dir, and the |
# loader knows to look in the profile dir, and the |
251 |
# linked just needs the .so |
# linked just needs the .so |
252 |
for file in ${PREFIX}/${LIBDIR}/opengl/${GL_LOCAL}/lib/lib{EGL,GL{,ESv{1,2}},OpenVG}{,core}.{so,dylib,a,la} |
for file in ${PREFIX}/${LIBDIR}/opengl/${GL_LOCAL}/lib/lib{EGL,GL*,OpenVG}{,core}.{so,dylib,a,la} |
253 |
do |
do |
254 |
[[ -f ${file} ]] || continue |
[[ -f ${file} ]] || continue |
255 |
[[ -f ${file##*/} ]] && rm -f ${file##*/} |
[[ -f ${file##*/} ]] && rm -f ${file##*/} |
269 |
mkdir -p ${DST_PREFIX}/${LIBDIR}/tls |
mkdir -p ${DST_PREFIX}/${LIBDIR}/tls |
270 |
pushd ${DST_PREFIX}/${LIBDIR}/tls &> /dev/null |
pushd ${DST_PREFIX}/${LIBDIR}/tls &> /dev/null |
271 |
# First remove old symlinks |
# First remove old symlinks |
272 |
for file in lib{EGL,GL{,ESv{1,2}},OpenVG}{,core}.{so,dylib,a,la} |
for file in lib{EGL,GL*,OpenVG}{,core}.{so,dylib,a,la} |
273 |
do |
do |
274 |
[[ -h ${file} ]] && rm -f ${file} |
[[ -h ${file} ]] && rm -f ${file} |
275 |
done |
done |
276 |
|
|
277 |
for file in ${PREFIX}/${LIBDIR}/opengl/${GL_LOCAL}/lib/tls/lib{EGL,GL{,ESv{1,2}},OpenVG}{,core}.{so,dylib,a,la} |
for file in ${PREFIX}/${LIBDIR}/opengl/${GL_LOCAL}/lib/tls/lib{EGL,GL*,OpenVG}{,core}.{so,dylib,a,la} |
278 |
do |
do |
279 |
[[ -f ${file} ]] || continue |
[[ -f ${file} ]] || continue |
280 |
[[ -f ${file##*/} ]] && rm -f ${file##*/} |
[[ -f ${file##*/} ]] && rm -f ${file##*/} |
329 |
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" |
330 |
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" |
331 |
headers[GLES2]="gl2ext.h gl2.h gl2platform.h" |
headers[GLES2]="gl2ext.h gl2.h gl2platform.h" |
332 |
headers[EGL]="eglext.h egl.h eglplatform.h" |
headers[EGL]="eglext.h egl.h eglmesaext.h eglplatform.h" |
333 |
headers[KHR]="khrplatform.h" |
headers[KHR]="khrplatform.h" |
334 |
headers[VG]="openvg.h vgext.h vgplatform.h vgu.h" |
headers[VG]="openvg.h vgext.h vgplatform.h vgu.h" |
335 |
for incl_dir in EGL GL GLES GLES2 KHR VG |
for incl_dir in EGL GL GLES GLES2 KHR VG |