author | Rich Burridge <rich.burridge@oracle.com> |
Tue, 17 Dec 2013 15:59:46 -0800 | |
changeset 1605 | 7fc7910b6d94 |
parent 1496 | f774cfa29f53 |
child 1645 | ff50a80c552a |
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 |
# |
1138
6e1f85fa0151
15801420 SUNBT7180909 tag the Userland consolidation binaries for ASLR
April Chin <april.chin@oracle.com>
parents:
1058
diff
changeset
|
21 |
# Copyright (c) 2011, 2013, 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 |
|
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
35 |
include ../../make-rules/prep.mk |
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
36 |
include ../../make-rules/configure.mk |
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
37 |
include ../../make-rules/ips.mk |
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
38 |
|
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
39 |
# build target is incorrect without this |
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
40 |
COMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D)) |
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
41 |
|
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
42 |
# 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
|
43 |
COMPILER = gcc |
7fc7910b6d94
17389830 guile fails to build with gcc4.7
Rich Burridge <rich.burridge@oracle.com>
parents:
1496
diff
changeset
|
44 |
# Parfait doesn't work with the GNU 4.7 compilers yet. |
7fc7910b6d94
17389830 guile fails to build with gcc4.7
Rich Burridge <rich.burridge@oracle.com>
parents:
1496
diff
changeset
|
45 |
ifeq ($(strip $(PARFAIT_BUILD)),yes) |
7fc7910b6d94
17389830 guile fails to build with gcc4.7
Rich Burridge <rich.burridge@oracle.com>
parents:
1496
diff
changeset
|
46 |
COMPILER = gcc3 |
7fc7910b6d94
17389830 guile fails to build with gcc4.7
Rich Burridge <rich.burridge@oracle.com>
parents:
1496
diff
changeset
|
47 |
endif |
143
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 |
|
1138
6e1f85fa0151
15801420 SUNBT7180909 tag the Userland consolidation binaries for ASLR
April Chin <april.chin@oracle.com>
parents:
1058
diff
changeset
|
66 |
# Enable ASLR for this component |
6e1f85fa0151
15801420 SUNBT7180909 tag the Userland consolidation binaries for ASLR
April Chin <april.chin@oracle.com>
parents:
1058
diff
changeset
|
67 |
ASLR_MODE = $(ASLR_ENABLE) |
6e1f85fa0151
15801420 SUNBT7180909 tag the Userland consolidation binaries for ASLR
April Chin <april.chin@oracle.com>
parents:
1058
diff
changeset
|
68 |
|
143
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
69 |
# common targets |
1323
a1d7c0356871
PSARC 2012/367 GNU autogen 5.16.2
Rich Burridge <rich.burridge@oracle.com>
parents:
1138
diff
changeset
|
70 |
build: $(BUILD_32_and_64) |
a1d7c0356871
PSARC 2012/367 GNU autogen 5.16.2
Rich Burridge <rich.burridge@oracle.com>
parents:
1138
diff
changeset
|
71 |
|
a1d7c0356871
PSARC 2012/367 GNU autogen 5.16.2
Rich Burridge <rich.burridge@oracle.com>
parents:
1138
diff
changeset
|
72 |
install: $(INSTALL_32_and_64) |
143
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
73 |
|
1325
b76c7672b0eb
16880260 Enable autogen autoopts self-tests
Rich Burridge <rich.burridge@oracle.com>
parents:
1323
diff
changeset
|
74 |
test: $(TEST_32_and_64) |
143
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
75 |
|
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
76 |
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
77 |
|
b125d3ff99f0
7027495 migrate autogen to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
78 |
include ../../make-rules/depend.mk |