Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Dec 2009 23:14:52 GMT
From:      Carlos Santos <unixmania@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/142053: x11/xorg-minimal: [PATCH] allow choosing video driver during build
Message-ID:  <200912262314.nBQNEqAa010243@www.freebsd.org>
Resent-Message-ID: <200912262320.nBQNK1EH028381@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         142053
>Category:       ports
>Synopsis:       x11/xorg-minimal: [PATCH] allow choosing video driver during build
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Dec 26 23:20:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Carlos Santos
>Release:        9.0-CURRENT
>Organization:
N.A.
>Environment:
FreeBSD avatar 9.0-CURRENT FreeBSD 9.0-CURRENT #4: Mon Dec  7 03:06:31 UTC 2009     root@avatar:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
The patch contained in the attachment allows the user to choose a video driver to use instead of the default vesa driver. It allse ensures that xinit and xauth are searched at the right place.
>How-To-Repeat:
N.A.
>Fix:
Apply the patch contained in the attachment.

Patch attached with submission follows:

--- x11/xorg-minimal/Makefile.orig	2009-05-10 20:39:00.000000000 -0300
+++ x11/xorg-minimal/Makefile	2009-12-26 21:13:22.000000000 -0200
@@ -19,12 +19,14 @@
 
 NO_BUILD=	yes
 
+VIDEO_DRIVER?=	vesa
+
 RUN_DEPENDS+=	${LOCALBASE}/bin/Xorg:${PORTSDIR}/x11-servers/xorg-server \
-		${LOCALBASE}/lib/xorg/modules/drivers/vesa_drv.so:${PORTSDIR}/x11-drivers/xf86-video-vesa \
+		${LOCALBASE}/lib/xorg/modules/drivers/${VIDEO_DRIVER}_drv.so:${PORTSDIR}/x11-drivers/xf86-video-${VIDEO_DRIVER} \
 		${LOCALBASE}/lib/xorg/modules/input/mouse_drv.so:${PORTSDIR}/x11-drivers/xf86-input-mouse \
 		${LOCALBASE}/lib/xorg/modules/input/kbd_drv.so:${PORTSDIR}/x11-drivers/xf86-input-keyboard \
-		xinit:${PORTSDIR}/x11/xinit \
-		xauth:${PORTSDIR}/x11/xauth \
+		${LOCALBASE}/bin/xinit:${PORTSDIR}/x11/xinit \
+		${LOCALBASE}/bin/xauth:${PORTSDIR}/x11/xauth \
 		${LOCALBASE}/lib/X11/fonts/misc/fonts.alias:${PORTSDIR}/x11-fonts/font-alias \
 		${LOCALBASE}/lib/X11/fonts/misc/cursor.pcf.gz:${PORTSDIR}/x11-fonts/font-cursor-misc \
 		${LOCALBASE}/lib/X11/fonts/misc/10x20.pcf.gz:${PORTSDIR}/x11-fonts/font-misc-misc
@@ -35,6 +37,10 @@
 	@${ECHO_MSG} "This is a meta-port, meaning that it just depends on its subparts of the port."
 	@${ECHO_MSG} "It won't build and install all the parts until you have typed make install"
 	@${ECHO_MSG} "This port does not ensure things are upgraded; use portmaster if you want to"
-	@${ECHO_MSG} "upgrade X.Org."
+	@${ECHO_MSG} "upgrade X.Org. The \"vesa\" driver is installed by default. You can choose a"
+	@${ECHO_MSG} "different one by means of the VIDEO_DRIVER parameter. For example:"
+	@${ECHO_MSG} ""
+	@${ECHO_MSG} "        make install VIDEO_DRIVER=intel"
+	@${ECHO_MSG} ""
 
 .include <bsd.port.mk>


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912262314.nBQNEqAa010243>