Changeset View
Changeset View
Standalone View
Standalone View
Mk/Uses/bdb.mk
Show First 20 Lines • Show All 59 Lines • ▼ Show 20 Lines | |||||
BDB_UNIQUENAME?= ${PKGNAMEPREFIX}${PORTNAME} | BDB_UNIQUENAME?= ${PKGNAMEPREFIX}${PORTNAME} | ||||
.if defined(WITH_BDB_VER) | .if defined(WITH_BDB_VER) | ||||
WARNING+= "WITH_BDB_VER is deprecated and will be removed on 2016-08-01. Use DEFAULT_VERSIONS+=bdb=${WITH_BDB_VER}" | WARNING+= "WITH_BDB_VER is deprecated and will be removed on 2016-08-01. Use DEFAULT_VERSIONS+=bdb=${WITH_BDB_VER}" | ||||
BDB_DEFAULT:=${WITH_BDB_VER} | BDB_DEFAULT:=${WITH_BDB_VER} | ||||
.endif | .endif | ||||
.include "${PORTSDIR}/Mk/bsd.default-versions.mk" | |||||
_BDB_DEFAULT_save:=${BDB_DEFAULT} | _BDB_DEFAULT_save:=${BDB_DEFAULT} | ||||
_DB_PORTS= 48 5 6 | _DB_PORTS= 48 5 6 | ||||
_DB_DEFAULTS= 48 5 # does not include 6 due to different licensing | _DB_DEFAULTS= 48 5 # does not include 6 due to different licensing | ||||
# but user can re-add it through WITH_BDB6_PERMITTED | # but user can re-add it through WITH_BDB6_PERMITTED | ||||
. if defined(WITH_BDB6_PERMITTED) | . if defined(WITH_BDB6_PERMITTED) | ||||
_DB_DEFAULTS+= 6 | _DB_DEFAULTS+= 6 | ||||
. endif | . endif | ||||
Show All 10 Lines | |||||
# Override the global BDB_DEFAULT with the | # Override the global BDB_DEFAULT with the | ||||
# port specific <BDB_UNIQUENAME>_WITH_BDB_VER | # port specific <BDB_UNIQUENAME>_WITH_BDB_VER | ||||
.if defined(${BDB_UNIQUENAME:tu:S,-,_,}_WITH_BDB_VER) | .if defined(${BDB_UNIQUENAME:tu:S,-,_,}_WITH_BDB_VER) | ||||
BDB_DEFAULT= ${${BDB_UNIQUENAME:tu:S,-,_,}_WITH_BDB_VER} | BDB_DEFAULT= ${${BDB_UNIQUENAME:tu:S,-,_,}_WITH_BDB_VER} | ||||
.endif | .endif | ||||
# Override _bdb_ARGS with global BDB_DEFAULT if the maintainer did not | # Override _bdb_ARGS with global BDB_DEFAULT if the maintainer did not | ||||
# ask for a more specific version. | # ask for a more specific version. | ||||
.if defined(BDB_DEFAULT) | . if ${_bdb_ARGS} == yes | ||||
. if ${BDB_DEFAULT} != 1 | . if ${BDB_DEFAULT} != 1 | ||||
_bdb_ARGS= ${BDB_DEFAULT} | _bdb_ARGS= ${BDB_DEFAULT} | ||||
. else | |||||
_bdb_ARGS:= 48+ | |||||
. endif | . endif | ||||
.endif | . endif | ||||
# Compatiblity hack: | # Compatiblity hack: | ||||
# upgrade older plussed versions to 48+ | # upgrade older plussed versions to 48+ | ||||
_BDB_OLDPLUSVERS=4+ 40+ 41+ 42+ 43+ 44+ 45+ 46+ 47+ | _BDB_OLDPLUSVERS=4+ 40+ 41+ 42+ 43+ 44+ 45+ 46+ 47+ | ||||
.for i in ${_bdb_ARGS} | .for i in ${_bdb_ARGS} | ||||
. if ${_BDB_OLDPLUSVERS:M${i}} | . if ${_BDB_OLDPLUSVERS:M${i}} | ||||
_bdb_ARGS:= 48+ | _bdb_ARGS:= 48+ | ||||
. endif | . endif | ||||
.endfor | .endfor | ||||
.if ${_bdb_ARGS} == yes | |||||
_bdb_ARGS:= 48+ | |||||
.endif | |||||
# 1. detect installed versions | # 1. detect installed versions | ||||
_INST_BDB_VER= | _INST_BDB_VER= | ||||
.for bdb in ${_DB_PORTS} | .for bdb in ${_DB_PORTS} | ||||
. if exists(${db${bdb}_FIND}) | . if exists(${db${bdb}_FIND}) | ||||
_INST_BDB_VER+=${bdb} | _INST_BDB_VER+=${bdb} | ||||
. endif | . endif | ||||
.endfor | .endfor | ||||
▲ Show 20 Lines • Show All 136 Lines • Show Last 20 Lines |