Changeset View
Changeset View
Standalone View
Standalone View
Mk/Uses/bdb.mk
# $FreeBSD$ | # $FreeBSD$ | ||||
# | # | ||||
# Provide support for Berkeley DB | # Provide support for Berkeley DB | ||||
# Feature: bdb | # Feature: bdb | ||||
# Usage: USES= bdb[:version] | # Usage: USES= bdb[:version] | ||||
# | # | ||||
# If no version is given (by the maintainer via the port or | # If no version is given (by the maintainer via the port or | ||||
# by the user via defined variable), try to find the | # by the user via defined variable), try to find the | ||||
# currently installed version. Fall back to default if | # currently installed version. Fall back to default if | ||||
# necessary (db5 if compatible). | # necessary (db5 if compatible). | ||||
# This adds a "debug-bdb" make target which will dump the | # This adds a "debug-bdb" make target which will dump the | ||||
# related data. | # related data. | ||||
# INVALID_BDB_VER | # INVALID_BDB_VER | ||||
# - This variable can be defined when the port does not | # - This variable can be defined when the port does not | ||||
# support one or more versions of Berkeley DB. | # support one or more versions of Berkeley DB. | ||||
# WITH_BDB_VER | |||||
# - User defined global variable to set Berkeley DB version. | |||||
# Deprecated, use DEFAULT_VERSIONS+=bdb=xx | |||||
# <BDB_UNIQUENAME>_WITH_BDB_VER | # <BDB_UNIQUENAME>_WITH_BDB_VER | ||||
# - User defined port specific variable to set Berkeley DB | # - User defined port specific variable to set Berkeley DB | ||||
# version. | # version. | ||||
# WITH_BDB_HIGHEST | # WITH_BDB_HIGHEST | ||||
# - Use the highest installed version of Berkeley DB. | # - Use the highest installed version of Berkeley DB. | ||||
# WITH_BDB6_PERMITTED | # WITH_BDB6_PERMITTED | ||||
# - If defined, BerkeleyDB 6 is added to the | # - If defined, BerkeleyDB 6 is added to the | ||||
# default version set, making it eligible even | # default version set, making it eligible even | ||||
Show All 27 Lines | |||||
_bdb_ARGS:= ${bdb_ARGS} | _bdb_ARGS:= ${bdb_ARGS} | ||||
.endif | .endif | ||||
_bdb_ARGS?= yes | _bdb_ARGS?= yes | ||||
# TODO: avoid malformed conditional with invalid _bdb_ARGS/BDB_DEFAULT | # TODO: avoid malformed conditional with invalid _bdb_ARGS/BDB_DEFAULT | ||||
# check if + works properly from test builds 01h12m23s | # check if + works properly from test builds 01h12m23s | ||||
BDB_UNIQUENAME?= ${PKGNAMEPREFIX}${PORTNAME} | BDB_UNIQUENAME?= ${PKGNAMEPREFIX}${PORTNAME} | ||||
.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}" | |||||
BDB_DEFAULT:=${WITH_BDB_VER} | |||||
.endif | |||||
_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 | ||||
▲ Show 20 Lines • Show All 179 Lines • Show Last 20 Lines |