author | Rich Burridge <rich.burridge@oracle.com> |
Thu, 23 Feb 2017 13:46:52 -0800 | |
changeset 7687 | 1093e2a9adbd |
parent 7420 | a5a56b02087b |
permissions | -rw-r--r-- |
7420
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
1 |
# |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
2 |
# CDDL HEADER START |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
3 |
# |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
4 |
# The contents of this file are subject to the terms of the |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
5 |
# Common Development and Distribution License (the "License"). |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
6 |
# You may not use this file except in compliance with the License. |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
7 |
# |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
9 |
# or http://www.opensolaris.org/os/licensing. |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
10 |
# See the License for the specific language governing permissions |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
11 |
# and limitations under the License. |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
12 |
# |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
18 |
# |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
19 |
# CDDL HEADER END |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
20 |
# |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
21 |
|
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
22 |
# |
7687
1093e2a9adbd
25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents:
7420
diff
changeset
|
23 |
# Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. |
7420
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
24 |
# |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
25 |
BUILD_BITS = 64 |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
26 |
include ../../make-rules/shared-macros.mk |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
27 |
|
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
28 |
COMPONENT_NAME = jq |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
29 |
COMPONENT_VERSION = 1.5 |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
30 |
COMPONENT_PROJECT_URL = https://github.com/stedolan/jq |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
31 |
COMPONENT_ARCHIVE_HASH = \ |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
32 |
sha256:c4d2bfec6436341113419debf479d833692cc5cdab7eb0326b5a4d4fbe9f493c |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
33 |
COMPONENT_ARCHIVE_URL = $(COMPONENT_PROJECT_URL)/releases/download/$(COMPONENT_NAME)-$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE) |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
34 |
COMPONENT_BUGDB = utility/jq |
7687
1093e2a9adbd
25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents:
7420
diff
changeset
|
35 |
COMPONENT_ANITYA_ID= 13252 |
7420
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
36 |
|
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
37 |
TPNO = 27148 |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
38 |
|
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
39 |
include $(WS_MAKE_RULES)/common.mk |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
40 |
|
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
41 |
COMPILER = gcc |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
42 |
|
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
43 |
# noexbss causes onig.test to fail |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
44 |
LD_MAP_NOEXBSS.sparc = |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
45 |
|
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
46 |
# delete all this when build servers are installed with oniguruma |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
47 |
ONIG_PROTO = $(WS_COMPONENTS)/oniguruma/build/prototype/$(MACH) |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
48 |
ONIG_LIBDIR = $(ONIG_PROTO)$(USRLIBDIR64) |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
49 |
ONIG_INCDIR = $(ONIG_PROTO)$(USRINCDIR) |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
50 |
CONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS) -I$(ONIG_INCDIR)" |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
51 |
CONFIGURE_ENV += LDFLAGS="$(LDFLAGS) -L$(ONIG_LIBDIR)" |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
52 |
CONFIGURE_OPTIONS += --with-oniguruma=$(ONIG_PROTO)$(USRDIR) |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
53 |
|
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
54 |
# couldn't convince autotools to not include the proto runpath |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
55 |
COMPONENT_POST_INSTALL_ACTION += \ |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
56 |
( /usr/bin/elfedit -e 'dyn:delete RPATH' -e 'dyn:delete RUNPATH' \ |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
57 |
"$(PROTOUSRBINDIR)/jq" ) |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
58 |
|
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
59 |
ONIG_MANIFEST = manifest-$(MACH)-oniguruma.depend |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
60 |
DEPENDED += $(WS_COMPONENTS)/oniguruma/build/$(ONIG_MANIFEST) |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
61 |
PKG_PROTO_DIRS += $(WS_COMPONENTS)/oniguruma |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
62 |
|
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
63 |
COMPONENT_TEST_ENV += JQ="$(PROTOUSRBINDIR)/jq" |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
64 |
COMPONENT_TEST_ENV += LD_LIBRARY_PATH_64="$(ONIG_LIBDIR)" |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
65 |
COMPONENT_TEST_TRANSFORMS += \ |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
66 |
'-n ' \ |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
67 |
'-e "/TOTAL/p" ' \ |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
68 |
'-e "/SKIP/p" ' \ |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
69 |
'-e "/PASS/p" ' \ |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
70 |
'-e "/XPASS/p" ' \ |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
71 |
'-e "/FAIL/p" ' \ |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
72 |
'-e "/XFAIL/p" ' \ |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
73 |
'-e "/ERROR/p" ' |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
74 |
|
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
75 |
# need proto to run tests |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
76 |
test: install |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
77 |
|
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
78 |
REQUIRED_PACKAGES += library/oniguruma |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
79 |
REQUIRED_PACKAGES += system/library |
a5a56b02087b
24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff
changeset
|
80 |
REQUIRED_PACKAGES += system/library/math |