b9ececf136
Fix a backwards compatibility problem in version 3.12.0 and 3.12.1: Columns declared as "INTEGER" PRIMARY KEY (with quotes around the datatype keyword) where not being recognized as an INTEGER PRIMARY KEY, which resulted in an incompatible database file. Fix a bug (present since version 3.9.0) that can cause the DELETE operation to miss rows if PRAGMA reverse_unordered_selects is turned on. Fix a bug in the code generator that can causes incorrect results if two or more virtual tables are joined and the virtual table used in outer loop of the join has an IN operator constraint. Correctly interpret negative "PRAGMA cache_size" values when determining the cache size used for sorting large amounts of data.
63 lines
1.8 KiB
Makefile
63 lines
1.8 KiB
Makefile
# $NetBSD: Makefile,v 1.108 2016/04/20 05:04:44 adam Exp $
|
|
|
|
DISTNAME= sqlite-autoconf-${SQLITE3_DISTVERSION}
|
|
PKGNAME= sqlite3-${SQLITE3_VERSION}
|
|
CATEGORIES= databases
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://www.sqlite.org/
|
|
COMMENT= SQL Database Engine in a C Library
|
|
LICENSE= public-domain
|
|
|
|
.include "../../databases/sqlite3/Makefile.version"
|
|
.include "options.mk"
|
|
|
|
USE_LIBTOOL= yes
|
|
USE_TOOLS+= gmake
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS+= --disable-static-shell
|
|
|
|
PKGCONFIG_OVERRIDE+= sqlite3.pc.in
|
|
|
|
INSTALLATION_DIRS+= ${PKGMANDIR}/man1
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
# In the past, Linux had database corruption issues with pread, so
|
|
# only enable it on safe platforms.
|
|
CFLAGS.NetBSD+= -DUSE_PREAD
|
|
|
|
# Darwin < 9 (Mac OS X < 10.5 "Leopard") doesn't have gethostuuid(2)
|
|
# and lacks the zone memory allocator
|
|
.if !empty(MACHINE_PLATFORM:MDarwin-[0-8].*-*)
|
|
CFLAGS+= -DSQLITE_ENABLE_LOCKING_STYLE=0 -DSQLITE_WITHOUT_ZONEMALLOC
|
|
.endif
|
|
|
|
# This define includes the sqlite3_unlock_notify() API in the build.
|
|
# It is required by Firefox 4.x.
|
|
CFLAGS+= -DSQLITE_ENABLE_UNLOCK_NOTIFY=1
|
|
# The following are defined in the NetBSD builtin version.
|
|
CFLAGS+= -DSQLITE_ENABLE_COLUMN_METADATA
|
|
CFLAGS+= -DSQLITE_ENABLE_LOAD_EXTENSION
|
|
|
|
# Uses dlopen and friends but doesn't use -ldl on Linux.
|
|
# See http://www.sqlite.org/cvstrac/tktview?tn=3555
|
|
LIBS+= ${BUILDLINK_LDADD.dl}
|
|
|
|
.if ${OS_VARIANT} == "SCOOSR5"
|
|
LDFLAGS.SCO_SV+= -lpthread
|
|
.endif
|
|
|
|
.include "../../mk/readline.buildlink3.mk"
|
|
.if ${READLINE_TYPE} == "editline" && ${IS_BUILTIN.editline} == "yes"
|
|
LDFLAGS.NetBSD+= -ledit
|
|
LDFLAGS.DragonFly+= -ledit
|
|
LDFLAGS.FreeBSD+= -ledit
|
|
.else
|
|
LDFLAGS.NetBSD+= -lreadline
|
|
LDFLAGS.DragonFly+= -lreadline
|
|
LDFLAGS.FreeBSD+= -lreadline
|
|
.endif
|
|
|
|
.include "../../mk/dlopen.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|