Changeset View
Changeset View
Standalone View
Standalone View
head/Mk/bsd.database.mk
Show First 20 Lines • Show All 70 Lines • ▼ Show 20 Lines | |||||
# the Berkeley DB include directory (default: | # the Berkeley DB include directory (default: | ||||
# ${LOCALBASE}/include/db41). | # ${LOCALBASE}/include/db41). | ||||
# BDB_LIB_DIR | # BDB_LIB_DIR | ||||
# - This variable is automatically set to the location of | # - This variable is automatically set to the location of | ||||
# the Berkeley DB library directory. | # the Berkeley DB library directory. | ||||
# BDB_VER | # BDB_VER | ||||
# - Detected Berkeley DB version. | # - Detected Berkeley DB version. | ||||
## | ## | ||||
# USE_SQLITE - Add dependency on SQLite library. Valid values are: | |||||
# 3 and 2. If version is not specified directly then | |||||
# SQLite-3 is used (if USE_SQLITE= yes). | |||||
# SQLITE_VER | |||||
# - Detected SQLite version. | |||||
## | |||||
# USE_FIREBIRD - Add dependency on Firebird library. Valid values are: | # USE_FIREBIRD - Add dependency on Firebird library. Valid values are: | ||||
# 2 and 1. If no version is given by the maintainer (if | # 2 and 1. If no version is given by the maintainer (if | ||||
# USE_FIREBIRD= yes) and the user did not define | # USE_FIREBIRD= yes) and the user did not define | ||||
# WITH_FIREBIRD_VER variable, fall back to default "2". | # WITH_FIREBIRD_VER variable, fall back to default "2". | ||||
# WITH_FIREBIRD_VER | # WITH_FIREBIRD_VER | ||||
# - User defined variable to set Firebird version. | # - User defined variable to set Firebird version. | ||||
# FIREBIRD_VER | # FIREBIRD_VER | ||||
# - Detected Firebird version. | # - Detected Firebird version. | ||||
▲ Show 20 Lines • Show All 282 Lines • ▼ Show 20 Lines | |||||
IGNORE+= ${_IGNORE_MSG} | IGNORE+= ${_IGNORE_MSG} | ||||
. else | . else | ||||
IGNORE= ${_IGNORE_MSG} | IGNORE= ${_IGNORE_MSG} | ||||
. endif | . endif | ||||
. endif | . endif | ||||
.endif | .endif | ||||
.endif # USE_BDB | .endif # USE_BDB | ||||
# Handling SQLite dependency | |||||
.if defined(USE_SQLITE) | |||||
.if ${USE_SQLITE:tl} == "yes" | |||||
_SQLITE_VER= 3 | |||||
.else | |||||
_SQLITE_VER= ${USE_SQLITE} | |||||
.endif | |||||
# USE_SQLITE is specified incorrectly, so mark this as IGNORE | |||||
.if ${_SQLITE_VER} == "3" | |||||
LIB_DEPENDS+= libsqlite3.so:databases/sqlite${_SQLITE_VER} | |||||
SQLITE_VER= ${_SQLITE_VER} | |||||
.elif ${_SQLITE_VER} == "2" | |||||
LIB_DEPENDS+= libsqlite.so:databases/sqlite${_SQLITE_VER} | |||||
SQLITE_VER= ${_SQLITE_VER} | |||||
.else | |||||
IGNORE= cannot install: unknown SQLite version: ${_SQLITE_VER} | |||||
.endif | |||||
.endif # defined(USE_SQLITE) | |||||
.if defined(USE_FIREBIRD) | .if defined(USE_FIREBIRD) | ||||
.if defined(WITH_FIREBIRD_VER) | .if defined(WITH_FIREBIRD_VER) | ||||
USE_FIREBIRD= ${WITH_FIREBIRD_VER} | USE_FIREBIRD= ${WITH_FIREBIRD_VER} | ||||
.endif | .endif | ||||
.if ${USE_FIREBIRD:tl} == "yes" | .if ${USE_FIREBIRD:tl} == "yes" | ||||
Show All 14 Lines |