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