1 |
commit: bb6ead9708a9825f32e7ea306d4460fa77aa2eb9 |
2 |
Author: Justin Lecher <jlec <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Sep 20 10:01:52 2015 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 20 10:01:52 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb6ead97 |
7 |
|
8 |
dev-cpp/tbb: Drop old |
9 |
|
10 |
Package-Manager: portage-2.2.20.1 |
11 |
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org> |
12 |
|
13 |
dev-cpp/tbb/Manifest | 1 - |
14 |
dev-cpp/tbb/files/tbb-4.1.20121003-ppc.patch | 16 --- |
15 |
dev-cpp/tbb/files/tbb-4.3-build.patch | 185 --------------------------- |
16 |
dev-cpp/tbb/tbb-4.1.20121003-r1.ebuild | 124 ------------------ |
17 |
dev-cpp/tbb/tbb-4.3.20141023-r1.ebuild | 132 ------------------- |
18 |
5 files changed, 458 deletions(-) |
19 |
|
20 |
diff --git a/dev-cpp/tbb/Manifest b/dev-cpp/tbb/Manifest |
21 |
index 6bb73c5..b19a8e5 100644 |
22 |
--- a/dev-cpp/tbb/Manifest |
23 |
+++ b/dev-cpp/tbb/Manifest |
24 |
@@ -1,3 +1,2 @@ |
25 |
-DIST tbb41_20121003oss_src.tgz 2250789 SHA256 5383727b9582a54cf4c4adbf22186b70e8eba276fcd3be81d746a937c5b47afc SHA512 fada6e32a09be2a151746caf3a15729c9ec6043b17e2f0aeb1bd903542310cdc6fe9ad85017ff5b2cfb16ae955c81c8b39ad8cf97f871bfcbd19d4948ef1d821 WHIRLPOOL 6c2a094e1dc6efed7189903bf8a6bbb8688ab1b15134c9f3c09fd5ed6a72315140505f5df410c89b65cd160a896222d71e01b3bfcbcd933281fb18a69eaf33f1 |
26 |
DIST tbb43_20141023oss_src.tgz 2777177 SHA256 247a8d22d6850caa37d376aaeaf8bfcb06525ec5561fb6f6ed09cdad2c1f6414 SHA512 0718e7bf5f0b9525da9eb45beedc1c3832ccd813d72b10a7ed7c6a281d342325d04c65f797c29e2551d4f2bd470e57c81f38db0d6bd983f7871a90f2b5fe5020 WHIRLPOOL 7a6bc75e9404cbfc9f1e1bc53ff195e63c605aae1cc2883147d69bdd394694d21f916fa6d1c2708ff397a01c620fdb38966d0da5085df6d23dcba235de18c6a8 |
27 |
DIST tbb43_20150611oss_src.tgz 2757631 SHA256 221f85fe64e11c9638e43b3c57d5750c26683905fc90827c0bcfefdb286e79c9 SHA512 83d5d827706b774ef5cd6df8082e5d7f48683388684423bb40565dfc25892fc2e57c382f719b78087d83e51edb3f7f7215f33d8b5039b55c32788d80efa6e0b8 WHIRLPOOL 8e98162b2307c759fb26923d76ab784dea81e166c8bf5323869d234da59641c333e5ae30b4a224bccbf20d4f5f6b75c658589f519a165ea3ad7658322f148c72 |
28 |
|
29 |
diff --git a/dev-cpp/tbb/files/tbb-4.1.20121003-ppc.patch b/dev-cpp/tbb/files/tbb-4.1.20121003-ppc.patch |
30 |
deleted file mode 100644 |
31 |
index c50e051..0000000 |
32 |
--- a/dev-cpp/tbb/files/tbb-4.1.20121003-ppc.patch |
33 |
+++ /dev/null |
34 |
@@ -1,16 +0,0 @@ |
35 |
-diff -up tbb40_20120408oss/include/tbb/tbb_machine.h\~ tbb40_20120408oss/include/tbb/tbb_machine.h |
36 |
---- tbb40_20120408oss/include/tbb/tbb_machine.h~ 2012-04-20 09:21:57.000000000 +0200 |
37 |
-+++ tbb40_20120408oss/include/tbb/tbb_machine.h 2012-08-28 13:20:42.150456167 +0200 |
38 |
-@@ -373,8 +373,8 @@ void spin_wait_until_eq( const volatile |
39 |
- // - The operation assumes that the architecture consistently uses either little-endian or big-endian: |
40 |
- // it does not support mixed-endian or page-specific bi-endian architectures. |
41 |
- // This function is the only use of __TBB_BIG_ENDIAN. |
42 |
--#if (__TBB_BIG_ENDIAN!=-1) |
43 |
-- #if ( __TBB_USE_GENERIC_PART_WORD_CAS) |
44 |
-+#if ( __TBB_USE_GENERIC_PART_WORD_CAS) |
45 |
-+ #if (__TBB_BIG_ENDIAN==-1) |
46 |
- #error generic implementation of part-word CAS was explicitly disabled for this configuration |
47 |
- #endif |
48 |
- template<typename T> |
49 |
- |
50 |
-Diff finished. Tue Aug 28 13:20:58 2012 |
51 |
|
52 |
diff --git a/dev-cpp/tbb/files/tbb-4.3-build.patch b/dev-cpp/tbb/files/tbb-4.3-build.patch |
53 |
deleted file mode 100644 |
54 |
index a9119ef..0000000 |
55 |
--- a/dev-cpp/tbb/files/tbb-4.3-build.patch |
56 |
+++ /dev/null |
57 |
@@ -1,185 +0,0 @@ |
58 |
---- a/build/linux.gcc.inc 2014-10-31 09:08:38.000000000 -0400 |
59 |
-+++ b/build/linux.gcc.inc 2015-06-08 19:22:49.855807841 -0400 |
60 |
-@@ -32,12 +32,12 @@ |
61 |
- EXPORT_KEY = -Wl,--version-script, |
62 |
- LIBDL = -ldl |
63 |
- |
64 |
--CPLUS = g++ |
65 |
--CONLY = gcc |
66 |
-+CPLUS := $(CXX) |
67 |
-+CONLY := $(CC) |
68 |
- LIB_LINK_FLAGS = $(DYLIB_KEY) -Wl,-soname=$(BUILDING_LIBRARY) |
69 |
- LIBS += -lpthread -lrt |
70 |
- LINK_FLAGS = -Wl,-rpath-link=. -rdynamic |
71 |
--C_FLAGS = $(CPLUS_FLAGS) |
72 |
-+C_FLAGS := $(CPLUS_FLAGS) |
73 |
- # gcc 4.4 and higher support -std=c++0x |
74 |
- ifneq (,$(shell gcc -dumpversion | egrep "^(4\.[4-9]|[5-9])")) |
75 |
- CPP11_FLAGS = -std=c++0x -D_TBB_CPP0X |
76 |
-@@ -54,7 +54,7 @@ |
77 |
- endif |
78 |
- |
79 |
- ifeq ($(cfg), release) |
80 |
-- CPLUS_FLAGS = $(ITT_NOTIFY) -g -O2 -DUSE_PTHREAD |
81 |
-+ CPLUS_FLAGS = $(ITT_NOTIFY) -g -DUSE_PTHREAD |
82 |
- endif |
83 |
- ifeq ($(cfg), debug) |
84 |
- CPLUS_FLAGS = -DTBB_USE_DEBUG $(ITT_NOTIFY) -g -O0 -DUSE_PTHREAD |
85 |
-@@ -74,24 +74,12 @@ |
86 |
- |
87 |
- ifeq (intel64,$(arch)) |
88 |
- ITT_NOTIFY = -DDO_ITT_NOTIFY |
89 |
-- CPLUS_FLAGS += -m64 $(RTM_KEY) |
90 |
-- LIB_LINK_FLAGS += -m64 |
91 |
-+ CPLUS_FLAGS += $(RTM_KEY) |
92 |
- endif |
93 |
- |
94 |
- ifeq (ia32,$(arch)) |
95 |
- ITT_NOTIFY = -DDO_ITT_NOTIFY |
96 |
-- CPLUS_FLAGS += -m32 -march=pentium4 $(RTM_KEY) |
97 |
-- LIB_LINK_FLAGS += -m32 |
98 |
--endif |
99 |
-- |
100 |
--ifeq (ppc64,$(arch)) |
101 |
-- CPLUS_FLAGS += -m64 |
102 |
-- LIB_LINK_FLAGS += -m64 |
103 |
--endif |
104 |
-- |
105 |
--ifeq (ppc32,$(arch)) |
106 |
-- CPLUS_FLAGS += -m32 |
107 |
-- LIB_LINK_FLAGS += -m32 |
108 |
-+ CPLUS_FLAGS += $(RTM_KEY) |
109 |
- endif |
110 |
- |
111 |
- ifeq (bg,$(arch)) |
112 |
-@@ -99,12 +87,6 @@ |
113 |
- CONLY = mpicc |
114 |
- endif |
115 |
- |
116 |
--# for some gcc versions on Solaris, -m64 may imply V9, but perhaps not everywhere (TODO: verify) |
117 |
--ifeq (sparc,$(arch)) |
118 |
-- CPLUS_FLAGS += -mcpu=v9 -m64 |
119 |
-- LIB_LINK_FLAGS += -mcpu=v9 -m64 |
120 |
--endif |
121 |
-- |
122 |
- # automatically generate "IT" instructions when compiling for Thumb ISA |
123 |
- ifeq (armv7,$(arch)) |
124 |
- CPLUS_FLAGS += -Wa,-mimplicit-it=thumb |
125 |
-@@ -113,13 +95,7 @@ |
126 |
- #------------------------------------------------------------------------------ |
127 |
- # Setting assembler data. |
128 |
- #------------------------------------------------------------------------------ |
129 |
--ASM = as |
130 |
--ifeq (intel64,$(arch)) |
131 |
-- ASM_FLAGS += --64 |
132 |
--endif |
133 |
--ifeq (ia32,$(arch)) |
134 |
-- ASM_FLAGS += --32 |
135 |
--endif |
136 |
-+ASM := $(AS) |
137 |
- ifeq ($(cfg),debug) |
138 |
- ASM_FLAGS += -g |
139 |
- endif |
140 |
---- a/build/FreeBSD.gcc.inc 2014-10-31 09:08:37.000000000 -0400 |
141 |
-+++ b/build/FreeBSD.gcc.inc 2015-06-08 19:24:51.385810060 -0400 |
142 |
-@@ -27,14 +27,14 @@ |
143 |
- WARNING_KEY = -Wall |
144 |
- DYLIB_KEY = -shared |
145 |
- |
146 |
--CPLUS = g++ |
147 |
--CONLY = gcc |
148 |
-+CPLUS = $(CXX) |
149 |
-+CONLY = $(CC) |
150 |
- LIB_LINK_FLAGS = -shared |
151 |
- LIBS = -lpthread |
152 |
- C_FLAGS = $(CPLUS_FLAGS) |
153 |
- |
154 |
- ifeq ($(cfg), release) |
155 |
-- CPLUS_FLAGS = -g -O2 -DUSE_PTHREAD |
156 |
-+ CPLUS_FLAGS = -g -DUSE_PTHREAD |
157 |
- endif |
158 |
- ifeq ($(cfg), debug) |
159 |
- CPLUS_FLAGS = -DTBB_USE_DEBUG -g -O0 -DUSE_PTHREAD |
160 |
-@@ -51,22 +51,12 @@ |
161 |
- CPLUS_FLAGS += $(PIC_KEY) |
162 |
- endif |
163 |
- |
164 |
--ifeq (intel64,$(arch)) |
165 |
-- CPLUS_FLAGS += -m64 |
166 |
-- LIB_LINK_FLAGS += -m64 |
167 |
--endif |
168 |
-- |
169 |
--ifeq (ia32,$(arch)) |
170 |
-- CPLUS_FLAGS += -m32 |
171 |
-- LIB_LINK_FLAGS += -m32 |
172 |
--endif |
173 |
-- |
174 |
- #------------------------------------------------------------------------------ |
175 |
- # Setting assembler data. |
176 |
- #------------------------------------------------------------------------------ |
177 |
- ASSEMBLY_SOURCE=$(arch)-gas |
178 |
- ifeq (ia64,$(arch)) |
179 |
-- ASM=as |
180 |
-+ ASM=$(AS) |
181 |
- TBB_ASM.OBJ = atomic_support.o lock_byte.o log2.o pause.o |
182 |
- MALLOC_ASM.OBJ = atomic_support.o lock_byte.o pause.o |
183 |
- endif |
184 |
---- a/build/linux.clang.inc 2014-10-31 09:08:37.000000000 -0400 |
185 |
-+++ b/build/linux.clang.inc 2015-06-08 20:24:29.785875376 -0400 |
186 |
-@@ -31,15 +31,15 @@ |
187 |
- EXPORT_KEY = -Wl,--version-script, |
188 |
- LIBDL = -ldl |
189 |
- |
190 |
--CPLUS = clang++ |
191 |
--CONLY = clang |
192 |
-+CPLUS := $(CXX) |
193 |
-+CONLY := $(CC) |
194 |
- LIB_LINK_FLAGS = $(DYLIB_KEY) -Wl,-soname=$(BUILDING_LIBRARY) |
195 |
- LIBS += -lpthread -lrt |
196 |
- LINK_FLAGS = -Wl,-rpath-link=. |
197 |
- C_FLAGS = $(CPLUS_FLAGS) |
198 |
- |
199 |
- ifeq ($(cfg), release) |
200 |
-- CPLUS_FLAGS = $(ITT_NOTIFY) -g -O2 -DUSE_PTHREAD |
201 |
-+ CPLUS_FLAGS = $(ITT_NOTIFY) -g -DUSE_PTHREAD |
202 |
- endif |
203 |
- ifeq ($(cfg), debug) |
204 |
- CPLUS_FLAGS = -DTBB_USE_DEBUG $(ITT_NOTIFY) -g -O0 -DUSE_PTHREAD |
205 |
-@@ -61,24 +61,10 @@ |
206 |
- |
207 |
- ifeq (intel64,$(arch)) |
208 |
- ITT_NOTIFY = -DDO_ITT_NOTIFY |
209 |
-- CPLUS_FLAGS += -m64 |
210 |
-- LIB_LINK_FLAGS += -m64 |
211 |
- endif |
212 |
- |
213 |
- ifeq (ia32,$(arch)) |
214 |
- ITT_NOTIFY = -DDO_ITT_NOTIFY |
215 |
-- CPLUS_FLAGS += -m32 -march=pentium4 |
216 |
-- LIB_LINK_FLAGS += -m32 |
217 |
--endif |
218 |
-- |
219 |
--ifeq (ppc64,$(arch)) |
220 |
-- CPLUS_FLAGS += -m64 |
221 |
-- LIB_LINK_FLAGS += -m64 |
222 |
--endif |
223 |
-- |
224 |
--ifeq (ppc32,$(arch)) |
225 |
-- CPLUS_FLAGS += -m32 |
226 |
-- LIB_LINK_FLAGS += -m32 |
227 |
- endif |
228 |
- |
229 |
- ifeq (bg,$(arch)) |
230 |
-@@ -90,12 +76,6 @@ |
231 |
- # Setting assembler data. |
232 |
- #------------------------------------------------------------------------------ |
233 |
- ASM = as |
234 |
--ifeq (intel64,$(arch)) |
235 |
-- ASM_FLAGS += --64 |
236 |
--endif |
237 |
--ifeq (ia32,$(arch)) |
238 |
-- ASM_FLAGS += --32 |
239 |
--endif |
240 |
- ifeq ($(cfg),debug) |
241 |
- ASM_FLAGS += -g |
242 |
- endif |
243 |
|
244 |
diff --git a/dev-cpp/tbb/tbb-4.1.20121003-r1.ebuild b/dev-cpp/tbb/tbb-4.1.20121003-r1.ebuild |
245 |
deleted file mode 100644 |
246 |
index ee584e6..0000000 |
247 |
--- a/dev-cpp/tbb/tbb-4.1.20121003-r1.ebuild |
248 |
+++ /dev/null |
249 |
@@ -1,124 +0,0 @@ |
250 |
-# Copyright 1999-2014 Gentoo Foundation |
251 |
-# Distributed under the terms of the GNU General Public License v2 |
252 |
-# $Id$ |
253 |
- |
254 |
-EAPI=4 |
255 |
-inherit eutils flag-o-matic multilib versionator toolchain-funcs |
256 |
- |
257 |
-PV1="$(get_version_component_range 1)" |
258 |
-PV2="$(get_version_component_range 2)" |
259 |
-PV3="$(get_version_component_range 3)" |
260 |
-MYP="${PN}${PV1}${PV2}_${PV3}oss" |
261 |
- |
262 |
-DESCRIPTION="High level abstract threading library" |
263 |
-HOMEPAGE="http://www.threadingbuildingblocks.org/" |
264 |
-SRC_URI="http://threadingbuildingblocks.org/sites/default/files/software_releases/source/${MYP}_src.tgz" |
265 |
-LICENSE="GPL-2-with-exceptions" |
266 |
- |
267 |
-SLOT="0" |
268 |
-KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux" |
269 |
-IUSE="debug doc examples" |
270 |
- |
271 |
-DEPEND="" |
272 |
-RDEPEND="${DEPEND}" |
273 |
-S="${WORKDIR}/${MYP}" |
274 |
- |
275 |
-src_prepare() { |
276 |
- epatch \ |
277 |
- "${FILESDIR}"/${PN}-4.0.297-underlinking.patch \ |
278 |
- "${FILESDIR}"/${PN}-4.1.20121003-ppc.patch |
279 |
- # use fully qualified gcc compilers. do not force march/mcpu |
280 |
- # not tested with icc |
281 |
- # order in sed expressions is important |
282 |
- sed -i \ |
283 |
- -e "s/g++/$(tc-getCXX)/g" \ |
284 |
- -e "s/gcc/$(tc-getCC)/g" \ |
285 |
- -e 's/-m\(arch\|cpu\)=*[[:space:]]//g' \ |
286 |
- -e 's/-\(m\|-\)\(64\|32\)//g' \ |
287 |
- -e 's/-O2/$(CXXFLAGS)/g' \ |
288 |
- -e "/^ASM/s/as/$(tc-getAS)/g" \ |
289 |
- build/*.gcc.inc || die |
290 |
- |
291 |
- # force 64bit where applicable, 32bit where applicable... |
292 |
- # built-in detection is based on running kernel, which messes up |
293 |
- # e.g. in a x86 chroot on amd64 kernel. Bug 462130 |
294 |
- # see build/linux.inc for values |
295 |
- use amd64 && export arch=x86_64 |
296 |
- use amd64-linux && export arch=x86_64 |
297 |
- use x86 && export arch=ia32 |
298 |
- use x86-linux && export arch=ia32 |
299 |
- # no idea what to do with ppc but so far it seems to work |
300 |
- |
301 |
- find include -name \*.html -delete || die |
302 |
- |
303 |
- # pc files are for debian and fedora compatibility |
304 |
- # some deps use them |
305 |
- cat <<-EOF > ${PN}.pc.template |
306 |
- prefix=${EPREFIX}/usr |
307 |
- libdir=\${prefix}/$(get_libdir) |
308 |
- includedir=\${prefix}/include |
309 |
- Name: ${PN} |
310 |
- Description: ${DESCRIPTION} |
311 |
- Version: ${PV} |
312 |
- URL: ${HOMEPAGE} |
313 |
- Cflags: -I\${includedir} |
314 |
- EOF |
315 |
- cp ${PN}.pc.template ${PN}.pc |
316 |
- cat <<-EOF >> ${PN}.pc |
317 |
- Libs: -L\${libdir} -ltbb |
318 |
- Libs.private: -lm -lrt |
319 |
- EOF |
320 |
- cp ${PN}.pc.template ${PN}malloc.pc |
321 |
- cat <<-EOF >> ${PN}malloc.pc |
322 |
- Libs: -L\${libdir} -ltbbmalloc |
323 |
- Libs.private: -lm -lrt |
324 |
- EOF |
325 |
- cp ${PN}.pc.template ${PN}malloc_proxy.pc |
326 |
- cat <<-EOF >> ${PN}malloc_proxy.pc |
327 |
- Libs: -L\${libdir} -ltbbmalloc_proxy |
328 |
- Libs.private: -lrt |
329 |
- Requires: tbbmalloc |
330 |
- EOF |
331 |
- use debug || sed -i -e '/_debug/d' Makefile |
332 |
-} |
333 |
- |
334 |
-src_compile() { |
335 |
- if [[ $(tc-getCXX) == *g++* ]]; then |
336 |
- comp="gcc" |
337 |
- elif [[ $(tc-getCXX) == *ic*c ]]; then |
338 |
- comp="icc" |
339 |
- else |
340 |
- die "compiler $(tc-getCXX) not supported by build system" |
341 |
- fi |
342 |
- emake compiler=${comp} tbb tbbmalloc |
343 |
-} |
344 |
- |
345 |
-src_test() { |
346 |
- append-cxxflags -fabi-version=4 |
347 |
- # avoid oversubscribing with -j1 |
348 |
- emake -j1 compiler=${comp} test |
349 |
-} |
350 |
- |
351 |
-src_install(){ |
352 |
- local l |
353 |
- for l in $(find build -name lib\*.so.\*); do |
354 |
- dolib.so ${l} |
355 |
- local bl=$(basename ${l}) |
356 |
- dosym ${bl} /usr/$(get_libdir)/${bl%.*} |
357 |
- done |
358 |
- insinto /usr |
359 |
- doins -r include |
360 |
- |
361 |
- insinto /usr/$(get_libdir)/pkgconfig |
362 |
- doins *.pc |
363 |
- |
364 |
- dodoc README CHANGES doc/Release_Notes.txt |
365 |
- use doc && dohtml -r doc/html/* |
366 |
- |
367 |
- if use examples ; then |
368 |
- insinto /usr/share/doc/${PF}/examples/build |
369 |
- doins build/*.inc |
370 |
- insinto /usr/share/doc/${PF}/examples |
371 |
- doins -r examples |
372 |
- fi |
373 |
-} |
374 |
|
375 |
diff --git a/dev-cpp/tbb/tbb-4.3.20141023-r1.ebuild b/dev-cpp/tbb/tbb-4.3.20141023-r1.ebuild |
376 |
deleted file mode 100644 |
377 |
index 7d569b5..0000000 |
378 |
--- a/dev-cpp/tbb/tbb-4.3.20141023-r1.ebuild |
379 |
+++ /dev/null |
380 |
@@ -1,132 +0,0 @@ |
381 |
-# Copyright 1999-2015 Gentoo Foundation |
382 |
-# Distributed under the terms of the GNU General Public License v2 |
383 |
-# $Id$ |
384 |
- |
385 |
-EAPI=5 |
386 |
- |
387 |
-inherit eutils flag-o-matic multilib-minimal toolchain-funcs versionator |
388 |
- |
389 |
-PV1="$(get_version_component_range 1)" |
390 |
-PV2="$(get_version_component_range 2)" |
391 |
-PV3="$(get_version_component_range 3)" |
392 |
-MYP="${PN}${PV1}${PV2}_${PV3}oss" |
393 |
- |
394 |
-DESCRIPTION="High level abstract threading library" |
395 |
-HOMEPAGE="http://www.threadingbuildingblocks.org/" |
396 |
-SRC_URI="http://threadingbuildingblocks.org/sites/default/files/software_releases/source/${MYP}_src.tgz" |
397 |
-LICENSE="GPL-2-with-exceptions" |
398 |
-SLOT="0" |
399 |
-KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-fbsd ~amd64-linux ~x86-linux" |
400 |
-IUSE="debug doc examples" |
401 |
- |
402 |
-DEPEND="" |
403 |
-RDEPEND="${DEPEND}" |
404 |
-S="${WORKDIR}/${MYP}" |
405 |
- |
406 |
-src_prepare() { |
407 |
- epatch \ |
408 |
- "${FILESDIR}"/${PN}-4.0.297-underlinking.patch \ |
409 |
- "${FILESDIR}"/${PN}-4.3-build.patch |
410 |
- |
411 |
- find include -name \*.html -delete || die |
412 |
- |
413 |
- # Give it a soname on FreeBSD |
414 |
- echo 'LIB_LINK_FLAGS += -Wl,-soname=$(BUILDING_LIBRARY)' >> build/FreeBSD.gcc.inc |
415 |
- # Set proper versionning on FreeBSD |
416 |
- sed -i -e '/.DLL =/s/$/.1/' build/FreeBSD.inc || die |
417 |
- |
418 |
- use debug || sed -i -e '/_debug/d' Makefile |
419 |
-} |
420 |
- |
421 |
-multilib_src_configure() { |
422 |
- # pc files are for debian and fedora compatibility |
423 |
- # some deps use them |
424 |
- cat <<-EOF > ${PN}.pc.template |
425 |
- prefix=${EPREFIX}/usr |
426 |
- libdir=\${prefix}/$(get_libdir) |
427 |
- includedir=\${prefix}/include |
428 |
- Name: ${PN} |
429 |
- Description: ${DESCRIPTION} |
430 |
- Version: ${PV} |
431 |
- URL: ${HOMEPAGE} |
432 |
- Cflags: -I\${includedir} |
433 |
- EOF |
434 |
- cp ${PN}.pc.template ${PN}.pc || die |
435 |
- cat <<-EOF >> ${PN}.pc |
436 |
- Libs: -L\${libdir} -ltbb |
437 |
- Libs.private: -lm -lrt |
438 |
- EOF |
439 |
- cp ${PN}.pc.template ${PN}malloc.pc || die |
440 |
- cat <<-EOF >> ${PN}malloc.pc |
441 |
- Libs: -L\${libdir} -ltbbmalloc |
442 |
- Libs.private: -lm -lrt |
443 |
- EOF |
444 |
- cp ${PN}.pc.template ${PN}malloc_proxy.pc || die |
445 |
- cat <<-EOF >> ${PN}malloc_proxy.pc |
446 |
- Libs: -L\${libdir} -ltbbmalloc_proxy |
447 |
- Libs.private: -lrt |
448 |
- Requires: tbbmalloc |
449 |
- EOF |
450 |
-} |
451 |
- |
452 |
-local_src_compile() { |
453 |
- cd "${S}" |
454 |
- |
455 |
- local comp arch |
456 |
- |
457 |
- case ${MULTILIB_ABI_FLAG} in |
458 |
- abi_x86_64) arch=x86_64 ;; |
459 |
- abi_x86_32) arch=ia32 ;; |
460 |
- esac |
461 |
- |
462 |
- case "$(tc-getCXX)" in |
463 |
- *g++*) comp="gcc" ;; |
464 |
- *ic*c) comp="icc" ;; |
465 |
- *clang*) comp="clang" ;; |
466 |
- *) die "compiler $(tc-getCXX) not supported by build system" ;; |
467 |
- esac |
468 |
- |
469 |
- CXX="$(tc-getCXX)" \ |
470 |
- CC="$(tc-getCC)" \ |
471 |
- AS="$(tc-getAS)" \ |
472 |
- arch=${arch} \ |
473 |
- CPLUS_FLAGS="${CXXFLAGS}" \ |
474 |
- emake compiler=${comp} work_dir="${BUILD_DIR}" tbb_root="${S}" $@ |
475 |
-} |
476 |
- |
477 |
-multilib_src_compile() { |
478 |
- local_src_compile tbb tbbmalloc |
479 |
-} |
480 |
- |
481 |
-multilib_src_test() { |
482 |
- CXXFLAGS="${CXXFLAGS} -fabi-version=4" \ |
483 |
- local_src_compile -j1 test |
484 |
-} |
485 |
- |
486 |
-multilib_src_install() { |
487 |
- cd "${BUILD_DIR}_release" || die |
488 |
- local l |
489 |
- for l in $(find . -name lib\*.so.\*); do |
490 |
- dolib.so ${l} |
491 |
- local bl=$(basename ${l}) |
492 |
- dosym ${bl} /usr/$(get_libdir)/${bl%.*} |
493 |
- done |
494 |
- |
495 |
- cd "${BUILD_DIR}" || die |
496 |
- insinto /usr/$(get_libdir)/pkgconfig |
497 |
- doins *.pc |
498 |
-} |
499 |
- |
500 |
-multilib_src_install_all() { |
501 |
- doheader -r include/* |
502 |
- |
503 |
- dodoc README CHANGES doc/Release_Notes.txt |
504 |
- use doc && dohtml -r doc/html/* |
505 |
- |
506 |
- if use examples ; then |
507 |
- insinto /usr/share/doc/${PF}/examples/build |
508 |
- doins build/*.inc |
509 |
- insinto /usr/share/doc/${PF}/examples |
510 |
- doins -r examples |
511 |
- fi |
512 |
-} |