pkgsrc/databases/sqlite3/Makefile
adam 5cdf963ee7 Changes 3.7.6.3:
* Fix a problem with WAL mode which could cause transactions to silently
  rollback if the cache_size is set very small (less than 10) and SQLite comes
  under memory pressure.
2011-05-19 20:42:53 +00:00

47 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.43 2011/05/19 20:42:53 adam Exp $
DISTNAME= sqlite-autoconf-3070603
PKGNAME= sqlite3-3.7.6.3
CATEGORIES= databases
MASTER_SITES= http://www.hwaci.com/sw/sqlite/ \
http://www.sqlite.org/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.sqlite.org/
COMMENT= SQL Database Engine in a C Library
LICENSE= public-domain
PKG_DESTDIR_SUPPORT= user-destdir
.include "options.mk"
USE_LIBTOOL= yes
USE_TOOLS+= gmake
GNU_CONFIGURE= yes
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)
.if !empty(MACHINE_PLATFORM:MDarwin-[0-8].*-*)
CFLAGS+= -DSQLITE_ENABLE_LOCKING_STYLE=0
.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
# Uses dlopen and friends but doesn't use -ldl on Linux.
# See http://www.sqlite.org/cvstrac/tktview?tn=3555
LIBS+= ${BUILDLINK_LDADD.dl}
.include "../../devel/readline/buildlink3.mk"
.include "../../mk/dlopen.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"