1 |
commit: d2753bd8f10052ac6576d44a0e0b867a83d2f837 |
2 |
Author: Benda Xu <heroxbd <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jan 20 06:31:34 2021 +0000 |
4 |
Commit: Benda XU <heroxbd <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 20 16:11:23 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=d2753bd8 |
7 |
|
8 |
dev-util/boost-build: add back 1.72.* for MIOpen. |
9 |
|
10 |
AMD MIOpen depends on boost 1.72.* which has been remove from ::gentoo. |
11 |
|
12 |
Suggested-by: Yiyang Wu <xgreenlandforwyy <AT> gmail.com> |
13 |
Package-Manager: Portage-3.0.12, Repoman-3.0.1 |
14 |
Signed-off-by: Benda Xu <heroxbd <AT> gentoo.org> |
15 |
|
16 |
dev-util/boost-build/boost-build-1.72.0.ebuild | 74 ++++++ |
17 |
...ost-build-1.71.0-add-none-feature-options.patch | 22 ++ |
18 |
...oost-build-1.71.0-no-implicit-march-flags.patch | 266 +++++++++++++++++++++ |
19 |
dev-util/boost-build/metadata.xml | 11 + |
20 |
4 files changed, 373 insertions(+) |
21 |
|
22 |
diff --git a/dev-util/boost-build/boost-build-1.72.0.ebuild b/dev-util/boost-build/boost-build-1.72.0.ebuild |
23 |
new file mode 100644 |
24 |
index 000000000..8b9b36742 |
25 |
--- /dev/null |
26 |
+++ b/dev-util/boost-build/boost-build-1.72.0.ebuild |
27 |
@@ -0,0 +1,74 @@ |
28 |
+# Copyright 1999-2021 Gentoo Authors |
29 |
+# Distributed under the terms of the GNU General Public License v2 |
30 |
+ |
31 |
+EAPI=7 |
32 |
+ |
33 |
+inherit flag-o-matic prefix toolchain-funcs |
34 |
+ |
35 |
+MY_PV="$(ver_rs 1- _)" |
36 |
+ |
37 |
+DESCRIPTION="A system for large project software construction, simple to use and powerful" |
38 |
+HOMEPAGE="https://boostorg.github.io/build/" |
39 |
+SRC_URI="https://dl.bintray.com/boostorg/release/${PV}/source/boost_${MY_PV}.tar.bz2" |
40 |
+ |
41 |
+LICENSE="Boost-1.0" |
42 |
+SLOT="0" |
43 |
+KEYWORDS="~amd64" |
44 |
+IUSE="examples" |
45 |
+RESTRICT="test" |
46 |
+ |
47 |
+S="${WORKDIR}/boost_${MY_PV}/tools/build/src" |
48 |
+ |
49 |
+PATCHES=( |
50 |
+ "${FILESDIR}"/${PN}-1.71.0-disable_python_rpath.patch |
51 |
+ "${FILESDIR}"/${PN}-1.71.0-darwin-gentoo-toolchain.patch |
52 |
+ "${FILESDIR}"/${PN}-1.71.0-add-none-feature-options.patch |
53 |
+ "${FILESDIR}"/${PN}-1.71.0-respect-c_ld-flags.patch |
54 |
+ "${FILESDIR}"/${PN}-1.71.0-no-implicit-march-flags.patch |
55 |
+) |
56 |
+ |
57 |
+src_unpack() { |
58 |
+ tar xojf "${DISTDIR}/${A}" boost_${MY_PV}/tools/build || die "unpacking tar failed" |
59 |
+} |
60 |
+ |
61 |
+src_prepare() { |
62 |
+ default |
63 |
+ |
64 |
+ pushd .. >/dev/null || die |
65 |
+ eapply "${FILESDIR}"/${PN}-1.71.0-fix-test.patch |
66 |
+ popd >/dev/null || die |
67 |
+} |
68 |
+ |
69 |
+src_configure() { |
70 |
+ hprefixify engine/Jambase |
71 |
+ tc-export CXX |
72 |
+} |
73 |
+ |
74 |
+src_compile() { |
75 |
+ cd engine || die |
76 |
+ ./build.sh cxx -d+2 --without-python || die "building bjam failed" |
77 |
+} |
78 |
+ |
79 |
+src_test() { |
80 |
+ # Forget tests, bjam is a lost cause |
81 |
+ : |
82 |
+} |
83 |
+ |
84 |
+src_install() { |
85 |
+ dobin engine/{bjam,b2} |
86 |
+ |
87 |
+ insinto /usr/share/boost-build |
88 |
+ doins -r "${FILESDIR}/site-config.jam" \ |
89 |
+ ../boost-build.jam bootstrap.jam build-system.jam ../example/user-config.jam *.py \ |
90 |
+ build kernel options tools util |
91 |
+ |
92 |
+ find "${ED}"/usr/share/boost-build -iname '*.py' -delete || die |
93 |
+ |
94 |
+ dodoc ../notes/{changes,release_procedure,build_dir_option,relative_source_paths}.txt |
95 |
+ |
96 |
+ if use examples; then |
97 |
+ docinto examples |
98 |
+ dodoc -r ../example/. |
99 |
+ docompress -x /usr/share/doc/${PF}/examples |
100 |
+ fi |
101 |
+} |
102 |
|
103 |
diff --git a/dev-util/boost-build/files/boost-build-1.71.0-add-none-feature-options.patch b/dev-util/boost-build/files/boost-build-1.71.0-add-none-feature-options.patch |
104 |
new file mode 100644 |
105 |
index 000000000..ddd1641d1 |
106 |
--- /dev/null |
107 |
+++ b/dev-util/boost-build/files/boost-build-1.71.0-add-none-feature-options.patch |
108 |
@@ -0,0 +1,22 @@ |
109 |
+--- a/tools/features/debug-feature.jam |
110 |
++++ b/tools/features/debug-feature.jam |
111 |
+@@ -8,7 +8,7 @@ |
112 |
+ import feature ; |
113 |
+ |
114 |
+ feature.feature debug-symbols |
115 |
+- : on off |
116 |
++ : on off none |
117 |
+ : propagated ; |
118 |
+ |
119 |
+ feature.feature profiling |
120 |
+--- a/tools/features/optimization-feature.jam |
121 |
++++ b/tools/features/optimization-feature.jam |
122 |
+@@ -8,7 +8,7 @@ |
123 |
+ import feature ; |
124 |
+ |
125 |
+ feature.feature optimization |
126 |
+- : off speed space |
127 |
++ : off none speed space |
128 |
+ : propagated ; |
129 |
+ |
130 |
+ feature.feature inlining |
131 |
|
132 |
diff --git a/dev-util/boost-build/files/boost-build-1.71.0-no-implicit-march-flags.patch b/dev-util/boost-build/files/boost-build-1.71.0-no-implicit-march-flags.patch |
133 |
new file mode 100644 |
134 |
index 000000000..cd184030d |
135 |
--- /dev/null |
136 |
+++ b/dev-util/boost-build/files/boost-build-1.71.0-no-implicit-march-flags.patch |
137 |
@@ -0,0 +1,266 @@ |
138 |
+Prevent bjam from injecting what it thinks are great -march/-mcpu flags |
139 |
+in order to optimize code for you. This breaks on 32-bit builds, because |
140 |
+-march=i686 will not work on an i486 CHOST. |
141 |
+ |
142 |
+See also: |
143 |
+https://bugs.gentoo.org/624616 |
144 |
+ |
145 |
+--- a/tools/gcc.jam |
146 |
++++ b/tools/gcc.jam |
147 |
+@@ -1187,128 +1187,8 @@ |
148 |
+ # x86 and compatible |
149 |
+ # The 'native' option appeared in gcc 4.2 so we cannot safely use it as default. |
150 |
+ # Use i686 instead for 32-bit. |
151 |
+-toolset.flags gcc OPTIONS <architecture>x86/<address-model>32/<instruction-set> : -march=i686 ; |
152 |
+-cpu-flags gcc OPTIONS : x86 : native : -march=native ; |
153 |
+-cpu-flags gcc OPTIONS : x86 : i486 : -march=i486 ; |
154 |
+-cpu-flags gcc OPTIONS : x86 : i586 : -march=i586 ; |
155 |
+-cpu-flags gcc OPTIONS : x86 : i686 : -march=i686 ; |
156 |
+-cpu-flags gcc OPTIONS : x86 : pentium : -march=pentium ; |
157 |
+-cpu-flags gcc OPTIONS : x86 : pentium-mmx : -march=pentium-mmx ; |
158 |
+-cpu-flags gcc OPTIONS : x86 : pentiumpro : -march=pentiumpro ; |
159 |
+-cpu-flags gcc OPTIONS : x86 : pentium2 : -march=pentium2 ; |
160 |
+-cpu-flags gcc OPTIONS : x86 : pentium3 : -march=pentium3 ; |
161 |
+-cpu-flags gcc OPTIONS : x86 : pentium3m : -march=pentium3m ; |
162 |
+-cpu-flags gcc OPTIONS : x86 : pentium-m : -march=pentium-m ; |
163 |
+-cpu-flags gcc OPTIONS : x86 : pentium4 : -march=pentium4 ; |
164 |
+-cpu-flags gcc OPTIONS : x86 : pentium4m : -march=pentium4m ; |
165 |
+-cpu-flags gcc OPTIONS : x86 : prescott : -march=prescott ; |
166 |
+-cpu-flags gcc OPTIONS : x86 : nocona : -march=nocona ; |
167 |
+-cpu-flags gcc OPTIONS : x86 : core2 : -march=core2 ; |
168 |
+-cpu-flags gcc OPTIONS : x86 : conroe : -march=core2 ; |
169 |
+-cpu-flags gcc OPTIONS : x86 : conroe-xe : -march=core2 ; |
170 |
+-cpu-flags gcc OPTIONS : x86 : conroe-l : -march=core2 ; |
171 |
+-cpu-flags gcc OPTIONS : x86 : allendale : -march=core2 ; |
172 |
+-cpu-flags gcc OPTIONS : x86 : wolfdale : -march=core2 -msse4.1 ; |
173 |
+-cpu-flags gcc OPTIONS : x86 : merom : -march=core2 ; |
174 |
+-cpu-flags gcc OPTIONS : x86 : merom-xe : -march=core2 ; |
175 |
+-cpu-flags gcc OPTIONS : x86 : kentsfield : -march=core2 ; |
176 |
+-cpu-flags gcc OPTIONS : x86 : kentsfield-xe : -march=core2 ; |
177 |
+-cpu-flags gcc OPTIONS : x86 : yorksfield : -march=core2 ; |
178 |
+-cpu-flags gcc OPTIONS : x86 : penryn : -march=core2 ; |
179 |
+-cpu-flags gcc OPTIONS : x86 : corei7 : -march=corei7 ; |
180 |
+-cpu-flags gcc OPTIONS : x86 : nehalem : -march=corei7 ; |
181 |
+-cpu-flags gcc OPTIONS : x86 : corei7-avx : -march=corei7-avx ; |
182 |
+-cpu-flags gcc OPTIONS : x86 : sandy-bridge : -march=corei7-avx ; |
183 |
+-cpu-flags gcc OPTIONS : x86 : core-avx-i : -march=core-avx-i ; |
184 |
+-cpu-flags gcc OPTIONS : x86 : ivy-bridge : -march=core-avx-i ; |
185 |
+-cpu-flags gcc OPTIONS : x86 : haswell : -march=core-avx-i -mavx2 -mfma -mbmi -mbmi2 -mlzcnt ; |
186 |
+-cpu-flags gcc OPTIONS : x86 : broadwell : -march=broadwell ; |
187 |
+-cpu-flags gcc OPTIONS : x86 : skylake : -march=skylake ; |
188 |
+-cpu-flags gcc OPTIONS : x86 : skylake-avx512 : -march=skylake-avx512 ; |
189 |
+-cpu-flags gcc OPTIONS : x86 : cannonlake : -march=skylake-avx512 -mavx512vbmi -mavx512ifma -msha ; |
190 |
+-cpu-flags gcc OPTIONS : x86 : icelake : -march=icelake ; |
191 |
+-cpu-flags gcc OPTIONS : x86 : k6 : -march=k6 ; |
192 |
+-cpu-flags gcc OPTIONS : x86 : k6-2 : -march=k6-2 ; |
193 |
+-cpu-flags gcc OPTIONS : x86 : k6-3 : -march=k6-3 ; |
194 |
+-cpu-flags gcc OPTIONS : x86 : athlon : -march=athlon ; |
195 |
+-cpu-flags gcc OPTIONS : x86 : athlon-tbird : -march=athlon-tbird ; |
196 |
+-cpu-flags gcc OPTIONS : x86 : athlon-4 : -march=athlon-4 ; |
197 |
+-cpu-flags gcc OPTIONS : x86 : athlon-xp : -march=athlon-xp ; |
198 |
+-cpu-flags gcc OPTIONS : x86 : athlon-mp : -march=athlon-mp ; |
199 |
+ ## |
200 |
+-cpu-flags gcc OPTIONS : x86 : k8 : -march=k8 ; |
201 |
+-cpu-flags gcc OPTIONS : x86 : opteron : -march=opteron ; |
202 |
+-cpu-flags gcc OPTIONS : x86 : athlon64 : -march=athlon64 ; |
203 |
+-cpu-flags gcc OPTIONS : x86 : athlon-fx : -march=athlon-fx ; |
204 |
+-cpu-flags gcc OPTIONS : x86 : k8-sse3 : -march=k8-sse3 ; |
205 |
+-cpu-flags gcc OPTIONS : x86 : opteron-sse3 : -march=opteron-sse3 ; |
206 |
+-cpu-flags gcc OPTIONS : x86 : athlon64-sse3 : -march=athlon64-sse3 ; |
207 |
+-cpu-flags gcc OPTIONS : x86 : amdfam10 : -march=amdfam10 ; |
208 |
+-cpu-flags gcc OPTIONS : x86 : barcelona : -march=barcelona ; |
209 |
+-cpu-flags gcc OPTIONS : x86 : bdver1 : -march=bdver1 ; |
210 |
+-cpu-flags gcc OPTIONS : x86 : bdver2 : -march=bdver2 ; |
211 |
+-cpu-flags gcc OPTIONS : x86 : bdver3 : -march=bdver3 ; |
212 |
+-cpu-flags gcc OPTIONS : x86 : bdver4 : -march=bdver4 ; |
213 |
+-cpu-flags gcc OPTIONS : x86 : btver1 : -march=btver1 ; |
214 |
+-cpu-flags gcc OPTIONS : x86 : btver2 : -march=btver2 ; |
215 |
+-cpu-flags gcc OPTIONS : x86 : znver1 : -march=znver1 ; |
216 |
+-cpu-flags gcc OPTIONS : x86 : winchip-c6 : -march=winchip-c6 ; |
217 |
+-cpu-flags gcc OPTIONS : x86 : winchip2 : -march=winchip2 ; |
218 |
+-cpu-flags gcc OPTIONS : x86 : c3 : -march=c3 ; |
219 |
+-cpu-flags gcc OPTIONS : x86 : c3-2 : -march=c3-2 ; |
220 |
+ ## |
221 |
+-cpu-flags gcc OPTIONS : x86 : atom : -march=atom ; |
222 |
+-# Sparc |
223 |
+-cpu-flags gcc OPTIONS : sparc : v7 : -mcpu=v7 : default ; |
224 |
+-cpu-flags gcc OPTIONS : sparc : cypress : -mcpu=cypress ; |
225 |
+-cpu-flags gcc OPTIONS : sparc : v8 : -mcpu=v8 ; |
226 |
+-cpu-flags gcc OPTIONS : sparc : supersparc : -mcpu=supersparc ; |
227 |
+-cpu-flags gcc OPTIONS : sparc : sparclite : -mcpu=sparclite ; |
228 |
+-cpu-flags gcc OPTIONS : sparc : hypersparc : -mcpu=hypersparc ; |
229 |
+-cpu-flags gcc OPTIONS : sparc : sparclite86x : -mcpu=sparclite86x ; |
230 |
+-cpu-flags gcc OPTIONS : sparc : f930 : -mcpu=f930 ; |
231 |
+-cpu-flags gcc OPTIONS : sparc : f934 : -mcpu=f934 ; |
232 |
+-cpu-flags gcc OPTIONS : sparc : sparclet : -mcpu=sparclet ; |
233 |
+-cpu-flags gcc OPTIONS : sparc : tsc701 : -mcpu=tsc701 ; |
234 |
+-cpu-flags gcc OPTIONS : sparc : v9 : -mcpu=v9 ; |
235 |
+-cpu-flags gcc OPTIONS : sparc : ultrasparc : -mcpu=ultrasparc ; |
236 |
+-cpu-flags gcc OPTIONS : sparc : ultrasparc3 : -mcpu=ultrasparc3 ; |
237 |
+ # RS/6000 & PowerPC |
238 |
+-cpu-flags gcc OPTIONS : power : 403 : -mcpu=403 ; |
239 |
+-cpu-flags gcc OPTIONS : power : 505 : -mcpu=505 ; |
240 |
+-cpu-flags gcc OPTIONS : power : 601 : -mcpu=601 ; |
241 |
+-cpu-flags gcc OPTIONS : power : 602 : -mcpu=602 ; |
242 |
+-cpu-flags gcc OPTIONS : power : 603 : -mcpu=603 ; |
243 |
+-cpu-flags gcc OPTIONS : power : 603e : -mcpu=603e ; |
244 |
+-cpu-flags gcc OPTIONS : power : 604 : -mcpu=604 ; |
245 |
+-cpu-flags gcc OPTIONS : power : 604e : -mcpu=604e ; |
246 |
+-cpu-flags gcc OPTIONS : power : 620 : -mcpu=620 ; |
247 |
+-cpu-flags gcc OPTIONS : power : 630 : -mcpu=630 ; |
248 |
+-cpu-flags gcc OPTIONS : power : 740 : -mcpu=740 ; |
249 |
+-cpu-flags gcc OPTIONS : power : 7400 : -mcpu=7400 ; |
250 |
+-cpu-flags gcc OPTIONS : power : 7450 : -mcpu=7450 ; |
251 |
+-cpu-flags gcc OPTIONS : power : 750 : -mcpu=750 ; |
252 |
+-cpu-flags gcc OPTIONS : power : 801 : -mcpu=801 ; |
253 |
+-cpu-flags gcc OPTIONS : power : 821 : -mcpu=821 ; |
254 |
+-cpu-flags gcc OPTIONS : power : 823 : -mcpu=823 ; |
255 |
+-cpu-flags gcc OPTIONS : power : 860 : -mcpu=860 ; |
256 |
+-cpu-flags gcc OPTIONS : power : 970 : -mcpu=970 ; |
257 |
+-cpu-flags gcc OPTIONS : power : 8540 : -mcpu=8540 ; |
258 |
+-cpu-flags gcc OPTIONS : power : power : -mcpu=power ; |
259 |
+-cpu-flags gcc OPTIONS : power : power2 : -mcpu=power2 ; |
260 |
+-cpu-flags gcc OPTIONS : power : power3 : -mcpu=power3 ; |
261 |
+-cpu-flags gcc OPTIONS : power : power4 : -mcpu=power4 ; |
262 |
+-cpu-flags gcc OPTIONS : power : power5 : -mcpu=power5 ; |
263 |
+-cpu-flags gcc OPTIONS : power : powerpc : -mcpu=powerpc ; |
264 |
+-cpu-flags gcc OPTIONS : power : powerpc64 : -mcpu=powerpc64 ; |
265 |
+-cpu-flags gcc OPTIONS : power : rios : -mcpu=rios ; |
266 |
+-cpu-flags gcc OPTIONS : power : rios1 : -mcpu=rios1 ; |
267 |
+-cpu-flags gcc OPTIONS : power : rios2 : -mcpu=rios2 ; |
268 |
+-cpu-flags gcc OPTIONS : power : rsc : -mcpu=rsc ; |
269 |
+-cpu-flags gcc OPTIONS : power : rs64a : -mcpu=rs64 ; |
270 |
+-cpu-flags gcc OPTIONS : s390x : z196 : -march=z196 ; |
271 |
+-cpu-flags gcc OPTIONS : s390x : zEC12 : -march=zEC12 ; |
272 |
+-cpu-flags gcc OPTIONS : s390x : z13 : -march=z13 ; |
273 |
+-cpu-flags gcc OPTIONS : s390x : z14 : -march=z14 ; |
274 |
+ # AIX variant of RS/6000 & PowerPC |
275 |
+ toolset.flags gcc AROPTIONS <address-model>64/<target-os>aix : "-X64" ; |
276 |
+--- a/tools/gcc.py |
277 |
++++ b/tools/gcc.py |
278 |
+@@ -745,125 +745,14 @@ |
279 |
+ # x86 and compatible |
280 |
+ flags('gcc', 'OPTIONS', ['<architecture>x86/<address-model>32'], ['-m32']) |
281 |
+ flags('gcc', 'OPTIONS', ['<architecture>x86/<address-model>64'], ['-m64']) |
282 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'native', ['-march=native']) |
283 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'i486', ['-march=i486']) |
284 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'i586', ['-march=i586']) |
285 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'i686', ['-march=i686'], default=True) |
286 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'pentium', ['-march=pentium']) |
287 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'pentium-mmx', ['-march=pentium-mmx']) |
288 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'pentiumpro', ['-march=pentiumpro']) |
289 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'pentium2', ['-march=pentium2']) |
290 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'pentium3', ['-march=pentium3']) |
291 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'pentium3m', ['-march=pentium3m']) |
292 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'pentium-m', ['-march=pentium-m']) |
293 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'pentium4', ['-march=pentium4']) |
294 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'pentium4m', ['-march=pentium4m']) |
295 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'prescott', ['-march=prescott']) |
296 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'nocona', ['-march=nocona']) |
297 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'core2', ['-march=core2']) |
298 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'conroe', ['-march=core2']) |
299 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'conroe-xe', ['-march=core2']) |
300 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'conroe-l', ['-march=core2']) |
301 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'allendale', ['-march=core2']) |
302 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'wolfdale', ['-march=core2', '-msse4.1']) |
303 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'merom', ['-march=core2']) |
304 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'merom-xe', ['-march=core2']) |
305 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'kentsfield', ['-march=core2']) |
306 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'kentsfield-xe', ['-march=core2']) |
307 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'yorksfield', ['-march=core2']) |
308 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'penryn', ['-march=core2']) |
309 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'corei7', ['-march=corei7']) |
310 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'nehalem', ['-march=corei7']) |
311 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'corei7-avx', ['-march=corei7-avx']) |
312 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'sandy-bridge', ['-march=corei7-avx']) |
313 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'core-avx-i', ['-march=core-avx-i']) |
314 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'ivy-bridge', ['-march=core-avx-i']) |
315 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'haswell', ['-march=core-avx-i', '-mavx2', '-mfma', '-mbmi', '-mbmi2', '-mlzcnt']) |
316 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'k6', ['-march=k6']) |
317 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'k6-2', ['-march=k6-2']) |
318 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'k6-3', ['-march=k6-3']) |
319 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'athlon', ['-march=athlon']) |
320 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'athlon-tbird', ['-march=athlon-tbird']) |
321 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'athlon-4', ['-march=athlon-4']) |
322 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'athlon-xp', ['-march=athlon-xp']) |
323 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'athlon-mp', ['-march=athlon-mp']) |
324 |
+ ## |
325 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'k8', ['-march=k8']) |
326 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'opteron', ['-march=opteron']) |
327 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'athlon64', ['-march=athlon64']) |
328 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'athlon-fx', ['-march=athlon-fx']) |
329 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'k8-sse3', ['-march=k8-sse3']) |
330 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'opteron-sse3', ['-march=opteron-sse3']) |
331 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'athlon64-sse3', ['-march=athlon64-sse3']) |
332 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'amdfam10', ['-march=amdfam10']) |
333 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'barcelona', ['-march=barcelona']) |
334 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'bdver1', ['-march=bdver1']) |
335 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'bdver2', ['-march=bdver2']) |
336 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'bdver3', ['-march=bdver3']) |
337 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'btver1', ['-march=btver1']) |
338 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'btver2', ['-march=btver2']) |
339 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'winchip-c6', ['-march=winchip-c6']) |
340 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'winchip2', ['-march=winchip2']) |
341 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'c3', ['-march=c3']) |
342 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'c3-2', ['-march=c3-2']) |
343 |
+ ## |
344 |
+-cpu_flags('gcc', 'OPTIONS', 'x86', 'atom', ['-march=atom']) |
345 |
+ # Sparc |
346 |
+ flags('gcc', 'OPTIONS', ['<architecture>sparc/<address-model>32'], ['-m32']) |
347 |
+ flags('gcc', 'OPTIONS', ['<architecture>sparc/<address-model>64'], ['-m64']) |
348 |
+-cpu_flags('gcc', 'OPTIONS', 'sparc', 'v7', ['-mcpu=v7'], default=True) |
349 |
+-cpu_flags('gcc', 'OPTIONS', 'sparc', 'cypress', ['-mcpu=cypress']) |
350 |
+-cpu_flags('gcc', 'OPTIONS', 'sparc', 'v8', ['-mcpu=v8']) |
351 |
+-cpu_flags('gcc', 'OPTIONS', 'sparc', 'supersparc', ['-mcpu=supersparc']) |
352 |
+-cpu_flags('gcc', 'OPTIONS', 'sparc', 'sparclite', ['-mcpu=sparclite']) |
353 |
+-cpu_flags('gcc', 'OPTIONS', 'sparc', 'hypersparc', ['-mcpu=hypersparc']) |
354 |
+-cpu_flags('gcc', 'OPTIONS', 'sparc', 'sparclite86x', ['-mcpu=sparclite86x']) |
355 |
+-cpu_flags('gcc', 'OPTIONS', 'sparc', 'f930', ['-mcpu=f930']) |
356 |
+-cpu_flags('gcc', 'OPTIONS', 'sparc', 'f934', ['-mcpu=f934']) |
357 |
+-cpu_flags('gcc', 'OPTIONS', 'sparc', 'sparclet', ['-mcpu=sparclet']) |
358 |
+-cpu_flags('gcc', 'OPTIONS', 'sparc', 'tsc701', ['-mcpu=tsc701']) |
359 |
+-cpu_flags('gcc', 'OPTIONS', 'sparc', 'v9', ['-mcpu=v9']) |
360 |
+-cpu_flags('gcc', 'OPTIONS', 'sparc', 'ultrasparc', ['-mcpu=ultrasparc']) |
361 |
+-cpu_flags('gcc', 'OPTIONS', 'sparc', 'ultrasparc3', ['-mcpu=ultrasparc3']) |
362 |
+ # RS/6000 & PowerPC |
363 |
+ flags('gcc', 'OPTIONS', ['<architecture>power/<address-model>32'], ['-m32']) |
364 |
+ flags('gcc', 'OPTIONS', ['<architecture>power/<address-model>64'], ['-m64']) |
365 |
+-cpu_flags('gcc', 'OPTIONS', 'power', '403', ['-mcpu=403']) |
366 |
+-cpu_flags('gcc', 'OPTIONS', 'power', '505', ['-mcpu=505']) |
367 |
+-cpu_flags('gcc', 'OPTIONS', 'power', '601', ['-mcpu=601']) |
368 |
+-cpu_flags('gcc', 'OPTIONS', 'power', '602', ['-mcpu=602']) |
369 |
+-cpu_flags('gcc', 'OPTIONS', 'power', '603', ['-mcpu=603']) |
370 |
+-cpu_flags('gcc', 'OPTIONS', 'power', '603e', ['-mcpu=603e']) |
371 |
+-cpu_flags('gcc', 'OPTIONS', 'power', '604', ['-mcpu=604']) |
372 |
+-cpu_flags('gcc', 'OPTIONS', 'power', '604e', ['-mcpu=604e']) |
373 |
+-cpu_flags('gcc', 'OPTIONS', 'power', '620', ['-mcpu=620']) |
374 |
+-cpu_flags('gcc', 'OPTIONS', 'power', '630', ['-mcpu=630']) |
375 |
+-cpu_flags('gcc', 'OPTIONS', 'power', '740', ['-mcpu=740']) |
376 |
+-cpu_flags('gcc', 'OPTIONS', 'power', '7400', ['-mcpu=7400']) |
377 |
+-cpu_flags('gcc', 'OPTIONS', 'power', '7450', ['-mcpu=7450']) |
378 |
+-cpu_flags('gcc', 'OPTIONS', 'power', '750', ['-mcpu=750']) |
379 |
+-cpu_flags('gcc', 'OPTIONS', 'power', '801', ['-mcpu=801']) |
380 |
+-cpu_flags('gcc', 'OPTIONS', 'power', '821', ['-mcpu=821']) |
381 |
+-cpu_flags('gcc', 'OPTIONS', 'power', '823', ['-mcpu=823']) |
382 |
+-cpu_flags('gcc', 'OPTIONS', 'power', '860', ['-mcpu=860']) |
383 |
+-cpu_flags('gcc', 'OPTIONS', 'power', '970', ['-mcpu=970']) |
384 |
+-cpu_flags('gcc', 'OPTIONS', 'power', '8540', ['-mcpu=8540']) |
385 |
+-cpu_flags('gcc', 'OPTIONS', 'power', 'power', ['-mcpu=power']) |
386 |
+-cpu_flags('gcc', 'OPTIONS', 'power', 'power2', ['-mcpu=power2']) |
387 |
+-cpu_flags('gcc', 'OPTIONS', 'power', 'power3', ['-mcpu=power3']) |
388 |
+-cpu_flags('gcc', 'OPTIONS', 'power', 'power4', ['-mcpu=power4']) |
389 |
+-cpu_flags('gcc', 'OPTIONS', 'power', 'power5', ['-mcpu=power5']) |
390 |
+-cpu_flags('gcc', 'OPTIONS', 'power', 'powerpc', ['-mcpu=powerpc']) |
391 |
+-cpu_flags('gcc', 'OPTIONS', 'power', 'powerpc64', ['-mcpu=powerpc64']) |
392 |
+-cpu_flags('gcc', 'OPTIONS', 'power', 'rios', ['-mcpu=rios']) |
393 |
+-cpu_flags('gcc', 'OPTIONS', 'power', 'rios1', ['-mcpu=rios1']) |
394 |
+-cpu_flags('gcc', 'OPTIONS', 'power', 'rios2', ['-mcpu=rios2']) |
395 |
+-cpu_flags('gcc', 'OPTIONS', 'power', 'rsc', ['-mcpu=rsc']) |
396 |
+-cpu_flags('gcc', 'OPTIONS', 'power', 'rs64a', ['-mcpu=rs64']) |
397 |
+-cpu_flags('gcc', 'OPTIONS', 's390x', 'z196', ['-march=z196']) |
398 |
+-cpu_flags('gcc', 'OPTIONS', 's390x', 'zEC12', ['-march=zEC12']) |
399 |
+-cpu_flags('gcc', 'OPTIONS', 's390x', 'z13', ['-march=z13']) |
400 |
+-cpu_flags('gcc', 'OPTIONS', 's390x', 'z14', ['-march=z14']) |
401 |
+ # AIX variant of RS/6000 & PowerPC |
402 |
+ flags('gcc', 'OPTIONS', ['<architecture>power/<address-model>32/<target-os>aix'], ['-maix32']) |
403 |
+ flags('gcc', 'OPTIONS', ['<architecture>power/<address-model>64/<target-os>aix'], ['-maix64']) |
404 |
|
405 |
diff --git a/dev-util/boost-build/metadata.xml b/dev-util/boost-build/metadata.xml |
406 |
new file mode 100644 |
407 |
index 000000000..e63200f91 |
408 |
--- /dev/null |
409 |
+++ b/dev-util/boost-build/metadata.xml |
410 |
@@ -0,0 +1,11 @@ |
411 |
+<?xml version="1.0" encoding="UTF-8"?> |
412 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
413 |
+<pkgmetadata> |
414 |
+ <maintainer type="project"> |
415 |
+ <email>sci@g.o</email> |
416 |
+ <description>Gentoo Science Project</description> |
417 |
+ </maintainer> |
418 |
+ <upstream> |
419 |
+ <remote-id type="sourceforge">boost</remote-id> |
420 |
+ </upstream> |
421 |
+</pkgmetadata> |