author | Rich Burridge <rich.burridge@oracle.com> |
Wed, 07 Jan 2015 08:11:51 -0800 | |
changeset 3592 | 3149dfab6bc6 |
parent 2225 | f064d3d3190d |
child 3817 | 30b42c38bbc4 |
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 |
# |
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
23 |
include ../../make-rules/shared-macros.mk |
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
24 |
|
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
25 |
COMPONENT_NAME= autogen |
1323
a1d7c0356871
PSARC 2012/367 GNU autogen 5.16.2
Rich Burridge <rich.burridge@oracle.com>
parents:
1138
diff
changeset
|
26 |
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
|
27 |
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
|
28 |
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
29 |
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
|
30 |
COMPONENT_ARCHIVE_HASH= \ |
1323
a1d7c0356871
PSARC 2012/367 GNU autogen 5.16.2
Rich Burridge <rich.burridge@oracle.com>
parents:
1138
diff
changeset
|
31 |
sha256:aa51f5adbf49c2cb48a7d6de3dbab15b89e0a04e7152195fe6fb3380e05c4991 |
143
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
32 |
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
|
33 |
COMPONENT_BUGDB= utility/autogen |
143
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
34 |
|
1948
2d1537e7942d
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents:
1645
diff
changeset
|
35 |
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
|
36 |
|
143
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
37 |
include ../../make-rules/prep.mk |
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
38 |
include ../../make-rules/configure.mk |
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
39 |
include ../../make-rules/ips.mk |
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
40 |
|
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
41 |
# build target is incorrect without this |
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
42 |
COMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D)) |
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
43 |
|
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
44 |
# built in SFW with gcc and builds cleanly now only with gcc |
1605
7fc7910b6d94
17389830 guile fails to build with gcc4.7
Rich Burridge <rich.burridge@oracle.com>
parents:
1496
diff
changeset
|
45 |
COMPILER = gcc |
143
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
46 |
CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
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 |
# strip the environment or install target fails |
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
49 |
ENV += -i |
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
50 |
|
1325
b76c7672b0eb
16880260 Enable autogen autoopts self-tests
Rich Burridge <rich.burridge@oracle.com>
parents:
1323
diff
changeset
|
51 |
# 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
|
52 |
# 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
|
53 |
# bogus conversions (like "\f" -> Control-L) happening. |
b76c7672b0eb
16880260 Enable autogen autoopts self-tests
Rich Burridge <rich.burridge@oracle.com>
parents:
1323
diff
changeset
|
54 |
# 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
|
55 |
# 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
|
56 |
COMPONENT_POST_UNPACK_ACTION = \ |
b76c7672b0eb
16880260 Enable autogen autoopts self-tests
Rich Burridge <rich.burridge@oracle.com>
parents:
1323
diff
changeset
|
57 |
$(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
|
58 |
$(SOURCE_DIR)/autoopts/tpl/mdoc2man.sh ; \ |
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/texi2mdoc.sh ; \ |
b76c7672b0eb
16880260 Enable autogen autoopts self-tests
Rich Burridge <rich.burridge@oracle.com>
parents:
1323
diff
changeset
|
61 |
$(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
|
62 |
$(SOURCE_DIR)/autoopts/test/vendor.test |
b76c7672b0eb
16880260 Enable autogen autoopts self-tests
Rich Burridge <rich.burridge@oracle.com>
parents:
1323
diff
changeset
|
63 |
|
3592
3149dfab6bc6
20311510 autogen should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
2225
diff
changeset
|
64 |
# 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
|
65 |
# 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
|
66 |
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
|
67 |
|
1138
6e1f85fa0151
15801420 SUNBT7180909 tag the Userland consolidation binaries for ASLR
April Chin <april.chin@oracle.com>
parents:
1058
diff
changeset
|
68 |
ASLR_MODE = $(ASLR_ENABLE) |
6e1f85fa0151
15801420 SUNBT7180909 tag the Userland consolidation binaries for ASLR
April Chin <april.chin@oracle.com>
parents:
1058
diff
changeset
|
69 |
|
143
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
70 |
# common targets |
2225
f064d3d3190d
20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents:
1948
diff
changeset
|
71 |
configure: $(CONFIGURE_32_and_64) |
f064d3d3190d
20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents:
1948
diff
changeset
|
72 |
|
1323
a1d7c0356871
PSARC 2012/367 GNU autogen 5.16.2
Rich Burridge <rich.burridge@oracle.com>
parents:
1138
diff
changeset
|
73 |
build: $(BUILD_32_and_64) |
a1d7c0356871
PSARC 2012/367 GNU autogen 5.16.2
Rich Burridge <rich.burridge@oracle.com>
parents:
1138
diff
changeset
|
74 |
|
a1d7c0356871
PSARC 2012/367 GNU autogen 5.16.2
Rich Burridge <rich.burridge@oracle.com>
parents:
1138
diff
changeset
|
75 |
install: $(INSTALL_32_and_64) |
143
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
76 |
|
1325
b76c7672b0eb
16880260 Enable autogen autoopts self-tests
Rich Burridge <rich.burridge@oracle.com>
parents:
1323
diff
changeset
|
77 |
test: $(TEST_32_and_64) |
143
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
78 |
|
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
79 |
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
80 |
|
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
81 |
include ../../make-rules/depend.mk |