aboutsummaryrefslogtreecommitdiffstats
path: root/Mk/Uses
diff options
context:
space:
mode:
authorgahr <gahr@FreeBSD.org>2013-09-24 23:14:30 +0800
committergahr <gahr@FreeBSD.org>2013-09-24 23:14:30 +0800
commit8c4620c7aaea9b945e3c9331cafbba151003dcc7 (patch)
tree34521de445341324c5c26b9fe4551a30c6ead7e6 /Mk/Uses
parent14eb976a8d17719dc9336398a85c303186e4b019 (diff)
downloadfreebsd-ports-gnome-8c4620c7aaea9b945e3c9331cafbba151003dcc7.tar.gz
freebsd-ports-gnome-8c4620c7aaea9b945e3c9331cafbba151003dcc7.tar.zst
freebsd-ports-gnome-8c4620c7aaea9b945e3c9331cafbba151003dcc7.zip
- Fix handling of minimum versions (e.g., USES+=tk:84+)
Approved by: portmgr (bapt)
Diffstat (limited to 'Mk/Uses')
-rw-r--r--Mk/Uses/tcl.mk3
1 files changed, 1 insertions, 2 deletions
diff --git a/Mk/Uses/tcl.mk b/Mk/Uses/tcl.mk
index 04ff887293d7..65230321c054 100644
--- a/Mk/Uses/tcl.mk
+++ b/Mk/Uses/tcl.mk
@@ -99,8 +99,7 @@ IGNORE= USES=${_TCLTK_PORT}: incorrect ${_TCLTK_PORT} version specified: ${_TCLT
.if defined(_TCLTK_MIN_VERSION)
. for _v in ${_TCLTK_VALID_VERSIONS}
-. if ${_TCLTK_MIN_VERSION} < ${_v} || !exists(${LOCALBASE}/lib/lib${_TCLTK_PORT}${_v}.so)
-. else
+. if ${_TCLTK_MIN_VERSION} <= ${_v} && exists(${LOCALBASE}/lib/lib${_TCLTK_PORT}${_v}.so)
_TCLTK_WANTED_VERSION= ${_v}
. endif
. endfor