5180N/A#
5180N/A# CDDL HEADER START
5180N/A#
5180N/A# The contents of this file are subject to the terms of the
5180N/A# Common Development and Distribution License (the "License").
5180N/A# You may not use this file except in compliance with the License.
5180N/A#
5180N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5180N/A# or http://www.opensolaris.org/os/licensing.
5180N/A# See the License for the specific language governing permissions
5180N/A# and limitations under the License.
5180N/A#
5180N/A# When distributing Covered Code, include this CDDL HEADER in each
5180N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5180N/A# If applicable, add the following below this CDDL HEADER, with the
5180N/A# fields enclosed by brackets "[]" replaced with your own identifying
5180N/A# information: Portions Copyright [yyyy] [name of copyright owner]
5180N/A#
5180N/A# CDDL HEADER END
5180N/A#
5180N/A
5180N/A#
5245N/A# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
5180N/A#
5680N/ABUILD_BITS= 64_and_32
5180N/Ainclude ../../make-rules/shared-macros.mk
5180N/A
5180N/ACOMPONENT_NAME= sqlite
6347N/ATARBALL_VERSION= 3120200
6347N/ACOMPONENT_VERSION= 3.12.2
5180N/ACOMPONENT_PROJECT_URL= http://www.sqlite.org/
5180N/ACOMPONENT_SRC= $(COMPONENT_NAME)-autoconf-$(TARBALL_VERSION)
5180N/ACOMPONENT_ARCHIVE_HASH= \
6347N/A sha256:fd00770c9afd39db555c78400e52f55e8bd6568c78be23561abb472a22d09abb
6347N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)2016/$(COMPONENT_ARCHIVE)
5200N/ACOMPONENT_BUGDB= database/sqlite3
5180N/A
5180N/A# Documentation
5180N/ADOC_VERSION= $(TARBALL_VERSION)
5180N/ACOMPONENT_SRC_1= $(COMPONENT_NAME)-doc-$(DOC_VERSION)
5180N/ACOMPONENT_ARCHIVE_1= $(COMPONENT_SRC_1).zip
5180N/ACOMPONENT_ARCHIVE_HASH_1= \
6347N/A sha256:67c640c4b01b961016717db61e3e43c63c33248c78ce0de9f10b88ea7ce97670
6347N/ACOMPONENT_ARCHIVE_URL_1= $(COMPONENT_PROJECT_URL)2016/$(COMPONENT_ARCHIVE_1)
5180N/APKG_PROTO_DIRS += $(COMPONENT_SRC_1)
5180N/A
6347N/ATPNO= 27892
5180N/A
5680N/ATEST_TARGET= $(NO_TESTS)
5680N/Ainclude $(WS_MAKE_RULES)/common.mk
5180N/A
5180N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
5180N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
5180N/A
7103N/ALDFLAGS+= $(CC_BITS)
7103N/A
5680N/ATEA_CONFIGURE_OPTIONS.32 += --with-tcl="$(USRLIBDIR)"
5680N/ATEA_CONFIGURE_OPTIONS.64 += --with-tcl="$(USRLIBDIR64)"
5680N/ATEA_CONFIGURE_OPTIONS.64 += --enable-64bit
5680N/ATEA_CONFIGURE_OPTIONS.sparc.64 += --enable-64bit-vis
5680N/ATEA_CONFIGURE_OPTIONS = --enable-shared
5680N/ATEA_CONFIGURE_OPTIONS += $(TEA_CONFIGURE_OPTIONS.$(BITS))
5680N/ATEA_CONFIGURE_OPTIONS += $(TEA_CONFIGURE_OPTIONS.$(MACH))
5680N/ATEA_CONFIGURE_OPTIONS += $(TEA_CONFIGURE_OPTIONS.$(MACH).$(BITS))
5680N/A
5180N/ACOMPONENT_POST_CONFIGURE_ACTION = \
5180N/A (cd $(@D)/tea ; $(ENV) $(CONFIGURE_ENV) $(CONFIG_SHELL) \
5680N/A ./configure $(TEA_CONFIGURE_OPTIONS));
5180N/A
5180N/ACOMPONENT_POST_BUILD_ACTION = \
5180N/A (cd $(@D)/tea ; $(ENV) $(COMPONENT_BUILD_ENV) \
5180N/A $(GMAKE) $(COMPONENT_BUILD_ARGS) $(COMPONENT_BUILD_TARGETS));
5180N/A
6723N/A# Enable DSQLITE_ENABLE_FTS3_TOKENIZER to allow thunderbird work. Should disable it if
6723N/A# thunderbird fixes that. Bugzilla id https://bugzilla.mozilla.org/show_bug.cgi?id=1252937
5180N/ACFLAGS += -D_POSIX_PTHREAD_SEMANTICS
5180N/ACFLAGS += -DNDEBUG
5180N/ACFLAGS += -DSQLITE_SECURE_DELETE
5180N/ACFLAGS += -DSQLITE_ENABLE_FTS3
5180N/ACFLAGS += -DUSE_PREAD
5180N/ACFLAGS += -DHAVE_USLEEP
5180N/ACFLAGS += -DHAVE_FDATASYNC
5180N/ACFLAGS += -DHAVE_STATVFS
6347N/ACFLAGS += -DSQLITE_ENABLE_DBSTAT_VTAB
5180N/ACFLAGS += -DSQLITE_ENABLE_UNLOCK_NOTIFY
6723N/ACFLAGS += -DSQLITE_ENABLE_FTS3_TOKENIZER
5180N/ACFLAGS += -DSQLITE_ENABLE_STAT2
5180N/ACFLAGS += -DSQLITE_MAX_SCHEMA_RETRY=25
5180N/ACFLAGS += -DSQLITE_DEFAULT_PAGE_SIZE=32768
5180N/ACFLAGS += -DSQLITE_MAX_DEFAULT_PAGE_SIZE=32768
5497N/ACFLAGS += -DSQLITE_DEFAULT_PCACHE_INITSZ=0
5180N/ACFLAGS += -I.
5180N/A
5180N/ACONFIGURE_OPTIONS += --enable-threadsafe
5200N/ACONFIGURE_OPTIONS += --enable-dynamic-extensions
5180N/ACONFIGURE_OPTIONS += --enable-shared
5180N/ACONFIGURE_OPTIONS += --disable-static
5180N/A
6347N/AREQUIRED_PACKAGES += library/libedit
5180N/AREQUIRED_PACKAGES += library/readline