diff --git a/x11-drivers/Makefile b/x11-drivers/Makefile index 780ec9b..ffdb760 100644 --- a/x11-drivers/Makefile +++ b/x11-drivers/Makefile @@ -3,6 +3,7 @@ COMMENT = X11 drivers + SUBDIR += drm-i915-kmod SUBDIR += xf86-input-acecad SUBDIR += xf86-input-egalax SUBDIR += xf86-input-elographics diff --git a/x11-drivers/drm-i915-kmod/Makefile b/x11-drivers/drm-i915-kmod/Makefile new file mode 100644 index 0000000..bb64dda --- /dev/null +++ b/x11-drivers/drm-i915-kmod/Makefile @@ -0,0 +1,31 @@ +# Created by: Jean-Sebastien Pedron +# $FreeBSD$ + +PORTNAME= drm-i915-kmod +DISTVERSION= 9.275699 +CATEGORIES= x11-drivers +MASTER_SITES= LOCAL/dumbbell +DISTNAME= drm-i915-${DISTVERSION} + +MAINTAINER= x11@FreeBSD.org +COMMENT= FreeBSD 9.3 Kernel DRM driver for i915 GPUs + +LICENSE= MIT + +USES= tar:xz kmod +ONLY_FOR_ARCHS= i386 amd64 + +PLIST_FILES= ${KMODDIR}/drm2_port.ko \ + ${KMODDIR}/i915kms_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 diff --git a/x11-drivers/drm-i915-kmod/distinfo b/x11-drivers/drm-i915-kmod/distinfo new file mode 100644 index 0000000..5ce63f3 --- /dev/null +++ b/x11-drivers/drm-i915-kmod/distinfo @@ -0,0 +1,2 @@ +SHA256 (drm-i915-9.275699.tar.xz) = a006301b006c5c1a2e6543d16b21b246afb2a20672ab419c118f44c9a7b4fccf +SIZE (drm-i915-9.275699.tar.xz) = 414820 diff --git a/x11-drivers/drm-i915-kmod/pkg-descr b/x11-drivers/drm-i915-kmod/pkg-descr new file mode 100644 index 0000000..db32918 --- /dev/null +++ b/x11-drivers/drm-i915-kmod/pkg-descr @@ -0,0 +1,3 @@ +The i915 kernel DRM driver supports Intel GPUs. + +WWW: http://www.freebsd.org/ diff --git a/x11-drivers/xf86-video-intel/Makefile b/x11-drivers/xf86-video-intel/Makefile index 1a52f37..20eff41 100644 --- a/x11-drivers/xf86-video-intel/Makefile +++ b/x11-drivers/xf86-video-intel/Makefile @@ -30,4 +30,14 @@ CONFIGURE_ARGS+= --enable-sna CONFIGURE_ARGS+= --disable-glamor INSTALL_TARGET= install-strip +.include + +.if (${OSVERSION} >= 903000 && ${OSVERSION} < 1000000) +RUN_DEPENDS+= drm-i915-kmod>=9:${PORTSDIR}/x11-drivers/drm-i915-kmod + +post-patch: + @${REINPLACE_CMD} -e 's|"i915kms"|"i915kms_port"|g' \ + ${WRKSRC}/src/intel_device.c +.endif + .include