2016-04-20 07:04:44 +02:00
|
|
|
# $NetBSD: Makefile,v 1.108 2016/04/20 05:04:44 adam Exp $
|
2009-11-21 17:58:05 +01:00
|
|
|
|
2015-04-22 01:26:42 +02:00
|
|
|
DISTNAME= sqlite-autoconf-${SQLITE3_DISTVERSION}
|
|
|
|
PKGNAME= sqlite3-${SQLITE3_VERSION}
|
2009-11-21 17:58:05 +01:00
|
|
|
CATEGORIES= databases
|
|
|
|
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
|
|
HOMEPAGE= http://www.sqlite.org/
|
|
|
|
COMMENT= SQL Database Engine in a C Library
|
|
|
|
LICENSE= public-domain
|
2007-05-20 02:17:01 +02:00
|
|
|
|
2015-04-22 01:26:42 +02:00
|
|
|
.include "../../databases/sqlite3/Makefile.version"
|
2010-12-17 01:37:34 +01:00
|
|
|
.include "options.mk"
|
|
|
|
|
2010-08-27 11:50:21 +02:00
|
|
|
USE_LIBTOOL= yes
|
|
|
|
USE_TOOLS+= gmake
|
|
|
|
GNU_CONFIGURE= yes
|
2016-03-06 13:12:00 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-static-shell
|
2009-11-21 17:58:05 +01:00
|
|
|
|
|
|
|
PKGCONFIG_OVERRIDE+= sqlite3.pc.in
|
2005-01-16 03:00:33 +01:00
|
|
|
|
2007-05-20 02:17:01 +02:00
|
|
|
INSTALLATION_DIRS+= ${PKGMANDIR}/man1
|
2005-03-07 15:59:06 +01:00
|
|
|
|
2010-06-17 15:45:36 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2010-11-13 22:54:13 +01:00
|
|
|
# In the past, Linux had database corruption issues with pread, so
|
|
|
|
# only enable it on safe platforms.
|
|
|
|
CFLAGS.NetBSD+= -DUSE_PREAD
|
|
|
|
|
2010-06-17 15:45:36 +02:00
|
|
|
# Darwin < 9 (Mac OS X < 10.5 "Leopard") doesn't have gethostuuid(2)
|
2014-08-07 17:36:11 +02:00
|
|
|
# and lacks the zone memory allocator
|
2010-06-17 15:45:36 +02:00
|
|
|
.if !empty(MACHINE_PLATFORM:MDarwin-[0-8].*-*)
|
2014-08-07 17:36:11 +02:00
|
|
|
CFLAGS+= -DSQLITE_ENABLE_LOCKING_STYLE=0 -DSQLITE_WITHOUT_ZONEMALLOC
|
2010-06-17 15:45:36 +02:00
|
|
|
.endif
|
|
|
|
|
2010-07-12 12:54:55 +02:00
|
|
|
# This define includes the sqlite3_unlock_notify() API in the build.
|
|
|
|
# It is required by Firefox 4.x.
|
|
|
|
CFLAGS+= -DSQLITE_ENABLE_UNLOCK_NOTIFY=1
|
2012-12-14 20:36:37 +01:00
|
|
|
# The following are defined in the NetBSD builtin version.
|
|
|
|
CFLAGS+= -DSQLITE_ENABLE_COLUMN_METADATA
|
|
|
|
CFLAGS+= -DSQLITE_ENABLE_LOAD_EXTENSION
|
2010-07-12 12:54:55 +02:00
|
|
|
|
2008-12-31 21:37:09 +01:00
|
|
|
# Uses dlopen and friends but doesn't use -ldl on Linux.
|
|
|
|
# See http://www.sqlite.org/cvstrac/tktview?tn=3555
|
|
|
|
LIBS+= ${BUILDLINK_LDADD.dl}
|
|
|
|
|
2014-07-18 13:25:14 +02:00
|
|
|
.if ${OS_VARIANT} == "SCOOSR5"
|
|
|
|
LDFLAGS.SCO_SV+= -lpthread
|
|
|
|
.endif
|
|
|
|
|
2013-07-15 04:02:17 +02:00
|
|
|
.include "../../mk/readline.buildlink3.mk"
|
2016-01-08 23:25:09 +01:00
|
|
|
.if ${READLINE_TYPE} == "editline" && ${IS_BUILTIN.editline} == "yes"
|
|
|
|
LDFLAGS.NetBSD+= -ledit
|
2016-01-23 06:45:59 +01:00
|
|
|
LDFLAGS.DragonFly+= -ledit
|
2016-03-21 01:33:16 +01:00
|
|
|
LDFLAGS.FreeBSD+= -ledit
|
2016-01-08 23:25:09 +01:00
|
|
|
.else
|
|
|
|
LDFLAGS.NetBSD+= -lreadline
|
2016-01-23 06:45:59 +01:00
|
|
|
LDFLAGS.DragonFly+= -lreadline
|
2016-03-21 01:33:16 +01:00
|
|
|
LDFLAGS.FreeBSD+= -lreadline
|
2016-01-08 22:41:36 +01:00
|
|
|
.endif
|
|
|
|
|
2008-12-31 21:37:09 +01:00
|
|
|
.include "../../mk/dlopen.buildlink3.mk"
|
2005-01-16 03:00:33 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|