linux GL libraries and nvidia drivers

Boris Samorodov bsam at ipt.ru
Thu Sep 10 07:33:25 UTC 2009


On Thu, 10 Sep 2009 10:47:45 +0400 Boris Samorodov wrote:

> BTW, I can create a linux-f10-libGLU port if it is needed. But I'm
> not sure if it is needed.

After a better look at ports which use nvidia drivers I stand
corrected. Seems that the best way is to create a new linux
libGLU port and patch bsd.linux-apps.mk. Then ports which
use nvidia drivers should use a patch like:
-----
--- Makefile.orig	2009-06-07 19:23:52.000000000 +0400
+++ Makefile	2009-09-10 11:26:00.000000000 +0400
@@ -31,8 +31,8 @@
 .include <bsd.port.pre.mk>
 
 .if defined(WITH_NVIDIA)
-RUN_DEPENDS+=	${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver \
-		${LINUXBASE}/usr/X11R6/lib/libGLU.so.1:${PORTSDIR}/graphics/linux-libGLU
+RUN_DEPENDS+=	${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver
+USE_LINUX_APPS+=libGLU
 .else
 USE_LINUX_APPS+=dri
 .endif
-----

-- 
WBR, Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone & Internet SP
FreeBSD Committer, http://www.FreeBSD.org The Power To Serve


More information about the freebsd-emulation mailing list