Makefile revision 7103
85d5671102cdecf126c6046f39a4e1cd0dadfea7Brendan Miller#
85d5671102cdecf126c6046f39a4e1cd0dadfea7Brendan Miller# CDDL HEADER START
85d5671102cdecf126c6046f39a4e1cd0dadfea7Brendan Miller#
85d5671102cdecf126c6046f39a4e1cd0dadfea7Brendan Miller# The contents of this file are subject to the terms of the
85d5671102cdecf126c6046f39a4e1cd0dadfea7Brendan Miller# Common Development and Distribution License (the "License").
85d5671102cdecf126c6046f39a4e1cd0dadfea7Brendan Miller# You may not use this file except in compliance with the License.
85d5671102cdecf126c6046f39a4e1cd0dadfea7Brendan Miller#
85d5671102cdecf126c6046f39a4e1cd0dadfea7Brendan Miller# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
85d5671102cdecf126c6046f39a4e1cd0dadfea7Brendan Miller# or http://www.opensolaris.org/os/licensing.
85d5671102cdecf126c6046f39a4e1cd0dadfea7Brendan Miller# See the License for the specific language governing permissions
85d5671102cdecf126c6046f39a4e1cd0dadfea7Brendan Miller# and limitations under the License.
85d5671102cdecf126c6046f39a4e1cd0dadfea7Brendan Miller#
85d5671102cdecf126c6046f39a4e1cd0dadfea7Brendan Miller# When distributing Covered Code, include this CDDL HEADER in each
85d5671102cdecf126c6046f39a4e1cd0dadfea7Brendan Miller# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
85d5671102cdecf126c6046f39a4e1cd0dadfea7Brendan Miller# If applicable, add the following below this CDDL HEADER, with the
85d5671102cdecf126c6046f39a4e1cd0dadfea7Brendan Miller# fields enclosed by brackets "[]" replaced with your own identifying
85d5671102cdecf126c6046f39a4e1cd0dadfea7Brendan Miller# information: Portions Copyright [yyyy] [name of copyright owner]
85d5671102cdecf126c6046f39a4e1cd0dadfea7Brendan Miller#
85d5671102cdecf126c6046f39a4e1cd0dadfea7Brendan Miller# CDDL HEADER END
85d5671102cdecf126c6046f39a4e1cd0dadfea7Brendan Miller#
85d5671102cdecf126c6046f39a4e1cd0dadfea7Brendan Miller
85d5671102cdecf126c6046f39a4e1cd0dadfea7Brendan Miller#
85d5671102cdecf126c6046f39a4e1cd0dadfea7Brendan Miller# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
85d5671102cdecf126c6046f39a4e1cd0dadfea7Brendan Miller#
85d5671102cdecf126c6046f39a4e1cd0dadfea7Brendan MillerBUILD_BITS= 64_and_32
85d5671102cdecf126c6046f39a4e1cd0dadfea7Brendan Millerinclude ../../make-rules/shared-macros.mk
85d5671102cdecf126c6046f39a4e1cd0dadfea7Brendan Miller
85d5671102cdecf126c6046f39a4e1cd0dadfea7Brendan MillerCOMPONENT_NAME= sqlite
85d5671102cdecf126c6046f39a4e1cd0dadfea7Brendan MillerTARBALL_VERSION= 3120200
85d5671102cdecf126c6046f39a4e1cd0dadfea7Brendan MillerCOMPONENT_VERSION= 3.12.2
85d5671102cdecf126c6046f39a4e1cd0dadfea7Brendan MillerCOMPONENT_PROJECT_URL= http://www.sqlite.org/
85d5671102cdecf126c6046f39a4e1cd0dadfea7Brendan MillerCOMPONENT_SRC= $(COMPONENT_NAME)-autoconf-$(TARBALL_VERSION)
85d5671102cdecf126c6046f39a4e1cd0dadfea7Brendan MillerCOMPONENT_ARCHIVE_HASH= \
85d5671102cdecf126c6046f39a4e1cd0dadfea7Brendan Miller sha256:fd00770c9afd39db555c78400e52f55e8bd6568c78be23561abb472a22d09abb
85d5671102cdecf126c6046f39a4e1cd0dadfea7Brendan MillerCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)2016/$(COMPONENT_ARCHIVE)
85d5671102cdecf126c6046f39a4e1cd0dadfea7Brendan MillerCOMPONENT_BUGDB= database/sqlite3
85d5671102cdecf126c6046f39a4e1cd0dadfea7Brendan Miller
85d5671102cdecf126c6046f39a4e1cd0dadfea7Brendan Miller# Documentation
85d5671102cdecf126c6046f39a4e1cd0dadfea7Brendan MillerDOC_VERSION= $(TARBALL_VERSION)
85d5671102cdecf126c6046f39a4e1cd0dadfea7Brendan MillerCOMPONENT_SRC_1= $(COMPONENT_NAME)-doc-$(DOC_VERSION)
85d5671102cdecf126c6046f39a4e1cd0dadfea7Brendan MillerCOMPONENT_ARCHIVE_1= $(COMPONENT_SRC_1).zip
85d5671102cdecf126c6046f39a4e1cd0dadfea7Brendan MillerCOMPONENT_ARCHIVE_HASH_1= \
85d5671102cdecf126c6046f39a4e1cd0dadfea7Brendan Miller sha256:67c640c4b01b961016717db61e3e43c63c33248c78ce0de9f10b88ea7ce97670
85d5671102cdecf126c6046f39a4e1cd0dadfea7Brendan MillerCOMPONENT_ARCHIVE_URL_1= $(COMPONENT_PROJECT_URL)2016/$(COMPONENT_ARCHIVE_1)
85d5671102cdecf126c6046f39a4e1cd0dadfea7Brendan MillerPKG_PROTO_DIRS += $(COMPONENT_SRC_1)
85d5671102cdecf126c6046f39a4e1cd0dadfea7Brendan Miller
85d5671102cdecf126c6046f39a4e1cd0dadfea7Brendan MillerTPNO= 27892
85d5671102cdecf126c6046f39a4e1cd0dadfea7Brendan Miller
85d5671102cdecf126c6046f39a4e1cd0dadfea7Brendan MillerTEST_TARGET= $(NO_TESTS)
85d5671102cdecf126c6046f39a4e1cd0dadfea7Brendan Millerinclude $(WS_MAKE_RULES)/common.mk
85d5671102cdecf126c6046f39a4e1cd0dadfea7Brendan Miller
85d5671102cdecf126c6046f39a4e1cd0dadfea7Brendan MillerCOMPONENT_PRE_CONFIGURE_ACTION = \
85d5671102cdecf126c6046f39a4e1cd0dadfea7Brendan Miller ($(CLONEY) $(SOURCE_DIR) $(@D))
85d5671102cdecf126c6046f39a4e1cd0dadfea7Brendan Miller
85d5671102cdecf126c6046f39a4e1cd0dadfea7Brendan MillerLDFLAGS+= $(CC_BITS)
85d5671102cdecf126c6046f39a4e1cd0dadfea7Brendan Miller
85d5671102cdecf126c6046f39a4e1cd0dadfea7Brendan MillerTEA_CONFIGURE_OPTIONS.32 += --with-tcl="$(USRLIBDIR)"
85d5671102cdecf126c6046f39a4e1cd0dadfea7Brendan MillerTEA_CONFIGURE_OPTIONS.64 += --with-tcl="$(USRLIBDIR64)"
85d5671102cdecf126c6046f39a4e1cd0dadfea7Brendan MillerTEA_CONFIGURE_OPTIONS.64 += --enable-64bit
85d5671102cdecf126c6046f39a4e1cd0dadfea7Brendan MillerTEA_CONFIGURE_OPTIONS.sparc.64 += --enable-64bit-vis
TEA_CONFIGURE_OPTIONS = --enable-shared
TEA_CONFIGURE_OPTIONS += $(TEA_CONFIGURE_OPTIONS.$(BITS))
TEA_CONFIGURE_OPTIONS += $(TEA_CONFIGURE_OPTIONS.$(MACH))
TEA_CONFIGURE_OPTIONS += $(TEA_CONFIGURE_OPTIONS.$(MACH).$(BITS))
COMPONENT_POST_CONFIGURE_ACTION = \
(cd $(@D)/tea ; $(ENV) $(CONFIGURE_ENV) $(CONFIG_SHELL) \
./configure $(TEA_CONFIGURE_OPTIONS));
COMPONENT_POST_BUILD_ACTION = \
(cd $(@D)/tea ; $(ENV) $(COMPONENT_BUILD_ENV) \
$(GMAKE) $(COMPONENT_BUILD_ARGS) $(COMPONENT_BUILD_TARGETS));
# Enable DSQLITE_ENABLE_FTS3_TOKENIZER to allow thunderbird work. Should disable it if
# thunderbird fixes that. Bugzilla id https://bugzilla.mozilla.org/show_bug.cgi?id=1252937
CFLAGS += -D_POSIX_PTHREAD_SEMANTICS
CFLAGS += -DNDEBUG
CFLAGS += -DSQLITE_SECURE_DELETE
CFLAGS += -DSQLITE_ENABLE_FTS3
CFLAGS += -DUSE_PREAD
CFLAGS += -DHAVE_USLEEP
CFLAGS += -DHAVE_FDATASYNC
CFLAGS += -DHAVE_STATVFS
CFLAGS += -DSQLITE_ENABLE_DBSTAT_VTAB
CFLAGS += -DSQLITE_ENABLE_UNLOCK_NOTIFY
CFLAGS += -DSQLITE_ENABLE_FTS3_TOKENIZER
CFLAGS += -DSQLITE_ENABLE_STAT2
CFLAGS += -DSQLITE_MAX_SCHEMA_RETRY=25
CFLAGS += -DSQLITE_DEFAULT_PAGE_SIZE=32768
CFLAGS += -DSQLITE_MAX_DEFAULT_PAGE_SIZE=32768
CFLAGS += -DSQLITE_DEFAULT_PCACHE_INITSZ=0
CFLAGS += -I.
CONFIGURE_OPTIONS += --enable-threadsafe
CONFIGURE_OPTIONS += --enable-dynamic-extensions
CONFIGURE_OPTIONS += --enable-shared
CONFIGURE_OPTIONS += --disable-static
REQUIRED_PACKAGES += library/libedit
REQUIRED_PACKAGES += library/readline