- Skip versions for which requested component is not available. Fixes ports

that define

  USE_WX=	2.4+
  WX_COMPS=	python
This commit is contained in:
Pav Lucistnik 2006-12-03 18:04:39 +00:00
parent 3ac2f4749e
commit b69c79b36a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=178709

View File

@ -136,6 +136,14 @@ _WX_VERS_ALL= 2.4 2.6 2.8
_WX_VERS_UC_ALL= 2.6 2.8
_WX_VERS_LISTS= WANT_WX_VER WITH_WX_VER
# _WX_ILLEGAL_VERS_PYTHON - List of versions where wxPython is not available
# _WX_ILLEGAL_VERS_MOZILLA - List of versions where wxmozilla is not available
# _WX_ILLEGAL_VERS_SVG - List of versions where wxsvg is not available
_WX_ILLEGAL_VERS_PYTHON= 2.8
_WX_ILLEGAL_VERS_MOZILLA= 2.6 2.8
_WX_ILLEGAL_VERS_SVG= 2.4 2.8
#
# Variables used to determine what is needed:
# _WX_PORT_comp_ver - Port directory.
@ -386,6 +394,28 @@ _WX_UCL= #
_WX_PYSUFX= -ansi
.endif
# Limit range of possible versions for python, svg and mozila
.for comp in ${WX_COMPS}
_WX_COMP= ${comp}
. if ${_WX_COMP} == "python"
. for excl in ${_WX_ILLEGAL_VERS_PYTHON}
_WX_VER_FINAL:= ${_WX_VER_FINAL:S/${excl}//}
. endfor
. endif
. if ${_WX_COMP} == "mozilla"
. for excl in ${_WX_ILLEGAL_VERS_MOZILLA}
_WX_VER_FINAL:= ${_WX_VER_FINAL:S/${excl}//}
. endfor
. endif
. if ${_WX_COMP} == "svg"
. for excl in ${_WX_ILLEGAL_VERS_SVG}
_WX_VER_FINAL:= ${_WX_VER_FINAL:S/${excl}//}
. endfor
. endif
.endfor
#
# Choose final version.
#