From owner-svn-ports-all@FreeBSD.ORG Fri Mar 27 08:33:30 2015 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9246946B; Fri, 27 Mar 2015 08:33:30 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 73177979; Fri, 27 Mar 2015 08:33:30 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t2R8XU6w015329; Fri, 27 Mar 2015 08:33:30 GMT (envelope-from dumbbell@FreeBSD.org) Received: (from dumbbell@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t2R8XS49015320; Fri, 27 Mar 2015 08:33:28 GMT (envelope-from dumbbell@FreeBSD.org) Message-Id: <201503270833.t2R8XS49015320@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: dumbbell set sender to dumbbell@FreeBSD.org using -f From: Jean-Sebastien Pedron Date: Fri, 27 Mar 2015 08:33:28 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r382375 - in head/x11-drivers: . drm-kmod xf86-video-ati xf86-video-intel X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Mar 2015 08:33:30 -0000 Author: dumbbell (src committer) Date: Fri Mar 27 08:33:27 2015 New Revision: 382375 URL: https://svnweb.freebsd.org/changeset/ports/382375 QAT: https://qat.redports.org/buildarchive/r382375/ Log: x11-drivers/drm-kmod: Port for the DRM kernel drivers for FreeBSD 9.3 This port allows us to provide updated DRM kernel drivers on FreeBSD 9.3. Kernel modules are suffixed with "_port" compared to the vanilla drivers (eg. i915kms.ko becomes i915kms_port.ko). The device-independent module, renamed as drm2_port.ko, is also included. However, Radeon firmwares are not: the vanilla ones are still being used. xf86-video-ati and xf86-video-intel depends on drm-kmod on FreeBSD 9.3. These ports are modified to automatically load the *_port kernel module. This initial version brings hardware context support to the i915 driver. This feature is required by Mesa 9.2+, which itself is required by xserver 1.15+. Differential Revision: https://reviews.freebsd.org/D2149 Reviewed by: kwm Approved by: kwm Tested by: Florian Degner Added: head/x11-drivers/drm-kmod/ head/x11-drivers/drm-kmod/Makefile (contents, props changed) head/x11-drivers/drm-kmod/distinfo (contents, props changed) head/x11-drivers/drm-kmod/pkg-descr (contents, props changed) Modified: head/x11-drivers/Makefile head/x11-drivers/xf86-video-ati/Makefile head/x11-drivers/xf86-video-intel/Makefile Modified: head/x11-drivers/Makefile ============================================================================== --- head/x11-drivers/Makefile Fri Mar 27 08:26:59 2015 (r382374) +++ head/x11-drivers/Makefile Fri Mar 27 08:33:27 2015 (r382375) @@ -3,6 +3,7 @@ COMMENT = X11 drivers + SUBDIR += drm-kmod SUBDIR += xf86-input-acecad SUBDIR += xf86-input-egalax SUBDIR += xf86-input-elographics Added: head/x11-drivers/drm-kmod/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11-drivers/drm-kmod/Makefile Fri Mar 27 08:33:27 2015 (r382375) @@ -0,0 +1,32 @@ +# Created by: Jean-Sebastien Pedron +# $FreeBSD$ + +PORTNAME= drm-kmod +DISTVERSION= 9.280208 +CATEGORIES= x11-drivers +MASTER_SITES= LOCAL/dumbbell +DISTNAME= drm-${DISTVERSION} + +MAINTAINER= x11@FreeBSD.org +COMMENT= FreeBSD 9.3 Kernel DRM driver + +LICENSE= MIT + +USES= tar:xz kmod +ONLY_FOR_ARCHS= i386 amd64 + +PLIST_FILES= ${KMODDIR}/drm2_port.ko \ + ${KMODDIR}/i915kms_port.ko \ + ${KMODDIR}/radeonkms_port.ko \ + +.include + +.if (${OSVERSION} < 903000 || ${OSVERSION} > 1000000) +IGNORE= this port is only for 9.3 systems +.endif + +.if ${PORT_OPTIONS:MDEBUG} +MAKE_ARGS+=" HAVE_DEBUG=YES" +.endif + +.include Added: head/x11-drivers/drm-kmod/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11-drivers/drm-kmod/distinfo Fri Mar 27 08:33:27 2015 (r382375) @@ -0,0 +1,2 @@ +SHA256 (drm-9.280208.tar.xz) = 27586b92a14b4a7596e838eaeb596ae82b53cb7807179a456bb4e5cad0c8c8b0 +SIZE (drm-9.280208.tar.xz) = 902972 Added: head/x11-drivers/drm-kmod/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11-drivers/drm-kmod/pkg-descr Fri Mar 27 08:33:27 2015 (r382375) @@ -0,0 +1,3 @@ +The DRM kernel driver supports Intel and Radeon GPUs. + +WWW: http://www.freebsd.org/ Modified: head/x11-drivers/xf86-video-ati/Makefile ============================================================================== --- head/x11-drivers/xf86-video-ati/Makefile Fri Mar 27 08:26:59 2015 (r382374) +++ head/x11-drivers/xf86-video-ati/Makefile Fri Mar 27 08:33:27 2015 (r382375) @@ -2,7 +2,7 @@ PORTNAME= xf86-video-ati PORTVERSION= 7.5.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= x11-drivers MAINTAINER= x11@FreeBSD.org @@ -22,4 +22,14 @@ ONLY_FOR_ARCHS= i386 amd64 CONFIGURE_ARGS+=--disable-udev CONFIGURE_ARGS+=--disable-glamor +.include + +.if (${OSVERSION} >= 903000 && ${OSVERSION} < 1000000) +RUN_DEPENDS+= drm-kmod>=9:${PORTSDIR}/x11-drivers/drm-kmod + +post-patch: + @${REINPLACE_CMD} -e 's|"radeonkms"|"radeonkms_port"|g' \ + ${WRKSRC}/src/radeon_kms.c +.endif + .include Modified: head/x11-drivers/xf86-video-intel/Makefile ============================================================================== --- head/x11-drivers/xf86-video-intel/Makefile Fri Mar 27 08:26:59 2015 (r382374) +++ head/x11-drivers/xf86-video-intel/Makefile Fri Mar 27 08:33:27 2015 (r382375) @@ -3,7 +3,7 @@ PORTNAME= xf86-video-intel PORTVERSION= 2.21.15 -PORTREVISION= 6 +PORTREVISION= 7 CATEGORIES= x11-drivers MAINTAINER= x11@FreeBSD.org @@ -33,4 +33,14 @@ CONFIGURE_ARGS+= --enable-sna CONFIGURE_ARGS+= --disable-glamor INSTALL_TARGET= install-strip +.include + +.if (${OSVERSION} >= 903000 && ${OSVERSION} < 1000000) +RUN_DEPENDS+= drm-kmod>=9:${PORTSDIR}/x11-drivers/drm-kmod + +post-patch: + @${REINPLACE_CMD} -e 's|"i915kms"|"i915kms_port"|g' \ + ${WRKSRC}/src/intel_device.c +.endif + .include