Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bugzilla DB migration completed. Please report issues to Infra team via email via infra@gentoo.org or IRC
View | Details | Raw Unified | Return to bug 663834 | Differences between
and this patch

Collapse All | Expand All

(-)gentoo/x11-drivers/nvidia-drivers/nvidia-drivers-396.45.ebuild (-27 / +29 lines)
Lines 303-317 Link Here
303
	# NVIDIA kernel <-> userspace driver config lib
303
	# NVIDIA kernel <-> userspace driver config lib
304
	donvidia ${NV_OBJ}/libnvidia-cfg.so.${NV_SOVER}
304
	donvidia ${NV_OBJ}/libnvidia-cfg.so.${NV_SOVER}
305
305
306
	# NVIDIA framebuffer capture library
307
	donvidia ${NV_OBJ}/libnvidia-fbc.so.${NV_SOVER}
308
309
	# NVIDIA video encode/decode <-> CUDA
310
	if use kernel_linux; then
311
		donvidia ${NV_OBJ}/libnvcuvid.so.${NV_SOVER}
312
		donvidia ${NV_OBJ}/libnvidia-encode.so.${NV_SOVER}
313
	fi
314
315
	if use X; then
306
	if use X; then
316
		# Xorg DDX driver
307
		# Xorg DDX driver
317
		insinto /usr/$(get_libdir)/xorg/modules/drivers
308
		insinto /usr/$(get_libdir)/xorg/modules/drivers
Lines 454-461 Link Here
454
		nv_libdir="${NV_OBJ}"/32
445
		nv_libdir="${NV_OBJ}"/32
455
	fi
446
	fi
456
447
448
	NV_LIBRARIES=(
449
		"libOpenCL.so.1.0.0 ${CL_ROOT}"
450
		"libcuda.so.${NV_SOVER}"
451
		"libnvidia-compiler.so.${NV_SOVER}"
452
		"libnvidia-fatbinaryloader.so.${NV_SOVER}"
453
		"libnvidia-opencl.so.${NV_SOVER}"
454
		"libnvidia-ptxjitcompiler.so.${NV_SOVER}"
455
	)
456
457
	if use kernel_linux; then
458
		NV_LIBRARIES+=(
459
			"libnvcuvid.so.${NV_SOVER}"
460
			"libnvidia-encode.so.${NV_SOVER}"
461
			"libnvidia-ml.so.${NV_SOVER}"
462
		)
463
	fi
464
457
	if use X; then
465
	if use X; then
458
		NV_GLX_LIBRARIES=(
466
		NV_LIBRARIES+=(
459
			"libEGL.so.$(usex compat ${NV_SOVER} 1.1.0) ${GL_ROOT}"
467
			"libEGL.so.$(usex compat ${NV_SOVER} 1.1.0) ${GL_ROOT}"
460
			"libEGL_nvidia.so.${NV_SOVER} ${GL_ROOT}"
468
			"libEGL_nvidia.so.${NV_SOVER} ${GL_ROOT}"
461
			"libGL.so.$(usex compat ${NV_SOVER} 1.7.0) ${GL_ROOT}"
469
			"libGL.so.$(usex compat ${NV_SOVER} 1.7.0) ${GL_ROOT}"
Lines 466-520 Link Here
466
			"libGLX.so.0 ${GL_ROOT}"
474
			"libGLX.so.0 ${GL_ROOT}"
467
			"libGLX_nvidia.so.${NV_SOVER} ${GL_ROOT}"
475
			"libGLX_nvidia.so.${NV_SOVER} ${GL_ROOT}"
468
			"libGLdispatch.so.0 ${GL_ROOT}"
476
			"libGLdispatch.so.0 ${GL_ROOT}"
469
			"libOpenCL.so.1.0.0 ${CL_ROOT}"
470
			"libOpenGL.so.0 ${GL_ROOT}"
477
			"libOpenGL.so.0 ${GL_ROOT}"
471
			"libcuda.so.${NV_SOVER}"
472
			"libnvcuvid.so.${NV_SOVER}"
473
			"libnvidia-compiler.so.${NV_SOVER}"
474
			"libnvidia-eglcore.so.${NV_SOVER}"
478
			"libnvidia-eglcore.so.${NV_SOVER}"
475
			"libnvidia-encode.so.${NV_SOVER}"
476
			"libnvidia-fatbinaryloader.so.${NV_SOVER}"
477
			"libnvidia-fbc.so.${NV_SOVER}"
479
			"libnvidia-fbc.so.${NV_SOVER}"
478
			"libnvidia-glcore.so.${NV_SOVER}"
480
			"libnvidia-glcore.so.${NV_SOVER}"
479
			"libnvidia-glsi.so.${NV_SOVER}"
481
			"libnvidia-glsi.so.${NV_SOVER}"
480
			"libnvidia-glvkspirv.so.${NV_SOVER}"
482
			"libnvidia-glvkspirv.so.${NV_SOVER}"
481
			"libnvidia-ifr.so.${NV_SOVER}"
483
			"libnvidia-ifr.so.${NV_SOVER}"
482
			"libnvidia-opencl.so.${NV_SOVER}"
483
			"libnvidia-ptxjitcompiler.so.${NV_SOVER}"
484
			"libvdpau_nvidia.so.${NV_SOVER}"
484
			"libvdpau_nvidia.so.${NV_SOVER}"
485
		)
485
		)
486
486
487
		# Wayland EGL external platform library
487
		if use wayland && has_multilib_profile && [[ ${ABI} == "amd64" ]];
488
		if use wayland && has_multilib_profile && [[ ${ABI} == "amd64" ]];
488
		then
489
		then
489
			NV_GLX_LIBRARIES+=(
490
			NV_LIBRARIES+=(
490
				"libnvidia-egl-wayland.so.1.0.3"
491
				"libnvidia-egl-wayland.so.1.0.3"
491
			)
492
			)
492
		fi
493
		fi
493
494
495
		# wrapped software rendering libraries for GeForce 8 series
494
		if use kernel_linux && has_multilib_profile && [[ ${ABI} == "amd64" ]];
496
		if use kernel_linux && has_multilib_profile && [[ ${ABI} == "amd64" ]];
495
		then
497
		then
496
			NV_GLX_LIBRARIES+=(
498
			NV_LIBRARIES+=(
497
				"libnvidia-wfb.so.${NV_SOVER}"
499
				"libnvidia-wfb.so.${NV_SOVER}"
498
			)
500
			)
499
		fi
501
		fi
500
502
503
		# thread local storage support for NVIDIA OpenGL libraries
501
		if use kernel_FreeBSD; then
504
		if use kernel_FreeBSD; then
502
			NV_GLX_LIBRARIES+=(
505
			NV_LIBRARIES+=(
503
				"libnvidia-tls.so.${NV_SOVER}"
506
				"libnvidia-tls.so.${NV_SOVER}"
504
			)
507
			)
505
		fi
508
		fi
506
509
507
		if use kernel_linux; then
510
		if use kernel_linux; then
508
			NV_GLX_LIBRARIES+=(
511
			NV_LIBRARIES+=(
509
				"libnvidia-ml.so.${NV_SOVER}"
510
				"tls/libnvidia-tls.so.${NV_SOVER}"
512
				"tls/libnvidia-tls.so.${NV_SOVER}"
511
			)
513
			)
512
		fi
514
		fi
513
514
		for NV_LIB in "${NV_GLX_LIBRARIES[@]}"; do
515
			donvidia "${nv_libdir}"/${NV_LIB}
516
		done
517
	fi
515
	fi
516
517
	for NV_LIB in "${NV_LIBRARIES[@]}"; do
518
		donvidia "${nv_libdir}"/${NV_LIB}
519
	done
518
}
520
}
519
521
520
pkg_preinst() {
522
pkg_preinst() {

Return to bug 663834