Lines 171-180
Link Here
|
171 |
|
171 |
|
172 |
if ! [ -f nvidia_icd.json ]; then |
172 |
if ! [ -f nvidia_icd.json ]; then |
173 |
cp nvidia_icd.json.template nvidia_icd.json || die |
173 |
cp nvidia_icd.json.template nvidia_icd.json || die |
174 |
sed -i -e 's:__NV_VK_ICD__:libGLX_nvidia.so.0:g' nvidia_icd.json || die |
174 |
sed -i -e 's:__NV_VK_ICD__:libGLX_nvidia.so.0:g' nvidia_icd.json || die |
175 |
fi |
175 |
fi |
|
|
176 |
|
177 |
echo 'Section "Files"' > nvidia-glx.conf |
178 |
echo " ModulePath \"/usr/$(get_libdir)/extensions/nvidia,/usr/$(get_libdir)/xorg/modules\"" >> nvidia-glx.conf |
179 |
echo 'EndSection' >> nvidia-glx.conf |
176 |
} |
180 |
} |
177 |
|
181 |
|
178 |
src_compile() { |
182 |
src_compile() { |
179 |
# This is already the default on Linux, as there's no toplevel Makefile, but |
183 |
# This is already the default on Linux, as there's no toplevel Makefile, but |
180 |
# on FreeBSD there's one and triggers the kernel module build, as we install |
184 |
# on FreeBSD there's one and triggers the kernel module build, as we install |
Lines 313-322
Link Here
|
313 |
# Xorg nvidia.conf |
317 |
# Xorg nvidia.conf |
314 |
if has_version '>=x11-base/xorg-server-1.16'; then |
318 |
if has_version '>=x11-base/xorg-server-1.16'; then |
315 |
insinto /usr/share/X11/xorg.conf.d |
319 |
insinto /usr/share/X11/xorg.conf.d |
316 |
newins {,50-}nvidia-drm-outputclass.conf |
320 |
newins {,50-}nvidia-drm-outputclass.conf |
317 |
fi |
321 |
fi |
|
|
322 |
if use libglvnd; then |
323 |
newins {,10-}nvidia-glx.conf |
324 |
fi |
318 |
|
325 |
|
319 |
insinto /usr/share/glvnd/egl_vendor.d |
326 |
insinto /usr/share/glvnd/egl_vendor.d |
320 |
doins ${NV_X11}/10_nvidia.json |
327 |
doins ${NV_X11}/10_nvidia.json |
321 |
fi |
328 |
fi |
322 |
|
329 |
|