aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Mk/bsd.port.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index dd4cfd440097..361d5394a167 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -720,8 +720,12 @@ MAKE_ENV+= OPENSSLLIB=${OPENSSLLIB} OPENSSLINC=${OPENSSLINC} \
.include "${PORTSDIR}/Mk/bsd.gnome.mk"
-# defaults to 3.3.6; will be changed to 4.0 when it is ready
+# defaults to 4.x for -CURRENT; and 3.3.6 for all other branches
+.if ${OSVERSION} > 500025
+XFREE86_VERSION?= 4
+.else
XFREE86_VERSION?= 3
+.endif
.endif
# End of pre-makefile section.