summaryrefslogtreecommitdiff
path: root/databases/sqlite3/Makefile
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2021-03-14 20:33:03 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2021-03-14 20:33:03 +0000
commit98731c8c61019e7d02a3e07d080db5f580639ffa (patch)
tree91a3da6824b3f11b71fd6b59b3ea07d2ed9fa341 /databases/sqlite3/Makefile
parent- Update to 17560 (diff)
Add sqlite_analyzer support
- Switch to more complete distfile which allows to enable TCL extensions and sqlite_analyzer - Switch to pkg-plist PR: 221735 Reported by: lapo@lapo.it Approved by: maintainer timeout (pavelivolkov@gmail.com, 3.5 years)
Diffstat (limited to 'databases/sqlite3/Makefile')
-rw-r--r--databases/sqlite3/Makefile26
1 files changed, 17 insertions, 9 deletions
diff --git a/databases/sqlite3/Makefile b/databases/sqlite3/Makefile
index 65b52a30999c..05e91f6b90e4 100644
--- a/databases/sqlite3/Makefile
+++ b/databases/sqlite3/Makefile
@@ -6,29 +6,32 @@ DISTVERSION= 3.34.1
PORTEPOCH= 1
CATEGORIES= databases
MASTER_SITES= https://www.sqlite.org/2021/ https://www2.sqlite.org/2021/ https://www3.sqlite.org/2021/
-DISTNAME= sqlite-autoconf-${PORTVERSION:C/\.([[:digit:]])[[:>:]]/0\1/g:S/.//g}00
+DISTNAME= sqlite-src-${PORTVERSION:C/\.([[:digit:]])[[:>:]]/0\1/g:S/.//g}00
MAINTAINER= pavelivolkov@gmail.com
COMMENT= SQL database engine in a C library
LICENSE= PD
-USES= libtool pathfix
+USES= libtool pathfix zip
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
MAKE_JOBS_UNSAFE= yes
-INSTALL_TARGET= install-strip
+ALL_TARGET= all
+CONFIGURE_ENV= TCLSH_CMD="${TCLSH}"
+PLIST_SUB= TCL_VER="${TCL_VER}"
# Compilation Options For SQLite https://www.sqlite.org/compile.html
OPTIONS_DEFINE= FTS4 URI URI_AUTHORITY METADATA \
DIRECT_READ MEMMAN SECURE_DELETE UNLOCK_NOTIFY THREADS \
EXTENSION ARMOR STMT DBPAGE DBSTAT FTS5 RBU NULL_TRIM \
LIKENOTBLOB STSHELL FTS3_TOKEN UNKNOWN_SQL SORT_REF \
- NORMALIZE DQS TRUSTED_SCHEMA
+ NORMALIZE DQS TRUSTED_SCHEMA TCL
OPTIONS_SINGLE= RAMT
OPTIONS_RADIO= STAT RL
OPTIONS_GROUP= OPT_EXT OPT_FUNC UNICODE RTREEG
+OPTIONS_SUB= yes
OPTIONS_GROUP_OPT_EXT= JSON1 SESSION
OPTIONS_GROUP_OPT_FUNC= OFFSET SER1 SOUNDEX
@@ -46,6 +49,7 @@ UNLOCK_NOTIFY_DESC= Enable notification on unlocking
EXTENSION_DESC= Allow loadable extensions
STSHELL_DESC= Statically link libsqlite3 into shell
NORMALIZE_DESC= Enable normalized sql function
+TCL_DESC= Enable tcl extension and sqlite_analyzer
# https://www.sqlite.org/compile.html#dqs
DQS_DESC= Double-quoted String Literals
@@ -142,11 +146,6 @@ OPTIONS_DEFAULT= FTS4 URI METADATA SECURE_DELETE UNLOCK_NOTIFY THREADS \
# FTS5 used by sysutils/tracker
# JSON1 used by net-im/py-matrix-synapse
-PLIST_FILES= bin/sqlite3 include/sqlite3.h include/sqlite3ext.h \
- lib/libsqlite3.a lib/libsqlite3.so lib/libsqlite3.so.0 \
- lib/libsqlite3.so.0.8.6 libdata/pkgconfig/sqlite3.pc \
- man/man1/sqlite3.1.gz
-
# The default numeric file permissions for newly created database files under unix.
# If not specified, the default is 0644 which means that the files is globally
# readable but only writable by the creator.
@@ -229,6 +228,11 @@ NORMALIZE_CPPFLAGS= -DSQLITE_ENABLE_NORMALIZE=1
DQS_CPPFLAGS= -DSQLITE_DQS=3
DQS_CPPFLAGS_OFF= -DSQLITE_DQS=0
+TCL_CONFIGURE_ENABLE= tcl
+TCL_ALL_TARGET= sqlite3_analyzer
+TCL_USES= tcl
+TCL_USES_OFF= tcl:build
+
.include <bsd.port.options.mk>
# Platform Configuration
@@ -251,9 +255,13 @@ post-stage:
${SETENV} LD_LIBMAP_DISABLE=1 ldd -a "${STAGEDIR}${PREFIX}/bin/${PORTNAME}"
post-install:
+ ${INSTALL_MAN} ${WRKSRC}/sqlite3.1 ${STAGEDIR}${PREFIX}/man/man1
${RM} ${STAGEDIR}${PREFIX}/include/msvc.h
${SETENV} LD_LIBMAP_DISABLE=1 ldd -a "${STAGEDIR}${PREFIX}/bin/${PORTNAME}" "${STAGEDIR}${PREFIX}/lib/lib${PORTNAME}.so"
+post-install-TCL-on:
+ ${INSTALL_PROGRAM} ${WRKSRC}/sqlite3_analyzer ${STAGEDIR}${PREFIX}/bin
+
# for compares with checksum from of the site
sha1: checksum
.if defined(SHA1) && !empty(SHA1)