author | John Beck <John.Beck@Oracle.COM> |
Fri, 02 Oct 2015 09:02:41 -0700 | |
changeset 4964 | 30f7741bb742 |
parent 4834 | 22970ab7cd3a |
child 5682 | 94c0ca64c022 |
permissions | -rw-r--r-- |
173
69315e61a221
7034838 migrate guile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
1 |
# |
69315e61a221
7034838 migrate guile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
2 |
# CDDL HEADER START |
69315e61a221
7034838 migrate guile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
3 |
# |
69315e61a221
7034838 migrate guile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
4 |
# The contents of this file are subject to the terms of the |
69315e61a221
7034838 migrate guile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
5 |
# Common Development and Distribution License (the "License"). |
69315e61a221
7034838 migrate guile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
6 |
# You may not use this file except in compliance with the License. |
69315e61a221
7034838 migrate guile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
7 |
# |
69315e61a221
7034838 migrate guile 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 |
69315e61a221
7034838 migrate guile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
9 |
# or http://www.opensolaris.org/os/licensing. |
69315e61a221
7034838 migrate guile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
10 |
# See the License for the specific language governing permissions |
69315e61a221
7034838 migrate guile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
11 |
# and limitations under the License. |
69315e61a221
7034838 migrate guile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
12 |
# |
69315e61a221
7034838 migrate guile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
69315e61a221
7034838 migrate guile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
69315e61a221
7034838 migrate guile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
69315e61a221
7034838 migrate guile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
69315e61a221
7034838 migrate guile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
69315e61a221
7034838 migrate guile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
18 |
# |
69315e61a221
7034838 migrate guile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
19 |
# CDDL HEADER END |
69315e61a221
7034838 migrate guile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
20 |
# |
3725
57a3df1e928a
20460414 GUILE 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. |
173
69315e61a221
7034838 migrate guile 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:
3772
diff
changeset
|
23 |
|
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3772
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:
3772
diff
changeset
|
25 |
COMPILER = gcc |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3772
diff
changeset
|
26 |
|
173
69315e61a221
7034838 migrate guile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
27 |
include ../../make-rules/shared-macros.mk |
69315e61a221
7034838 migrate guile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
28 |
|
69315e61a221
7034838 migrate guile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
29 |
COMPONENT_NAME= guile |
687
05f0db35db4e
7145181 Update guile to version 1.8.6
Rich Burridge <rich.burridge@oracle.com>
parents:
609
diff
changeset
|
30 |
COMPONENT_VERSION= 1.8.6 |
609
775168282b2f
7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents:
372
diff
changeset
|
31 |
COMPONENT_PROJECT_URL= http://www.gnu.org/software/guile/ |
173
69315e61a221
7034838 migrate guile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
32 |
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
69315e61a221
7034838 migrate guile 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:
687
diff
changeset
|
34 |
COMPONENT_ARCHIVE_HASH= \ |
2ad056ed89ec
7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
687
diff
changeset
|
35 |
sha256:69a2f9491480ff756d1cc4c8ea2bdc13d40ea8ddc8f93f26957bade8219a1d86 |
173
69315e61a221
7034838 migrate guile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
36 |
COMPONENT_ARCHIVE_URL= http://ftp.gnu.org/pub/gnu/guile/$(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/guile |
173
69315e61a221
7034838 migrate guile 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= 8939 |
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:
3772
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:
3772
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:
3772
diff
changeset
|
43 |
include $(WS_MAKE_RULES)/ips.mk |
173
69315e61a221
7034838 migrate guile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
44 |
|
372
572543a47583
7050577 userland fails to build on 166
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
173
diff
changeset
|
45 |
CONFIGURE_OPTIONS += CPPFLAGS="-I/usr/include/gmp -D__USE_LEGACY_PROTOTYPES__" |
173
69315e61a221
7034838 migrate guile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
46 |
CONFIGURE_OPTIONS += --disable-static |
69315e61a221
7034838 migrate guile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
47 |
CONFIGURE_OPTIONS += --disable-error-on-warning |
69315e61a221
7034838 migrate guile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
48 |
CONFIGURE_OPTIONS += ac_cv_type_complex_double=no |
69315e61a221
7034838 migrate guile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
49 |
CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
69315e61a221
7034838 migrate guile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
50 |
|
4834
22970ab7cd3a
21764367 guile pkg-config files include gcc-specific flag
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
51 |
# Remove the GNU specific "-pthreads" Cflags option from the guile config |
22970ab7cd3a
21764367 guile pkg-config files include gcc-specific flag
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
52 |
# files. In case we need to back-port this to earlier versions of Solaris, |
22970ab7cd3a
21764367 guile pkg-config files include gcc-specific flag
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
53 |
# -D_POSIX_PTHREAD_SEMANTICS is added in its place, which makes the pthreads |
22970ab7cd3a
21764367 guile pkg-config files include gcc-specific flag
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
54 |
# interfaces behave as specified in the POSIX standard (even though it does |
22970ab7cd3a
21764367 guile pkg-config files include gcc-specific flag
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
55 |
# nothing for Solaris 12). |
22970ab7cd3a
21764367 guile pkg-config files include gcc-specific flag
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
56 |
|
22970ab7cd3a
21764367 guile pkg-config files include gcc-specific flag
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
57 |
PROTOPKGCONFIGDIR.32 = $(PROTOUSRLIBDIR)/pkgconfig |
22970ab7cd3a
21764367 guile pkg-config files include gcc-specific flag
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
58 |
PROTOPKGCONFIGDIR.64 = $(PROTOUSRLIBDIR64)/pkgconfig |
22970ab7cd3a
21764367 guile pkg-config files include gcc-specific flag
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
59 |
|
22970ab7cd3a
21764367 guile pkg-config files include gcc-specific flag
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
60 |
COMPONENT_POST_INSTALL_ACTION += \ |
22970ab7cd3a
21764367 guile pkg-config files include gcc-specific flag
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
61 |
$(GSED) -i -e 's/-pthreads/-D_POSIX_PTHREAD_SEMANTICS/' \ |
22970ab7cd3a
21764367 guile pkg-config files include gcc-specific flag
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
62 |
$(PROTOPKGCONFIGDIR.$(BITS))/guile-1.8.pc |
22970ab7cd3a
21764367 guile pkg-config files include gcc-specific flag
Rich Burridge <rich.burridge@oracle.com>
parents:
4339
diff
changeset
|
63 |
|
3725
57a3df1e928a
20460414 GUILE 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 32-bit and 64-bit, so override |
57a3df1e928a
20460414 GUILE 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. |
57a3df1e928a
20460414 GUILE 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 |
57a3df1e928a
20460414 GUILE should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
2225
diff
changeset
|
67 |
|
57a3df1e928a
20460414 GUILE should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
2225
diff
changeset
|
68 |
# The additional guile specific set of transforms to be applied to the |
57a3df1e928a
20460414 GUILE should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
2225
diff
changeset
|
69 |
# test results to try to normalize them. |
57a3df1e928a
20460414 GUILE should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
2225
diff
changeset
|
70 |
COMPONENT_TEST_TRANSFORMS += \ |
3854
9d8d138d52ca
20587726 Various master test files can be improved.
Rich Burridge <rich.burridge@oracle.com>
parents:
3817
diff
changeset
|
71 |
'-e "s|^.*$(GCC_ROOT).*$$|XXX_GCC_ROOT_XXX|g" ' \ |
9d8d138d52ca
20587726 Various master test files can be improved.
Rich Burridge <rich.burridge@oracle.com>
parents:
3817
diff
changeset
|
72 |
'-e "/^XXX_GCC_ROOT_XXX$$/d" ' \ |
3772
fd37c7ac6708
20524490 guile should deliver 64-bit /usr/bin/guile
Rich Burridge <rich.burridge@oracle.com>
parents:
3725
diff
changeset
|
73 |
'-e "/^WARNING:/d" ' |
3725
57a3df1e928a
20460414 GUILE should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
2225
diff
changeset
|
74 |
|
1485
808df10bcc09
17483555 groff, guile and lua should be ASLR enabled
Rich Burridge <rich.burridge@oracle.com>
parents:
1058
diff
changeset
|
75 |
ASLR_MODE = $(ASLR_ENABLE) |
808df10bcc09
17483555 groff, guile and lua should be ASLR enabled
Rich Burridge <rich.burridge@oracle.com>
parents:
1058
diff
changeset
|
76 |
|
173
69315e61a221
7034838 migrate guile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
77 |
# common targets |
2225
f064d3d3190d
20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents:
1948
diff
changeset
|
78 |
configure: $(CONFIGURE_32_and_64) |
f064d3d3190d
20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents:
1948
diff
changeset
|
79 |
|
173
69315e61a221
7034838 migrate guile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
80 |
build: $(BUILD_32_and_64) |
69315e61a221
7034838 migrate guile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
81 |
|
69315e61a221
7034838 migrate guile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
82 |
install: $(INSTALL_32_and_64) |
69315e61a221
7034838 migrate guile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
83 |
|
69315e61a221
7034838 migrate guile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
84 |
test: $(TEST_32_and_64) |
69315e61a221
7034838 migrate guile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff
changeset
|
85 |
|
4339
6501cf9c29f9
21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents:
3854
diff
changeset
|
86 |
system-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED) |
6501cf9c29f9
21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents:
3854
diff
changeset
|
87 |
|
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3772
diff
changeset
|
88 |
REQUIRED_PACKAGES += library/gmp |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3772
diff
changeset
|
89 |
REQUIRED_PACKAGES += library/libtool/libltdl |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3772
diff
changeset
|
90 |
REQUIRED_PACKAGES += library/ncurses |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3772
diff
changeset
|
91 |
REQUIRED_PACKAGES += library/readline |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3772
diff
changeset
|
92 |
REQUIRED_PACKAGES += shell/ksh93 |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3772
diff
changeset
|
93 |
REQUIRED_PACKAGES += system/library |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3772
diff
changeset
|
94 |
REQUIRED_PACKAGES += system/library/gcc-3-runtime |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3772
diff
changeset
|
95 |
REQUIRED_PACKAGES += system/library/gcc-45-runtime |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3772
diff
changeset
|
96 |
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:
3772
diff
changeset
|
97 |
REQUIRED_PACKAGES += system/library/math |