Index: Mk/bsd.options.desc.mk =================================================================== --- Mk/bsd.options.desc.mk +++ Mk/bsd.options.desc.mk @@ -345,6 +345,7 @@ NSS_DESC?= SSL/TLS support via NSS NTLM_DESC?= NTLM authentication support NUMPY_DESC?= NumPy mathematical computing support +NVIDIA_GL_DESC?= libGL support via nvidia-driver OBJC_DESC?= Objective-C language support ODBC_DESC?= ODBC database backend ODF_DESC?= Open Document Format (ODF) file support Index: emulators/linux-c6/Makefile =================================================================== --- emulators/linux-c6/Makefile +++ emulators/linux-c6/Makefile @@ -91,7 +91,6 @@ linux-c6-cairo>0:${PORTSDIR}/graphics/linux-c6-cairo OPTIONS_DEFINE= NVIDIA_GL -NVIDIA_GL_DESC= Use GL driver from nvidia-driver NVIDIA_GL_RUN_DEPENDS= ${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver \ linux-c6-libGLU>0:${PORTSDIR}/graphics/linux-c6-libGLU Index: emulators/linux-f10/Makefile =================================================================== --- emulators/linux-f10/Makefile +++ emulators/linux-f10/Makefile @@ -96,7 +96,6 @@ # don't pull in graphics/linux-f10-libGLU -- conflicts with graphics/linux-f10-dri OPTIONS_DEFINE= NVIDIA_GL -NVIDIA_GL_DESC= Use GL driver from nvidia-driver NVIDIA_GL_RUN_DEPENDS= ${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver NVIDIA_GL_RUN_DEPENDS_OFF= linux-f10-dri>0:${PORTSDIR}/graphics/linux-f10-dri Index: games/linux-doom3-demo/Makefile =================================================================== --- games/linux-doom3-demo/Makefile +++ games/linux-doom3-demo/Makefile @@ -29,13 +29,12 @@ SUB_LIST= DOOMDIR="${DOOMDIR}" OPTIONS_DEFINE= DOCS NVIDIA_GL -NVIDIA_GL_DESC= Use GL driver from nvidia-driver + +NVIDIA_GL_RUN_DEPENDS= ${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver .include -.if ${PORT_OPTIONS:MNVIDIA_GL} -RUN_DEPENDS+= ${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver -.else +.if ! ${PORT_OPTIONS:MNVIDIA_GL} USE_LINUX_APPS+=dri .endif Index: games/linux-enemyterritory/Makefile =================================================================== --- games/linux-enemyterritory/Makefile +++ games/linux-enemyterritory/Makefile @@ -23,13 +23,12 @@ PATCH_260B_DIR= Enemy Territory 2.60b OPTIONS_DEFINE= DOCS NVIDIA_GL -NVIDIA_GL_DESC= Use GL driver from nvidia-driver + +NVIDIA_GL_RUN_DEPENDS= ${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver .include -.if ${PORT_OPTIONS:MNVIDIA_GL} -RUN_DEPENDS+= ${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver -.else +.if ! ${PORT_OPTIONS:MNVIDIA_GL} USE_LINUX_APPS+= dri .endif Index: games/linux-rtcw/Makefile =================================================================== --- games/linux-rtcw/Makefile +++ games/linux-rtcw/Makefile @@ -27,7 +27,6 @@ PORTDOCS= * OPTIONS_DEFINE= DOCS NVIDIA_GL -NVIDIA_GL_DESC= Use GL driver from nvidia-driver .include Index: games/linux-ut2003-demo/Makefile =================================================================== --- games/linux-ut2003-demo/Makefile +++ games/linux-ut2003-demo/Makefile @@ -36,7 +36,6 @@ Sounds StaticMeshes System Textures Web OPTIONS_DEFINE= DOCS NVIDIA_GL -NVIDIA_GL_DESC= Use GL driver from nvidia-driver NVIDIA_GL_RUN_DEPENDS= ${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver Index: graphics/linux-c6-glx-utils/Makefile =================================================================== --- graphics/linux-c6-glx-utils/Makefile +++ graphics/linux-c6-glx-utils/Makefile @@ -18,8 +18,9 @@ USE_LDCONFIG= yes OPTIONS_DEFINE= NVIDIA_GL -NVIDIA_GL_DESC= Use GL driver from nvidia-driver -NVIDIA_GL_RUN_DEPENDS= ${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver +NVIDIA_GL_RUN_DEPENDS= ${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver \ + linux-c6-libGLU>0:${PORTSDIR}/graphics/linux-c6-libGLU +NVIDIA_GL_RUN_DEPENDS_OFF= linux-c6-dri>0:${PORTSDIR}/graphics/linux-c6-dri PLIST_FILES= usr/bin/glxgears usr/bin/glxinfo \ usr/bin/xdriinfo usr/share/man/man1/xdriinfo.1.gz @@ -28,10 +29,4 @@ SRC_DISTFILES= mesa-10.1.2-2.el6.src.rpm .endif -.include - -.if ! ${PORT_OPTIONS:MNVIDIA_GL} -USE_LINUX_APPS+= dri -.endif - .include Index: net-im/skype-devel/Makefile =================================================================== --- net-im/skype-devel/Makefile +++ net-im/skype-devel/Makefile @@ -16,7 +16,6 @@ OPTIONS_DEFINE= VIDEO NVIDIA_GL VIDEO_DESC= [broken] Video support -NVIDIA_GL_DESC= libGL provided by NVidia binary drivers OPTIONS_DEFAULT= VIDEO Index: net-im/skype/Makefile =================================================================== --- net-im/skype/Makefile +++ net-im/skype/Makefile @@ -15,7 +15,6 @@ CONFLICTS= skype-devel-[0-9]* OPTIONS_DEFINE= VIDEO NVIDIA_GL -NVIDIA_GL_DESC= libGL provided by NVidia binary drivers OPTIONS_DEFAULT= VIDEO Index: x11-toolkits/linux-c6-qt47-x11/Makefile =================================================================== --- x11-toolkits/linux-c6-qt47-x11/Makefile +++ x11-toolkits/linux-c6-qt47-x11/Makefile @@ -20,21 +20,16 @@ LINUX_DIST_VER= 5 OPTIONS_DEFINE= NVIDIA_GL -NVIDIA_GL_DESC= Use GL driver from nvidia-driver -NVIDIA_GL_RUN_DEPENDS= ${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver + +NVIDIA_GL_RUN_DEPENDS= ${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver \ + linux-c6-libGLU>0:${PORTSDIR}/graphics/linux-c6-libGLU +NVIDIA_GL_RUN_DEPENDS_OFF= linux-c6-dri>0:${PORTSDIR}/graphics/linux-c6-dri USE_LINUX_APPS= fontconfig png xorglibs png alsalib jpeg tiff qt47 USE_LINUX_RPM= yes RPMVERSION= 1_18.el5 LINUX_RPM_ARCH= i386 -.include - -.if ! ${PORT_OPTIONS:MNVIDIA_GL} -USE_LINUX_APPS+= dri -.endif - - DESCR= ${.CURDIR}/../../devel/qt4/pkg-descr post-patch: