FreeBSD Bugzilla – Attachment 145720 Details for
Bug 192617
[NEW PORT] x11/nvidia-hybrid-graphics: NVIDIA secondary GPU configuration - Optimus Technology support
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
x11/nvidia-driver diff
nv.diff (text/plain), 1.84 KB, created by
David Mackay
on 2014-08-12 16:55:07 UTC
(
hide
)
Description:
x11/nvidia-driver diff
Filename:
MIME Type:
Creator:
David Mackay
Created:
2014-08-12 16:55:07 UTC
Size:
1.84 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 364194) >+++ Makefile (working copy) >@@ -1,7 +1,7 @@ > # Created by: Stijn Hoop <stijn@win.tue.nl> > # $FreeBSD$ > >-PORTNAME= nvidia-driver >+PORTNAME?= nvidia-driver > DISTVERSION?= 331.67 > # Always try to set PORTREVISION as it can be overridden by the slave ports > PORTREVISION?= 0 >@@ -31,7 +31,12 @@ > # hack below to universally set NVIDIA_ROOT. Also provide X11BASE value > # since it is still used by legacy drivers. > MAKE_ENV= NVIDIA_ROOT=${WRKSRC} X11BASE=${LOCALBASE} >+.if ${OPTIMUS} >+SUB_FILES= pkg-message >+.else > SUB_FILES= pkg-deinstall pkg-install pkg-message >+.endif >+ > DOCSDIR= ${PREFIX}/share/doc/NVIDIA_GLX-1.0 > MODULESDIR= lib/xorg/modules > PORTDOCS= * >@@ -76,8 +81,8 @@ > EXTRA_PATCHES+= ${FILESDIR}/security-patch-CVE-2012-4225 > .endif > >-OPTIONS_DEFINE= ACPI_PM LINUX DOCS >-OPTIONS_DEFAULT= LINUX >+OPTIONS_DEFINE?= ACPI_PM LINUX DOCS >+OPTIONS_DEFAULT?= LINUX > > ACPI_PM_DESC= ACPI Power Management support > LINUX_DESC= Linux compatibility support >@@ -231,10 +236,17 @@ > .endif > # Adjust installation paths of some conflicting files (shared also between > # libGL and xorg-server) to ease package manager work, esp. with pkgng >+.if !${OPTIMUS} > ${REINPLACE_CMD} -e '/LIBDIR/s:xorg/modules/extensions:&/.nvidia:' \ > ${WRKSRC}/x11/extension/Makefile > ${REINPLACE_CMD} -e '/LIBDIR/s:lib:&/.nvidia:' \ > ${WRKSRC}/lib/libGL/Makefile >+.else >+ ${REINPLACE_CMD} -e '/LIBDIR/s:xorg/modules/extensions:&/.nvidia_optimus:' \ >+ ${WRKSRC}/x11/extension/Makefile >+ ${REINPLACE_CMD} -e '/LIBDIR/s:lib:&/.nvidia_optimus:' \ >+ ${WRKSRC}/lib/libGL/Makefile >+.endif > # Do not execute afterinstall target (prevent automatic module registration > # and "smart" installation of conflicting files heuristics) > ${REINPLACE_CMD} -e 's/afterinstall/&_dontexecute/' ${WRKSRC}/Makefile
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 192617
:
145720
|
145721
|
147752
|
147753
|
153729
|
196829
|
224760