author | Rich Burridge <rich.burridge@oracle.com> |
Fri, 14 Aug 2015 08:52:08 -0700 | |
changeset 4775 | 3eeb991f0795 |
parent 4339 | 6501cf9c29f9 |
child 5066 | 7e7b4d607ab6 |
permissions | -rw-r--r-- |
143
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
1 |
# |
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
2 |
# CDDL HEADER START |
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
3 |
# |
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
4 |
# The contents of this file are subject to the terms of the |
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
5 |
# Common Development and Distribution License (the "License"). |
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
6 |
# You may not use this file except in compliance with the License. |
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
7 |
# |
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
9 |
# or http://www.opensolaris.org/os/licensing. |
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
10 |
# See the License for the specific language governing permissions |
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
11 |
# and limitations under the License. |
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
12 |
# |
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
18 |
# |
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
19 |
# CDDL HEADER END |
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
20 |
# |
3592
3149dfab6bc6
20311510 autogen should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
2225
diff
changeset
|
21 |
# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. |
143
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
22 |
# |
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3592
diff
changeset
|
23 |
|
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3592
diff
changeset
|
24 |
# built in SFW with gcc and builds cleanly now only with gcc |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3592
diff
changeset
|
25 |
COMPILER = gcc |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3592
diff
changeset
|
26 |
|
143
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
27 |
include ../../make-rules/shared-macros.mk |
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
28 |
|
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
29 |
COMPONENT_NAME= autogen |
1323
a1d7c0356871
PSARC 2012/367 GNU autogen 5.16.2
Rich Burridge <rich.burridge@oracle.com>
parents:
1138
diff
changeset
|
30 |
COMPONENT_VERSION= 5.16.2 |
609
775168282b2f
7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents:
181
diff
changeset
|
31 |
COMPONENT_PROJECT_URL= http://www.gnu.org/software/autogen/ |
143
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
32 |
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
33 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
800
2ad056ed89ec
7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
609
diff
changeset
|
34 |
COMPONENT_ARCHIVE_HASH= \ |
1323
a1d7c0356871
PSARC 2012/367 GNU autogen 5.16.2
Rich Burridge <rich.burridge@oracle.com>
parents:
1138
diff
changeset
|
35 |
sha256:aa51f5adbf49c2cb48a7d6de3dbab15b89e0a04e7152195fe6fb3380e05c4991 |
143
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
36 |
COMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/autogen/rel$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE) |
1058
34d7aaa03423
15886624 Auto-generation of Userland gate list - Phase 3
Rich Burridge <rich.burridge@oracle.com>
parents:
800
diff
changeset
|
37 |
COMPONENT_BUGDB= utility/autogen |
143
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
38 |
|
1948
2d1537e7942d
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents:
1645
diff
changeset
|
39 |
TPNO= 11805 |
2d1537e7942d
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents:
1645
diff
changeset
|
40 |
|
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3592
diff
changeset
|
41 |
include $(WS_MAKE_RULES)/prep.mk |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3592
diff
changeset
|
42 |
include $(WS_MAKE_RULES)/configure.mk |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3592
diff
changeset
|
43 |
include $(WS_MAKE_RULES)/ips.mk |
143
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
44 |
|
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
45 |
# build target is incorrect without this |
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
46 |
COMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D)) |
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
47 |
|
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
48 |
CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
49 |
|
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
50 |
# strip the environment or install target fails |
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
51 |
ENV += -i |
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
52 |
|
1325
b76c7672b0eb
16880260 Enable autogen autoopts self-tests
Rich Burridge <rich.burridge@oracle.com>
parents:
1323
diff
changeset
|
53 |
# Replace all occurrences of "echo" with "/usr/gnu/bin/echo" in the two |
b76c7672b0eb
16880260 Enable autogen autoopts self-tests
Rich Burridge <rich.burridge@oracle.com>
parents:
1323
diff
changeset
|
54 |
# scripts used by autogen that munge the man and mdoc output. This prevents |
b76c7672b0eb
16880260 Enable autogen autoopts self-tests
Rich Burridge <rich.burridge@oracle.com>
parents:
1323
diff
changeset
|
55 |
# bogus conversions (like "\f" -> Control-L) happening. |
b76c7672b0eb
16880260 Enable autogen autoopts self-tests
Rich Burridge <rich.burridge@oracle.com>
parents:
1323
diff
changeset
|
56 |
# Adjust "tr" to "/usr/gnu/bin/tr" in the autoopts vendor.test. |
b76c7672b0eb
16880260 Enable autogen autoopts self-tests
Rich Burridge <rich.burridge@oracle.com>
parents:
1323
diff
changeset
|
57 |
# These changes now allow the autoopts tests to successfully complete. |
b76c7672b0eb
16880260 Enable autogen autoopts self-tests
Rich Burridge <rich.burridge@oracle.com>
parents:
1323
diff
changeset
|
58 |
COMPONENT_POST_UNPACK_ACTION = \ |
b76c7672b0eb
16880260 Enable autogen autoopts self-tests
Rich Burridge <rich.burridge@oracle.com>
parents:
1323
diff
changeset
|
59 |
$(GSED) -i -e 's|echo|/usr/gnu/bin/echo|' \ |
b76c7672b0eb
16880260 Enable autogen autoopts self-tests
Rich Burridge <rich.burridge@oracle.com>
parents:
1323
diff
changeset
|
60 |
$(SOURCE_DIR)/autoopts/tpl/mdoc2man.sh ; \ |
b76c7672b0eb
16880260 Enable autogen autoopts self-tests
Rich Burridge <rich.burridge@oracle.com>
parents:
1323
diff
changeset
|
61 |
$(GSED) -i -e 's|echo|/usr/gnu/bin/echo|' \ |
b76c7672b0eb
16880260 Enable autogen autoopts self-tests
Rich Burridge <rich.burridge@oracle.com>
parents:
1323
diff
changeset
|
62 |
$(SOURCE_DIR)/autoopts/tpl/texi2mdoc.sh ; \ |
b76c7672b0eb
16880260 Enable autogen autoopts self-tests
Rich Burridge <rich.burridge@oracle.com>
parents:
1323
diff
changeset
|
63 |
$(GSED) -i -e 's| tr | /usr/gnu/bin/tr |' \ |
b76c7672b0eb
16880260 Enable autogen autoopts self-tests
Rich Burridge <rich.burridge@oracle.com>
parents:
1323
diff
changeset
|
64 |
$(SOURCE_DIR)/autoopts/test/vendor.test |
b76c7672b0eb
16880260 Enable autogen autoopts self-tests
Rich Burridge <rich.burridge@oracle.com>
parents:
1323
diff
changeset
|
65 |
|
3592
3149dfab6bc6
20311510 autogen should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
2225
diff
changeset
|
66 |
# Master test results are the same for both 32-bit and 64-bit, so override |
3149dfab6bc6
20311510 autogen should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
2225
diff
changeset
|
67 |
# here, rather than create multiple identical master files. |
3149dfab6bc6
20311510 autogen should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
2225
diff
changeset
|
68 |
COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master |
3149dfab6bc6
20311510 autogen should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
2225
diff
changeset
|
69 |
|
4775
3eeb991f0795
21634797 autogen should hookup its system-test target.
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
70 |
COMPONENT_TEST_TRANSFORMS += \ |
3eeb991f0795
21634797 autogen should hookup its system-test target.
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
71 |
'-n ' \ |
3eeb991f0795
21634797 autogen should hookup its system-test target.
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
72 |
'-e "/SKIP/p" ' \ |
3eeb991f0795
21634797 autogen should hookup its system-test target.
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
73 |
'-e "/PASS/p" ' \ |
3eeb991f0795
21634797 autogen should hookup its system-test target.
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
74 |
'-e "/FAIL/p" ' \ |
3eeb991f0795
21634797 autogen should hookup its system-test target.
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
75 |
'-e "/passed/p" ' |
3eeb991f0795
21634797 autogen should hookup its system-test target.
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
76 |
|
3eeb991f0795
21634797 autogen should hookup its system-test target.
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
77 |
COMPONENT_SYSTEM_TEST_ENV += CLexe=/usr/bin/columns |
3eeb991f0795
21634797 autogen should hookup its system-test target.
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
78 |
COMPONENT_SYSTEM_TEST_ENV += GDexe=/usr/bin/getdefs |
3eeb991f0795
21634797 autogen should hookup its system-test target.
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
79 |
COMPONENT_SYSTEM_TEST_ENV += AGexe=/usr/bin/autogen |
3eeb991f0795
21634797 autogen should hookup its system-test target.
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
80 |
|
1138
6e1f85fa0151
15801420 SUNBT7180909 tag the Userland consolidation binaries for ASLR
April Chin <april.chin@oracle.com>
parents:
1058
diff
changeset
|
81 |
ASLR_MODE = $(ASLR_ENABLE) |
6e1f85fa0151
15801420 SUNBT7180909 tag the Userland consolidation binaries for ASLR
April Chin <april.chin@oracle.com>
parents:
1058
diff
changeset
|
82 |
|
2225
f064d3d3190d
20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents:
1948
diff
changeset
|
83 |
configure: $(CONFIGURE_32_and_64) |
f064d3d3190d
20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents:
1948
diff
changeset
|
84 |
|
1323
a1d7c0356871
PSARC 2012/367 GNU autogen 5.16.2
Rich Burridge <rich.burridge@oracle.com>
parents:
1138
diff
changeset
|
85 |
build: $(BUILD_32_and_64) |
a1d7c0356871
PSARC 2012/367 GNU autogen 5.16.2
Rich Burridge <rich.burridge@oracle.com>
parents:
1138
diff
changeset
|
86 |
|
a1d7c0356871
PSARC 2012/367 GNU autogen 5.16.2
Rich Burridge <rich.burridge@oracle.com>
parents:
1138
diff
changeset
|
87 |
install: $(INSTALL_32_and_64) |
143
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
88 |
|
1325
b76c7672b0eb
16880260 Enable autogen autoopts self-tests
Rich Burridge <rich.burridge@oracle.com>
parents:
1323
diff
changeset
|
89 |
test: $(TEST_32_and_64) |
143
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
90 |
|
4775
3eeb991f0795
21634797 autogen should hookup its system-test target.
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
91 |
# Tests need to be built. |
3eeb991f0795
21634797 autogen should hookup its system-test target.
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
92 |
system-test: build $(SYSTEM_TEST_32_and_64) |
4339
6501cf9c29f9
21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents:
3817
diff
changeset
|
93 |
|
143
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
94 |
|
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3592
diff
changeset
|
95 |
REQUIRED_PACKAGES += library/gmp |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3592
diff
changeset
|
96 |
REQUIRED_PACKAGES += library/guile |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3592
diff
changeset
|
97 |
REQUIRED_PACKAGES += library/libxml2 |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3592
diff
changeset
|
98 |
REQUIRED_PACKAGES += shell/bash |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3592
diff
changeset
|
99 |
REQUIRED_PACKAGES += system/library |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3592
diff
changeset
|
100 |
REQUIRED_PACKAGES += system/library/gcc-3-runtime |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3592
diff
changeset
|
101 |
REQUIRED_PACKAGES += system/library/gcc-45-runtime |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3592
diff
changeset
|
102 |
REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3592
diff
changeset
|
103 |
REQUIRED_PACKAGES += system/library/math |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3592
diff
changeset
|
104 |
REQUIRED_PACKAGES += system/linker |