Observed in e.g. 'svn update' which started segfaulting with sqlite 3.31.1. Thanks to Richard Hipp for identifying the fix we need. ok sthen@
49 lines
1.2 KiB
Makefile
49 lines
1.2 KiB
Makefile
# $OpenBSD: Makefile,v 1.108 2020/03/11 21:01:04 stsp Exp $
|
|
|
|
COMMENT= embedded SQL implementation
|
|
|
|
DISTNAME = sqlite-autoconf-3310100
|
|
PKGNAME= sqlite3-3.31.1
|
|
REVISION= 0
|
|
|
|
# XXX needs bumps every time :-
|
|
SHARED_LIBS += sqlite3 37.10 # 8.6
|
|
# sqlite suggests that users might like to assert() that library and header
|
|
# versions match, so bumps are needed even if function signatures don't change.
|
|
# ... at the current time the only one noticed is a < check (in subversion)
|
|
# rather than an == check so minor bumps are enough to cope with this, though
|
|
# we may run into others later.
|
|
|
|
CATEGORIES= databases
|
|
|
|
HOMEPAGE= https://www.sqlite.org/
|
|
|
|
# PD
|
|
PERMIT_PACKAGE= Yes
|
|
|
|
WANTLIB += c curses m pthread readline z
|
|
|
|
MASTER_SITES = ${HOMEPAGE}2020/
|
|
|
|
CONFIGURE_STYLE= gnu
|
|
CONFIGURE_ARGS= --enable-editline \
|
|
--disable-static-shell
|
|
|
|
# for x11/gnome/tracker
|
|
CONFIGURE_ARGS += --enable-fts5
|
|
|
|
# for mozilla
|
|
CFLAGS+= -DSQLITE_ENABLE_UNLOCK_NOTIFY \
|
|
-DSQLITE_ENABLE_FTS3 \
|
|
-DSQLITE_ENABLE_DBSTAT_VTAB \
|
|
-DSQLITE_ENABLE_COLUMN_METADATA=1
|
|
|
|
BUILD_DEPENDS = converters/sqlite2mdoc
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/man/man3
|
|
${LOCALBASE}/bin/sqlite2mdoc -p ${PREFIX}/man/man3 ${PREFIX}/include/sqlite3.h
|
|
|
|
NO_TEST= Yes
|
|
|
|
.include <bsd.port.mk>
|