components/sqlite-3/Makefile
author John Beck <John.Beck@Oracle.COM>
Fri, 08 Jan 2016 08:25:03 -0800
changeset 5247 caadbfa6ec4c
parent 5202 1cf3fdb2aee7
child 5421 7c37e32758f1
permissions -rw-r--r--
22518202 sqlite-3 not built with SECURE_DELETE, breaks Firefox
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5182
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
     1
#
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
     3
#
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
     7
#
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    12
#
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    18
#
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    20
#
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    21
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    22
#
5247
caadbfa6ec4c 22518202 sqlite-3 not built with SECURE_DELETE, breaks Firefox
John Beck <John.Beck@Oracle.COM>
parents: 5202
diff changeset
    23
# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
5182
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    24
#
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    25
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    27
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    28
COMPONENT_NAME=		sqlite
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    29
TARBALL_VERSION=	3080801
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    30
COMPONENT_VERSION=	3.8.8.1
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    31
COMPONENT_PROJECT_URL=	http://www.sqlite.org/
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    32
COMPONENT_SRC=		$(COMPONENT_NAME)-autoconf-$(TARBALL_VERSION)
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    33
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    34
COMPONENT_ARCHIVE_HASH= \
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    35
    sha256:2721361eb4a71d5f727dfa466bd910dadd5dbeb4d2d57b8b34205f7ce7e5b7f9
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    36
COMPONENT_ARCHIVE_URL=	$(COMPONENT_PROJECT_URL)2015/$(COMPONENT_ARCHIVE)
5202
1cf3fdb2aee7 22365272 sqlite3 bug category is wrong and configure complains
Rich Burridge <rich.burridge@oracle.com>
parents: 5182
diff changeset
    37
COMPONENT_BUGDB=	database/sqlite3
5182
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    38
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    39
# Documentation
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    40
DOC_VERSION=		$(TARBALL_VERSION)
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    41
COMPONENT_SRC_1=        $(COMPONENT_NAME)-doc-$(DOC_VERSION)
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    42
COMPONENT_ARCHIVE_1=    $(COMPONENT_SRC_1).zip
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    43
COMPONENT_ARCHIVE_HASH_1=       \
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    44
    sha256:8bd54fdb0ed5daf4d47ab97838a116b71cc669591ff0bdd7935ab300942ff93f
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    45
COMPONENT_ARCHIVE_URL_1=         $(COMPONENT_PROJECT_URL)2015/$(COMPONENT_ARCHIVE_1)
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    46
PKG_PROTO_DIRS +=       $(COMPONENT_SRC_1)
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    47
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    48
TPNO=			20813
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    49
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    50
include $(WS_MAKE_RULES)/prep.mk
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    51
include $(WS_MAKE_RULES)/configure.mk
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    52
include $(WS_MAKE_RULES)/ips.mk
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    53
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    54
COMPONENT_PRE_CONFIGURE_ACTION = \
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    55
	($(CLONEY) $(SOURCE_DIR) $(@D))
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    56
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    57
COMPONENT_POST_CONFIGURE_ACTION = \
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    58
	(cd $(@D)/tea ; $(ENV) $(CONFIGURE_ENV) $(CONFIG_SHELL) \
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    59
	./configure --enable-shared --with-tcl="/usr/lib");
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    60
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    61
COMPONENT_POST_BUILD_ACTION = \
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    62
	(cd $(@D)/tea ; $(ENV) $(COMPONENT_BUILD_ENV) \
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    63
	$(GMAKE) $(COMPONENT_BUILD_ARGS) $(COMPONENT_BUILD_TARGETS));
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    64
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    65
CC +=		$(CC_BITS)
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    66
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    67
CFLAGS +=	-D_POSIX_PTHREAD_SEMANTICS
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    68
CFLAGS +=	-DNDEBUG
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    69
CFLAGS +=	-DSQLITE_SECURE_DELETE
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    70
CFLAGS +=	-DSQLITE_ENABLE_FTS3
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    71
CFLAGS +=	-DUSE_PREAD
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    72
CFLAGS +=	-DHAVE_USLEEP
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    73
CFLAGS +=	-DHAVE_FDATASYNC
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    74
CFLAGS +=	-DHAVE_STATVFS
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    75
CFLAGS +=	-DSQLITE_ENABLE_UNLOCK_NOTIFY
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    76
CFLAGS +=	-DSQLITE_ENABLE_STAT2
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    77
CFLAGS +=	-DSQLITE_MAX_SCHEMA_RETRY=25
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    78
CFLAGS +=	-DSQLITE_DEFAULT_PAGE_SIZE=32768
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    79
CFLAGS +=	-DSQLITE_MAX_DEFAULT_PAGE_SIZE=32768
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    80
CFLAGS +=	-I.
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    81
5247
caadbfa6ec4c 22518202 sqlite-3 not built with SECURE_DELETE, breaks Firefox
John Beck <John.Beck@Oracle.COM>
parents: 5202
diff changeset
    82
CONFIGURE_ENV +=	CFLAGS="$(CFLAGS)"
5182
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    83
CONFIGURE_OPTIONS +=	--enable-threadsafe
5202
1cf3fdb2aee7 22365272 sqlite3 bug category is wrong and configure complains
Rich Burridge <rich.burridge@oracle.com>
parents: 5182
diff changeset
    84
CONFIGURE_OPTIONS +=	--enable-dynamic-extensions
5182
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    85
CONFIGURE_OPTIONS +=	--enable-shared
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    86
CONFIGURE_OPTIONS +=	--disable-static
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    87
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    88
ASLR_MODE =	$(ASLR_ENABLE)
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    89
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    90
configure:	$(CONFIGURE_32_and_64)
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    91
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    92
build:          $(BUILD_32_and_64)
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    93
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    94
install:        $(INSTALL_32_and_64)
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    95
5202
1cf3fdb2aee7 22365272 sqlite3 bug category is wrong and configure complains
Rich Burridge <rich.burridge@oracle.com>
parents: 5182
diff changeset
    96
test:           $(NO_TESTS)
5182
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    97
5202
1cf3fdb2aee7 22365272 sqlite3 bug category is wrong and configure complains
Rich Burridge <rich.burridge@oracle.com>
parents: 5182
diff changeset
    98
system-test:	$(NO_TESTS)
5182
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    99
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   100
REQUIRED_PACKAGES += library/readline
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
   101
REQUIRED_PACKAGES += system/library