aboutsummaryrefslogtreecommitdiff
path: root/x11-drivers/xf86-video-ati/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'x11-drivers/xf86-video-ati/Makefile')
-rw-r--r--x11-drivers/xf86-video-ati/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/x11-drivers/xf86-video-ati/Makefile b/x11-drivers/xf86-video-ati/Makefile
index eee705aa4716..3f7cb4341fb5 100644
--- a/x11-drivers/xf86-video-ati/Makefile
+++ b/x11-drivers/xf86-video-ati/Makefile
@@ -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 <bsd.port.options.mk>
+
+.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 <bsd.port.mk>