summaryrefslogtreecommitdiff
path: root/Mk/Uses/sqlite.mk
blob: 40ce90c27b9c3d0f1ff1602714d9d4c0acd2c7ef (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Provide support for SQLite
# Feature:	sqlite
# Usage:	USES=	sqlite[:version]
# MAINTAINER:	ports@FreeBSD.org

.if !defined(_INCLUDE_USES_SQLITE_MK)
_INCLUDE_USES_SQLITE_MK=	yes

.  if !empty(sqlite_ARGS)
SQLITE_VER=	${sqlite_ARGS}
.  endif
SQLITE_VER?=	3

.  if ${SQLITE_VER} == 3
LIB_DEPENDS+=	libsqlite3.so:databases/sqlite${SQLITE_VER}
.  elif ${SQLITE_VER} == 2
LIB_DEPENDS+=	libsqlite.so:databases/sqlite${SQLITE_VER}
.  else
IGNORE=		cannot install: unknown SQLite version: ${SQLITE_VER}
.  endif

.endif