aboutsummaryrefslogtreecommitdiff
path: root/x11-drivers/xf86-video-mga
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2010-05-07 05:12:36 +0000
committerMartin Wilke <miwi@FreeBSD.org>2010-05-07 05:12:36 +0000
commit782d0a4471497c04fffad12bf27383357101ea54 (patch)
tree4cd9a82e2244d400c5979cae83786faa998a0e52 /x11-drivers/xf86-video-mga
parentbad881dd75376827336b2541941f4c7b3e7b829d (diff)
downloadports-782d0a4471497c04fffad12bf27383357101ea54.tar.gz
ports-782d0a4471497c04fffad12bf27383357101ea54.zip
- Fix build on 6.X
Notes
Notes: svn path=/head/; revision=253883
Diffstat (limited to 'x11-drivers/xf86-video-mga')
-rw-r--r--x11-drivers/xf86-video-mga/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/x11-drivers/xf86-video-mga/Makefile b/x11-drivers/xf86-video-mga/Makefile
index 8ffe2ccff5f6..b53fe7395e03 100644
--- a/x11-drivers/xf86-video-mga/Makefile
+++ b/x11-drivers/xf86-video-mga/Makefile
@@ -25,4 +25,11 @@ pre-patch:
-e 's|MAXSHORT|SHRT_MAX|g' \
${WRKSRC}/src/mga_arc.c
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 700000
+USE_GCC= 4.2+
+.endif
+
+.include <bsd.port.post.mk>
+