aboutsummaryrefslogtreecommitdiff
path: root/x11-drivers/xf86-video-mga/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'x11-drivers/xf86-video-mga/Makefile')
-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>
+