Ravenports generated: 18 Jan 2021 12:16
[ravenports.git] / bucket_A4 / libclc
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               libclc
4 VERSION=                0.4.0.20190527
5 REVISION=               1
6 KEYWORDS=               devel
7 VARIANTS=               standard
8 SDESC[standard]=        Required library functions for OpenCL C language
9 HOMEPAGE=               http://libclc.llvm.org/
10 CONTACT=                nobody
11
12 DOWNLOAD_GROUPS=        main
13 SITES[main]=            GITHUB/llvm-mirror:libclc:9f6204e
14 DISTFILE[1]=            generated:main
15 DF_INDEX=               1
16 SPKGS[standard]=        single
17
18 OPTIONS_AVAILABLE=      none
19 OPTIONS_STANDARD=       none
20
21 BUILD_DEPENDS=          libedit:single:standard
22
23 USES=                   python:build gmake cmake:insource clang:keepcc
24
25 LICENSE=                CUSTOM1:single
26 LICENSE_NAME=           CUSTOM1:"LLVM Release License"
27 LICENSE_FILE=           CUSTOM1:{{WRKSRC}}/LICENCE.TXT
28 LICENSE_SCHEME=         solo
29
30 FPC_EQUIVALENT=         devel/libclc
31
32 MAKE_ENV=               MAKE={{GMAKE}}
33                         DESTDIR={{STAGEDIR}}
34                         CCACHE_CPP2=yes
35
36 post-patch:
37         ${REINPLACE_CMD} -e 's|/usr/bin/python|${PYTHON_CMD}|g' \
38                 -e 's|"python |"${PYTHON_VERSION} |g' \
39                 -e 's|__CLC_INTERNAL|__CLC_INTERNAL -nogpulib|'\
40                 ${WRKSRC}/build/ninja_syntax.py \
41                 ${WRKSRC}/configure.py
42         # add ccache support
43         if [ -n "${BUILD_WITH_CCACHE}" ]; then \
44           ${SED} -i.ccache \
45           -e "s|llvm_clang =.*|llvm_clang = '/usr/libexec/clang'|"\
46           -e "s|cxx_compiler = os.*|cxx_compiler = '/usr/libexec/clang++'|"\
47           ${WRKSRC}/configure.py ;\
48         fi
49
50 do-configure:
51         (cd ${WRKSRC} && ${PYTHON_CMD} configure.py ${CONFIGURE_ARGS} \
52                 -g make \
53                 --pkgconfigdir=${PREFIX}/lib/pkgconfig \
54                 --with-llvm-config=${LOCALBASE}/bin/llvm-config \
55                 --prefix=${PREFIX})
56
57 [FILE:312:descriptions/desc.single]
58 libclc is an open source, BSD licensed implementation of the library
59 requirements of the OpenCL C programming language, as specified by the
60 OpenCL 1.1 Specification. The following sections of the specification
61 impose library requirements:
62
63 Libclc is intended to be used with the Clang compiler's OpenCL frontend
64
65
66 [FILE:112:distinfo]
67 8004c3a075d715cff6780c8ffe04c9f798dadf48bd375bdd6d98adabed04cd55       176995 llvm-mirror-libclc-9f6204e.tar.gz
68
69
70 [FILE:5802:manifests/plist.single]
71 include/clc/
72  as_type.h
73  atom_decl_int32.inc
74  atom_decl_int64.inc
75  clc.h
76  clcfunc.h
77  clcmacros.h
78  clctypes.h
79  convert.h
80 include/clc/async/
81  async_work_group_copy.h
82  async_work_group_copy.inc
83  async_work_group_strided_copy.h
84  async_work_group_strided_copy.inc
85  gentype.inc
86  prefetch.h
87  prefetch.inc
88  wait_group_events.h
89 include/clc/atomic/
90  atomic_add.h
91  atomic_and.h
92  atomic_cmpxchg.h
93  atomic_dec.h
94  atomic_decl.inc
95  atomic_inc.h
96  atomic_max.h
97  atomic_min.h
98  atomic_or.h
99  atomic_sub.h
100  atomic_xchg.h
101  atomic_xor.h
102 include/clc/cl_khr_global_int32_base_atomics/
103  atom_add.h
104  atom_cmpxchg.h
105  atom_dec.h
106  atom_inc.h
107  atom_sub.h
108  atom_xchg.h
109 include/clc/cl_khr_global_int32_extended_atomics/
110  atom_and.h
111  atom_max.h
112  atom_min.h
113  atom_or.h
114  atom_xor.h
115 include/clc/cl_khr_int64_base_atomics/
116  atom_add.h
117  atom_cmpxchg.h
118  atom_dec.h
119  atom_inc.h
120  atom_sub.h
121  atom_xchg.h
122 include/clc/cl_khr_int64_extended_atomics/
123  atom_and.h
124  atom_max.h
125  atom_min.h
126  atom_or.h
127  atom_xor.h
128 include/clc/cl_khr_local_int32_base_atomics/
129  atom_add.h
130  atom_cmpxchg.h
131  atom_dec.h
132  atom_inc.h
133  atom_sub.h
134  atom_xchg.h
135 include/clc/cl_khr_local_int32_extended_atomics/
136  atom_and.h
137  atom_max.h
138  atom_min.h
139  atom_or.h
140  atom_xor.h
141 include/clc/common/
142  degrees.h
143  degrees.inc
144  mix.h
145  mix.inc
146  radians.h
147  radians.inc
148  sign.h
149  smoothstep.h
150  smoothstep.inc
151  step.h
152  step.inc
153 include/clc/explicit_fence/explicit_memory_fence.h
154 include/clc/float/definitions.h
155 include/clc/geometric/
156  cross.h
157  distance.h
158  distance.inc
159  dot.h
160  dot.inc
161  fast_distance.h
162  fast_distance.inc
163  fast_length.h
164  fast_length.inc
165  fast_normalize.h
166  fast_normalize.inc
167  floatn.inc
168  length.h
169  length.inc
170  normalize.h
171  normalize.inc
172 include/clc/image/
173  image.h
174  image_defines.h
175 include/clc/integer/
176  abs.h
177  abs.inc
178  abs_diff.h
179  abs_diff.inc
180  add_sat.h
181  add_sat.inc
182  clz.h
183  clz.inc
184  definitions.h
185  gentype.inc
186  hadd.h
187  hadd.inc
188  integer-gentype.inc
189  mad24.h
190  mad24.inc
191  mad_hi.h
192  mad_sat.h
193  mad_sat.inc
194  mul24.h
195  mul24.inc
196  mul_hi.h
197  mul_hi.inc
198  popcount.h
199  rhadd.h
200  rhadd.inc
201  rotate.h
202  rotate.inc
203  sub_sat.h
204  sub_sat.inc
205  unary.inc
206  upsample.h
207 include/clc/math/
208  acos.h
209  acosh.h
210  acospi.h
211  asin.h
212  asinh.h
213  asinpi.h
214  atan.h
215  atan2.h
216  atan2pi.h
217  atanh.h
218  atanpi.h
219  binary_decl.inc
220  binary_decl_tt.inc
221  cbrt.h
222  ceil.h
223  copysign.h
224  cos.h
225  cosh.h
226  cospi.h
227  erf.h
228  erfc.h
229  exp.h
230  exp10.h
231  exp2.h
232  expm1.h
233  fabs.h
234  fdim.h
235  floor.h
236  fma.h
237  fmax.h
238  fmin.h
239  fmod.h
240  fract.h
241  fract.inc
242  frexp.h
243  frexp.inc
244  gentype.inc
245  half_cos.h
246  half_divide.h
247  half_exp.h
248  half_exp10.h
249  half_exp2.h
250  half_log.h
251  half_log10.h
252  half_log2.h
253  half_powr.h
254  half_recip.h
255  half_rsqrt.h
256  half_sin.h
257  half_sqrt.h
258  half_tan.h
259  hypot.h
260  ilogb.h
261  ilogb.inc
262  ldexp.h
263  ldexp.inc
264  lgamma.h
265  lgamma_r.h
266  lgamma_r.inc
267  log.h
268  log10.h
269  log1p.h
270  log2.h
271  logb.h
272  mad.h
273  maxmag.h
274  minmag.h
275  modf.h
276  modf.inc
277  nan.h
278  nan.inc
279  native_cos.h
280  native_divide.h
281  native_exp.h
282  native_exp10.h
283  native_exp2.h
284  native_log.h
285  native_log10.h
286  native_log2.h
287  native_powr.h
288  native_recip.h
289  native_rsqrt.h
290  native_sin.h
291  native_sqrt.h
292  native_tan.h
293  nextafter.h
294  pow.h
295  pown.h
296  pown.inc
297  powr.h
298  remainder.h
299  remquo.h
300  remquo.inc
301  rint.h
302  rootn.h
303  rootn.inc
304  round.h
305  rsqrt.h
306  sin.h
307  sincos.h
308  sincos.inc
309  sinh.h
310  sinpi.h
311  sqrt.h
312  tan.h
313  tanh.h
314  tanpi.h
315  ternary_decl.inc
316  tgamma.h
317  trunc.h
318  unary_decl.inc
319 include/clc/misc/
320  shuffle.h
321  shuffle2.h
322 include/clc/relational/
323  all.h
324  any.h
325  binary_decl.inc
326  bitselect.h
327  bitselect.inc
328  floatn.inc
329  isequal.h
330  isfinite.h
331  isgreater.h
332  isgreaterequal.h
333  isinf.h
334  isless.h
335  islessequal.h
336  islessgreater.h
337  isnan.h
338  isnormal.h
339  isnotequal.h
340  isordered.h
341  isunordered.h
342  select.h
343  select.inc
344  signbit.h
345  unary_decl.inc
346 include/clc/shared/
347  clamp.h
348  clamp.inc
349  max.h
350  max.inc
351  min.h
352  min.inc
353  vload.h
354  vstore.h
355 include/clc/synchronization/
356  barrier.h
357  cl_mem_fence_flags.h
358 include/clc/workitem/
359  get_global_id.h
360  get_global_offset.h
361  get_global_size.h
362  get_group_id.h
363  get_local_id.h
364  get_local_size.h
365  get_num_groups.h
366  get_work_dim.h
367 lib/clc/
368  amdgcn--amdhsa.bc
369  aruba-r600--.bc
370  barts-r600--.bc
371  bonaire-amdgcn--.bc
372  bonaire-amdgcn--amdhsa.bc
373  bonaire-amdgcn-mesa-mesa3d.bc
374  caicos-r600--.bc
375  carrizo-amdgcn--.bc
376  carrizo-amdgcn--amdhsa.bc
377  carrizo-amdgcn-mesa-mesa3d.bc
378  cayman-r600--.bc
379  cedar-r600--.bc
380  cypress-r600--.bc
381  fiji-amdgcn--.bc
382  fiji-amdgcn--amdhsa.bc
383  fiji-amdgcn-mesa-mesa3d.bc
384  gfx900-amdgcn--.bc
385  gfx900-amdgcn--amdhsa.bc
386  gfx900-amdgcn-mesa-mesa3d.bc
387  gfx902-amdgcn--.bc
388  gfx902-amdgcn--amdhsa.bc
389  gfx902-amdgcn-mesa-mesa3d.bc
390  gfx904-amdgcn--.bc
391  gfx904-amdgcn--amdhsa.bc
392  gfx904-amdgcn-mesa-mesa3d.bc
393  gfx906-amdgcn--.bc
394  gfx906-amdgcn--amdhsa.bc
395  gfx906-amdgcn-mesa-mesa3d.bc
396  hainan-amdgcn--.bc
397  hainan-amdgcn-mesa-mesa3d.bc
398  hawaii-amdgcn--.bc
399  hawaii-amdgcn--amdhsa.bc
400  hawaii-amdgcn-mesa-mesa3d.bc
401  hemlock-r600--.bc
402  iceland-amdgcn--.bc
403  iceland-amdgcn--amdhsa.bc
404  iceland-amdgcn-mesa-mesa3d.bc
405  juniper-r600--.bc
406  kabini-amdgcn--.bc
407  kabini-amdgcn--amdhsa.bc
408  kabini-amdgcn-mesa-mesa3d.bc
409  kaveri-amdgcn--.bc
410  kaveri-amdgcn--amdhsa.bc
411  kaveri-amdgcn-mesa-mesa3d.bc
412  mullins-amdgcn--.bc
413  mullins-amdgcn--amdhsa.bc
414  mullins-amdgcn-mesa-mesa3d.bc
415  nvptx--nvidiacl.bc
416  nvptx64--nvidiacl.bc
417  oland-amdgcn--.bc
418  oland-amdgcn-mesa-mesa3d.bc
419  palm-r600--.bc
420  pitcairn-amdgcn--.bc
421  pitcairn-amdgcn-mesa-mesa3d.bc
422  polaris10-amdgcn--.bc
423  polaris10-amdgcn--amdhsa.bc
424  polaris10-amdgcn-mesa-mesa3d.bc
425  polaris11-amdgcn--.bc
426  polaris11-amdgcn--amdhsa.bc
427  polaris11-amdgcn-mesa-mesa3d.bc
428  redwood-r600--.bc
429  stoney-amdgcn--.bc
430  stoney-amdgcn--amdhsa.bc
431  stoney-amdgcn-mesa-mesa3d.bc
432  subnormal_disable.bc
433  subnormal_use_default.bc
434  sumo-r600--.bc
435  sumo2-r600--.bc
436  tahiti-amdgcn--.bc
437  tahiti-amdgcn-mesa-mesa3d.bc
438  tonga-amdgcn--.bc
439  tonga-amdgcn--amdhsa.bc
440  tonga-amdgcn-mesa-mesa3d.bc
441  turks-r600--.bc
442  verde-amdgcn--.bc
443  verde-amdgcn-mesa-mesa3d.bc
444 lib/pkgconfig/libclc.pc
445
446
447 [FILE:1657:patches/patch-configure.py]
448 The LLVM_TOOL_LINK builds a helper tool named utils/prepare-builtins that
449 requires libedit which in turn pulls in libtinfo (part of libncurses).
450 In order to support builds on platforms without base ncurses (e.g. DF),
451 require base libedit.  This requires an additional -L LDFLAGS to search
452 ${LOCALBASE}/lib for the needed libs.  (prepare-builtins is not installed)
453
454 --- configure.py.orig   2019-01-29 16:37:27 UTC
455 +++ configure.py
456 @@ -141,7 +141,8 @@ b.rule("OPT", command = llvm_opt + " -O3
457         description = 'OPT $out')
458  
459  c_compiler_rule(b, "LLVM_TOOL_CXX", 'CXX', cxx_compiler, llvm_cxxflags)
460 -b.rule("LLVM_TOOL_LINK", cxx_compiler + " -o $out $in %s" % llvm_core_libs + " -Wl,-rpath %s" % llvm_libdir, 'LINK $out')
461 +b.rule("LLVM_TOOL_LINK", cxx_compiler + " -o $out $in %s" % llvm_core_libs + 
462 +  " -lpthread -L" + prefix + "/lib -Wl,-rpath " + prefix + "/lib -Wl,-rpath %s" % llvm_libdir, 'LINK $out')
463  
464  prepare_builtins = os.path.join('utils', 'prepare-builtins')
465  b.build(os.path.join('utils', 'prepare-builtins.o'), "LLVM_TOOL_CXX",
466 @@ -300,7 +301,7 @@ install_cmd = ' && '.join(['mkdir -p ${D
467                             {'src': file,
468                              'dst': libexecdir}
469                             for (file, dest) in install_files_bc])
470 -install_cmd = ' && '.join(['%(old)s && mkdir -p ${DESTDIR}/%(dst)s && cp -r %(srcdir)s/generic/include/clc ${DESTDIR}/%(dst)s' %
471 +install_cmd = ' && '.join(['%(old)s && mkdir -p ${DESTDIR}/%(dst)s && cp -r generic/include/clc ${DESTDIR}/%(dst)s' %
472                             {'old': install_cmd,
473                              'dst': includedir,
474                              'srcdir': srcdir}])
475