diff --git a/x11-drivers/Makefile b/x11-drivers/Makefile index 780ec9b..05deb86 100644 --- a/x11-drivers/Makefile +++ b/x11-drivers/Makefile @@ -3,6 +3,7 @@ COMMENT = X11 drivers + SUBDIR += drm-kmod SUBDIR += xf86-input-acecad SUBDIR += xf86-input-egalax SUBDIR += xf86-input-elographics diff --git a/x11-drivers/drm-kmod/Makefile b/x11-drivers/drm-kmod/Makefile new file mode 100644 index 0000000..1eee0c7 --- /dev/null +++ b/x11-drivers/drm-kmod/Makefile @@ -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 diff --git a/x11-drivers/drm-kmod/distinfo b/x11-drivers/drm-kmod/distinfo new file mode 100644 index 0000000..1607aec --- /dev/null +++ b/x11-drivers/drm-kmod/distinfo @@ -0,0 +1,2 @@ +SHA256 (drm-9.280208.tar.xz) = 27586b92a14b4a7596e838eaeb596ae82b53cb7807179a456bb4e5cad0c8c8b0 +SIZE (drm-9.280208.tar.xz) = 902972 diff --git a/x11-drivers/drm-kmod/pkg-descr b/x11-drivers/drm-kmod/pkg-descr new file mode 100644 index 0000000..31ac0d6 --- /dev/null +++ b/x11-drivers/drm-kmod/pkg-descr @@ -0,0 +1,3 @@ +The DRM kernel driver supports Intel and Radeon GPUs. + +WWW: http://www.freebsd.org/ diff --git a/x11-drivers/xf86-video-ati/Makefile b/x11-drivers/xf86-video-ati/Makefile index eee705a..cbb1908 100644 --- a/x11-drivers/xf86-video-ati/Makefile +++ b/x11-drivers/xf86-video-ati/Makefile @@ -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 diff --git a/x11-drivers/xf86-video-intel/Makefile b/x11-drivers/xf86-video-intel/Makefile index 1a52f37..3f2012d 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-kmod>=9:${PORTSDIR}/x11-drivers/drm-kmod + +post-patch: + @${REINPLACE_CMD} -e 's|"i915kms"|"i915kms_port"|g' \ + ${WRKSRC}/src/intel_device.c +.endif + .include