ports/142053: x11/xorg-minimal: [PATCH] allow choosing video driver during build

Carlos Santos unixmania at gmail.com
Sat Dec 26 23:20:01 UTC 2009

>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
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Dec 26 23:20:01 UTC 2009
>Originator:     Carlos Santos
>Release:        9.0-CURRENT
FreeBSD avatar 9.0-CURRENT FreeBSD 9.0-CURRENT #4: Mon Dec  7 03:06:31 UTC 2009     root at avatar:/usr/obj/usr/src/sys/GENERIC  amd64

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.
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
 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 \
@@ -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>


More information about the freebsd-ports-bugs mailing list