2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2013 Andrzej Szeszo. All rights reserved.
14 # Copyright 2016 Aurelien Larcher. All rights reserved.
17 include ..
/..
/..
/make-rules
/shared-macros.mk
20 COMPONENT_VERSION
= 6.3.0
21 COMPONENT_MAJOR_VERSION
= $(shell echo
$(COMPONENT_VERSION
) |
$(GSED
) -e
's/\([0-9]\+\)\.[0-9]\+.*/\1/')
22 COMPONENT_FMRI
= developer
/gcc-6
23 COMPONENT_CLASSIFICATION
= Development
/C
24 COMPONENT_SUMMARY
= GNU Compiler Collection
31 COMPONENT_SUMMARY
= GNU Compiler Collection
32 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
33 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.bz2
34 COMPONENT_ARCHIVE_HASH
= \
35 sha256
:f06ae7f3f790fbf0f018f6d40e844451e6bc3b7bc96e128e63b09825c1f8b29f
36 COMPONENT_ARCHIVE_URL
= \
37 http
://ftp.gnu.org
/gnu
/gcc
/gcc-
$(COMPONENT_VERSION
)/$(COMPONENT_ARCHIVE
)
38 COMPONENT_PROJECT_URL
= http
://gcc.gnu.org
/
40 PATCHDIR_PATCHES
= $(shell find
$(PATCH_DIR
) $(PARFAIT_PATCH_DIR
) -type f
-name
'$(PATCH_PATTERN)' \
41 2>/dev
/null |
sort) $(EXTRA_PATCHES
)
43 COMPONENT_SRC_1
= $(MPFR_NAME
)-$(MPFR_VERSION
)
44 COMPONENT_ARCHIVE_1
= $(COMPONENT_SRC_1
).
tar.bz2
45 COMPONENT_ARCHIVE_URL_1
= http
://www.mpfr.org
/$(COMPONENT_SRC_1
)/$(COMPONENT_ARCHIVE_1
)
46 COMPONENT_ARCHIVE_HASH_1
= \
47 sha256
:ca498c1c7a74dd37a576f353312d1e68d490978de4395fa28f1cbd46a364e658
48 CLEAN_PATHS
+= $(COMPONENT_SRC_1
)
49 COMPONENT_POST_UNPACK_ACTION_1
+= ( $(RM
) -r
$(COMPONENT_SRC
)/$(MPFR_NAME
) && $(CP
) -r
$(COMPONENT_SRC_1
) $(COMPONENT_SRC
)/$(MPFR_NAME
) )
51 COMPONENT_SRC_2
= $(MPC_NAME
)-$(MPC_VERSION
)
52 COMPONENT_ARCHIVE_2
= $(COMPONENT_SRC_2
).
tar.gz
53 COMPONENT_ARCHIVE_URL_2
= http
://www.multiprecision.org
/mpc
/download
/$(COMPONENT_ARCHIVE_2
)
54 COMPONENT_ARCHIVE_HASH_2
= \
55 sha256
:617decc6ea09889fb08ede330917a00b16809b8db88c29c31bfbb49cbf88ecc3
56 CLEAN_PATHS
+= $(COMPONENT_SRC_2
)
57 COMPONENT_POST_UNPACK_ACTION_2
+= ( $(RM
) -r
$(COMPONENT_SRC
)/$(MPC_NAME
) && $(CP
) -r
$(COMPONENT_SRC_2
) $(COMPONENT_SRC
)/$(MPC_NAME
) )
59 COMPONENT_SRC_3
= $(GMP_NAME
)-$(GMP_VERSION
)
60 COMPONENT_ARCHIVE_3
= $(COMPONENT_SRC_3
).
tar.bz2
61 COMPONENT_ARCHIVE_URL_3
= http
://ftp.gnu.org
/gnu
/gmp
/$(COMPONENT_ARCHIVE_3
)
62 COMPONENT_ARCHIVE_HASH_3
= \
63 sha256
:5275bb04f4863a13516b2f39392ac5e272f5e1bb8057b18aec1c9b79d73d8fb2
64 CLEAN_PATHS
+= $(COMPONENT_SRC_3
)
65 COMPONENT_POST_UNPACK_ACTION_3
+= ( $(RM
) -r
$(COMPONENT_SRC
)/$(GMP_NAME
) && $(CP
) -r
$(COMPONENT_SRC_3
) $(COMPONENT_SRC
)/$(GMP_NAME
) )
67 include $(WS_MAKE_RULES
)/prep.mk
68 include $(WS_MAKE_RULES
)/configure.mk
69 include $(WS_MAKE_RULES
)/ips.mk
74 CONFIGURE_PREFIX
= /usr
/gcc
/$(COMPONENT_MAJOR_VERSION
)
75 PATH
=/usr
/gnu
/bin
:/usr
/bin
:/usr
/perl5
/bin
77 PARCH
= $(MACH
:i386
=i386-pc
)
78 GNU_ARCH
= $(PARCH
:sparc
=sparc-sun
)-solaris
$(SOLARIS_VERSION
)
79 PKG_MACROS
+= GNU_ARCH
="$(GNU_ARCH)"
81 # Build recipe borrowed from OmniOS
82 COMMON_ENV
= LD_OPTIONS
="-zignore -zcombreloc -i"
83 COMMON_ENV
+= LD_FOR_TARGET
=/usr
/bin
/ld
84 COMMON_ENV
+= LD_FOR_HOST
=/usr
/bin
/ld
85 COMMON_ENV
+= LD
=/usr
/bin
/ld
87 CONFIGURE_ENV
+= $(COMMON_ENV
)
88 COMPONENT_BUILD_ENV
+= $(COMMON_ENV
)
89 COMPONENT_INSTALL_ENV
+= $(COMMON_ENV
)
91 CONFIGURE_OPTIONS
+= --sbindir
=$(CONFIGURE_BINDIR.
$(BITS
))
92 CONFIGURE_OPTIONS
+= --libdir=$(CONFIGURE_LIBDIR.
$(BITS
))
93 CONFIGURE_OPTIONS
+= --libexecdir
=$(CONFIGURE_LIBDIR.
$(BITS
))
94 CONFIGURE_OPTIONS
+= --host
$(GNU_ARCH
)
95 CONFIGURE_OPTIONS
+= --build
$(GNU_ARCH
)
96 CONFIGURE_OPTIONS
+= --target
$(GNU_ARCH
)
97 #CONFIGURE_OPTIONS+= --with-boot-ldflags=-R$(CONFIGURE_PREFIX)/lib
98 CONFIGURE_OPTIONS
+= --enable-plugins
99 CONFIGURE_OPTIONS
+= --enable-objc-gc
100 CONFIGURE_OPTIONS
+= --enable-initfini-array
101 CONFIGURE_OPTIONS
+= --enable-languages
=c
,c
++,fortran
,lto
,objc
102 CONFIGURE_OPTIONS
+= --without-gnu-ld
103 CONFIGURE_OPTIONS
+= --with-ld
=/usr
/bin
/ld
104 CONFIGURE_OPTIONS
+= --with-build-time-tools
=/usr
/gnu
/$(GNU_ARCH
)/bin
105 CONFIGURE_OPTIONS
+= --disable-libitm
107 # On SPARC systems, use Sun Assembler
108 CONFIGURE_OPTIONS.sparc
+= --without-gnu-as
--with-as
=/usr
/bin
/as
109 CONFIGURE_OPTIONS.i386
+= --with-gnu-as
--with-as
=/usr
/bin
/gas
110 CONFIGURE_OPTIONS
+= $(CONFIGURE_OPTIONS.
$(MACH
))
112 CONFIGURE_OPTIONS
+= LDFLAGS
="-R$(CONFIGURE_PREFIX)/lib"
114 COMPONENT_POST_INSTALL_ACTION
= \
115 $(RM
) -r
$(PROTO_DIR
)$(CONFIGURE_PREFIX
)/lib
/gcc
/$(GNU_ARCH
)/$(COMPONENT_VERSION
)/include-fixed
119 install: $(INSTALL_32
)
123 REQUIRED_PACKAGES
+= SUNWcs
124 REQUIRED_PACKAGES
+= system
/library
125 REQUIRED_PACKAGES
+= system
/library
/math
126 # Required by test suite
127 REQUIRED_PACKAGES
+= developer
/test/dejagnu
128 REQUIRED_PACKAGES
+= developer
/build
/autogen