Lines 135-140
set_new_implementation() {
Link Here
|
135 |
local avail_implems=$(get_implementations) |
135 |
local avail_implems=$(get_implementations) |
136 |
local libdir |
136 |
local libdir |
137 |
local gl_local |
137 |
local gl_local |
|
|
138 |
local gl_dir |
138 |
local moduledir |
139 |
local moduledir |
139 |
|
140 |
|
140 |
# Set a sane umask... bug #83115 |
141 |
# Set a sane umask... bug #83115 |
Lines 167-180
set_new_implementation() {
Link Here
|
167 |
# If even mesa is not around then simply die |
168 |
# If even mesa is not around then simply die |
168 |
if [[ -d "${PREFIX}/${libdir}/opengl/${gl_implem}" ]] ; then |
169 |
if [[ -d "${PREFIX}/${libdir}/opengl/${gl_implem}" ]] ; then |
169 |
gl_local="${gl_implem}" |
170 |
gl_local="${gl_implem}" |
|
|
171 |
gl_dir="${libdir}" |
170 |
else |
172 |
else |
171 |
if [[ -d "${PREFIX}/${libdir}/opengl/xorg-x11" ]]; then |
173 |
if [[ -d "${PREFIX}/${libdir}/opengl/xorg-x11" ]]; then |
172 |
gl_local="xorg-x11" |
174 |
gl_local="xorg-x11" |
173 |
else |
175 |
gl_dir="${libdir}" |
174 |
# bail out, no implementation around |
|
|
175 |
die -q "No proper ${gl_implem} or xorg-x11 opengl implementation found" |
176 |
fi |
176 |
fi |
177 |
fi |
177 |
fi |
|
|
178 |
done |
179 |
|
180 |
if [[ ! -n "${gl_dir}" ]] ; then |
181 |
# bail out, no implementation around |
182 |
die -q "No proper ${gl_implem} or xorg-x11 opengl implementation found" |
183 |
fi |
178 |
|
184 |
|
179 |
setup_lib_symlinks \ |
185 |
setup_lib_symlinks \ |
180 |
"${PREFIX}/${libdir}/opengl/${gl_local}/lib" \ |
186 |
"${PREFIX}/${libdir}/opengl/${gl_local}/lib" \ |
Lines 199-205
set_new_implementation() {
Link Here
|
199 |
|
205 |
|
200 |
# Setup the $LDPATH |
206 |
# Setup the $LDPATH |
201 |
ldpath="${ldpath:+${ldpath}:}${PREFIX}/${libdir}/opengl/${gl_local}/lib" |
207 |
ldpath="${ldpath:+${ldpath}:}${PREFIX}/${libdir}/opengl/${gl_local}/lib" |
202 |
done |
|
|
203 |
|
208 |
|
204 |
store_config ${ENV_FILE} LDPATH "${ldpath}" |
209 |
store_config ${ENV_FILE} LDPATH "${ldpath}" |
205 |
store_config ${ENV_FILE} OPENGL_PROFILE "${gl_implem}" |
210 |
store_config ${ENV_FILE} OPENGL_PROFILE "${gl_implem}" |