diff options
author | Vsevolod Stakhov <vsevolod@FreeBSD.org> | 2005-11-11 10:29:21 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@FreeBSD.org> | 2005-11-11 10:29:21 +0000 |
commit | e2a0f60990bd449b74e3e4a8ae09fab6fe35f317 (patch) | |
tree | 24d3e22ccb62de9e7c588332fd09bc36d2ceab7a /Mk/bsd.database.mk | |
parent | 2c6e96f14ca37cc0b5b646285ec088dee0d22cdb (diff) | |
download | ports-e2a0f60990bd449b74e3e4a8ae09fab6fe35f317.tar.gz ports-e2a0f60990bd449b74e3e4a8ae09fab6fe35f317.zip |
Notes
Diffstat (limited to 'Mk/bsd.database.mk')
-rw-r--r-- | Mk/bsd.database.mk | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/Mk/bsd.database.mk b/Mk/bsd.database.mk index 02b07bd0c291..ab1ece58b5ca 100644 --- a/Mk/bsd.database.mk +++ b/Mk/bsd.database.mk @@ -173,7 +173,7 @@ _DB_42P= 42 43 _WANT_BDB_VER= ${USE_BDB} # Assume the default bdb version as 41 -.if ${USE_BDB} == "yes" +.if ${USE_BDB:L} == "yes" _WANT_BDB_VER= 41+ .endif @@ -204,7 +204,7 @@ _FOUND= yes .endif .endfor -# USE_BDB is specified incorrectly, so mark this as BROKEN +# USE_BDB is specified incorrectly, so mark this as IGNORE .if ${_FOUND} == "no" IGNORE= "Unknown bdb version: ${USE_BDB}" .endif @@ -214,18 +214,21 @@ IGNORE= "Unknown bdb version: ${USE_BDB}" # Handling sqlite dependency .if defined(USE_SQLITE) -.if ${USE_SQLITE} == "yes" +.if ${USE_SQLITE:L} == "yes" _SQLITE_VER= 3 .else _SQLITE_VER= ${USE_SQLITE} .endif -.if ${_SQLITE_VER} != "3" && ${_SQLITE_VER} != "2" +# USE_SQLITE is specified incorrectly, so mark this as IGNORE +.if ${_SQLITE_VER} == "3" +LIB_DEPENDS+= sqlite${_SQLITE_VER}:${PORTSDIR}/databases/sqlite${_SQLITE_VER} +.elif ${_SQLITE_VER} == "2" +LIB_DEPENDS+= sqlite.${_SQLITE_VER}:${PORTSDIR}/databases/sqlite${_SQLITE_VER} +.else IGNORE= "Unknown sqlite version: ${_SQLITE_VER}" .endif -LIB_DEPENDS+= sqlite${_SQLITE_VER}:${PORTSDIR}/databases/sqlite${_SQLITE_VER} - .endif # defined(USE_SQLITE) .endif # defined(_POSTMKINCLUDED) && !defined(Database_Post_Include) |