author | Srinivas Pakala <srinivas.pakala@oracle.com> |
Fri, 29 Apr 2016 18:32:21 -0700 | |
changeset 5899 | aa78da80bb9c |
parent 5682 | 94c0ca64c022 |
child 6349 | 00824654920d |
permissions | -rw-r--r-- |
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 |
# |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5499
diff
changeset
|
25 |
BUILD_BITS= 64_and_32 |
5182
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 |
5421
7c37e32758f1
22666985 Upgrade sqlite to 3.9.2
Stacy Yeh <stacy.yeh@oracle.com>
parents:
5247
diff
changeset
|
29 |
TARBALL_VERSION= 3090200 |
7c37e32758f1
22666985 Upgrade sqlite to 3.9.2
Stacy Yeh <stacy.yeh@oracle.com>
parents:
5247
diff
changeset
|
30 |
COMPONENT_VERSION= 3.9.2 |
5182
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_HASH= \ |
5421
7c37e32758f1
22666985 Upgrade sqlite to 3.9.2
Stacy Yeh <stacy.yeh@oracle.com>
parents:
5247
diff
changeset
|
34 |
sha256:064c0abe9c9177534d4c770bca7a5902f9924b629ac886b4c08956be6dfbc36b |
5182
78cc8a5782fa
15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff
changeset
|
35 |
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
|
36 |
COMPONENT_BUGDB= database/sqlite3 |
5182
78cc8a5782fa
15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff
changeset
|
37 |
|
78cc8a5782fa
15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff
changeset
|
38 |
# Documentation |
78cc8a5782fa
15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff
changeset
|
39 |
DOC_VERSION= $(TARBALL_VERSION) |
78cc8a5782fa
15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff
changeset
|
40 |
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
|
41 |
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
|
42 |
COMPONENT_ARCHIVE_HASH_1= \ |
5421
7c37e32758f1
22666985 Upgrade sqlite to 3.9.2
Stacy Yeh <stacy.yeh@oracle.com>
parents:
5247
diff
changeset
|
43 |
sha256:4b9ecb9d2b0424ca2a288184ee36fa16a11033400638117dd7c669ad2d39177c |
5182
78cc8a5782fa
15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff
changeset
|
44 |
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
|
45 |
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
|
46 |
|
5421
7c37e32758f1
22666985 Upgrade sqlite to 3.9.2
Stacy Yeh <stacy.yeh@oracle.com>
parents:
5247
diff
changeset
|
47 |
TPNO= 26531 |
5182
78cc8a5782fa
15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff
changeset
|
48 |
|
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5499
diff
changeset
|
49 |
TEST_TARGET= $(NO_TESTS) |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5499
diff
changeset
|
50 |
include $(WS_MAKE_RULES)/common.mk |
5182
78cc8a5782fa
15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff
changeset
|
51 |
|
78cc8a5782fa
15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff
changeset
|
52 |
COMPONENT_PRE_CONFIGURE_ACTION = \ |
78cc8a5782fa
15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff
changeset
|
53 |
($(CLONEY) $(SOURCE_DIR) $(@D)) |
78cc8a5782fa
15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff
changeset
|
54 |
|
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5499
diff
changeset
|
55 |
TEA_CONFIGURE_OPTIONS.32 += --with-tcl="$(USRLIBDIR)" |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5499
diff
changeset
|
56 |
TEA_CONFIGURE_OPTIONS.64 += --with-tcl="$(USRLIBDIR64)" |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5499
diff
changeset
|
57 |
TEA_CONFIGURE_OPTIONS.64 += --enable-64bit |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5499
diff
changeset
|
58 |
TEA_CONFIGURE_OPTIONS.sparc.64 += --enable-64bit-vis |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5499
diff
changeset
|
59 |
TEA_CONFIGURE_OPTIONS = --enable-shared |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5499
diff
changeset
|
60 |
TEA_CONFIGURE_OPTIONS += $(TEA_CONFIGURE_OPTIONS.$(BITS)) |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5499
diff
changeset
|
61 |
TEA_CONFIGURE_OPTIONS += $(TEA_CONFIGURE_OPTIONS.$(MACH)) |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5499
diff
changeset
|
62 |
TEA_CONFIGURE_OPTIONS += $(TEA_CONFIGURE_OPTIONS.$(MACH).$(BITS)) |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5499
diff
changeset
|
63 |
|
5182
78cc8a5782fa
15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff
changeset
|
64 |
COMPONENT_POST_CONFIGURE_ACTION = \ |
78cc8a5782fa
15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff
changeset
|
65 |
(cd $(@D)/tea ; $(ENV) $(CONFIGURE_ENV) $(CONFIG_SHELL) \ |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5499
diff
changeset
|
66 |
./configure $(TEA_CONFIGURE_OPTIONS)); |
5182
78cc8a5782fa
15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff
changeset
|
67 |
|
78cc8a5782fa
15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff
changeset
|
68 |
COMPONENT_POST_BUILD_ACTION = \ |
78cc8a5782fa
15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff
changeset
|
69 |
(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
|
70 |
$(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
|
71 |
|
78cc8a5782fa
15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff
changeset
|
72 |
CFLAGS += -D_POSIX_PTHREAD_SEMANTICS |
78cc8a5782fa
15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff
changeset
|
73 |
CFLAGS += -DNDEBUG |
78cc8a5782fa
15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff
changeset
|
74 |
CFLAGS += -DSQLITE_SECURE_DELETE |
78cc8a5782fa
15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff
changeset
|
75 |
CFLAGS += -DSQLITE_ENABLE_FTS3 |
78cc8a5782fa
15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff
changeset
|
76 |
CFLAGS += -DUSE_PREAD |
78cc8a5782fa
15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff
changeset
|
77 |
CFLAGS += -DHAVE_USLEEP |
78cc8a5782fa
15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff
changeset
|
78 |
CFLAGS += -DHAVE_FDATASYNC |
78cc8a5782fa
15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff
changeset
|
79 |
CFLAGS += -DHAVE_STATVFS |
78cc8a5782fa
15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff
changeset
|
80 |
CFLAGS += -DSQLITE_ENABLE_UNLOCK_NOTIFY |
78cc8a5782fa
15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff
changeset
|
81 |
CFLAGS += -DSQLITE_ENABLE_STAT2 |
78cc8a5782fa
15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff
changeset
|
82 |
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
|
83 |
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
|
84 |
CFLAGS += -DSQLITE_MAX_DEFAULT_PAGE_SIZE=32768 |
5499
43b47c5b7a67
22813873 svc.configd increased memory usage, machines run out of space
Stacy Yeh <stacy.yeh@oracle.com>
parents:
5421
diff
changeset
|
85 |
CFLAGS += -DSQLITE_DEFAULT_PCACHE_INITSZ=0 |
5182
78cc8a5782fa
15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff
changeset
|
86 |
CFLAGS += -I. |
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 |
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
|
89 |
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
|
90 |
CONFIGURE_OPTIONS += --enable-shared |
78cc8a5782fa
15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff
changeset
|
91 |
CONFIGURE_OPTIONS += --disable-static |
78cc8a5782fa
15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff
changeset
|
92 |
|
78cc8a5782fa
15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff
changeset
|
93 |
REQUIRED_PACKAGES += library/readline |