1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
4 VERSION= 0.4.0.20190527
8 SDESC[standard]= Required library functions for OpenCL C language
9 HOMEPAGE= http://libclc.llvm.org/
13 SITES[main]= GITHUB/llvm-mirror:libclc:9f6204e
14 DISTFILE[1]= generated:main
16 SPKGS[standard]= single
18 OPTIONS_AVAILABLE= none
19 OPTIONS_STANDARD= none
21 BUILD_DEPENDS= libedit:single:standard
23 USES= python:build gmake cmake:insource clang:keepcc
25 LICENSE= CUSTOM1:single
26 LICENSE_NAME= CUSTOM1:"LLVM Release License"
27 LICENSE_FILE= CUSTOM1:{{WRKSRC}}/LICENCE.TXT
30 FPC_EQUIVALENT= devel/libclc
32 MAKE_ENV= MAKE={{GMAKE}}
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
43 if [ -n "${BUILD_WITH_CCACHE}" ]; then \
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 ;\
51 (cd ${WRKSRC} && ${PYTHON_CMD} configure.py ${CONFIGURE_ARGS} \
53 --pkgconfigdir=${PREFIX}/lib/pkgconfig \
54 --with-llvm-config=${LOCALBASE}/bin/llvm-config \
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:
63 Libclc is intended to be used with the Clang compiler's OpenCL frontend
67 8004c3a075d715cff6780c8ffe04c9f798dadf48bd375bdd6d98adabed04cd55 176995 llvm-mirror-libclc-9f6204e.tar.gz
70 [FILE:5802:manifests/plist.single]
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
102 include/clc/cl_khr_global_int32_base_atomics/
109 include/clc/cl_khr_global_int32_extended_atomics/
115 include/clc/cl_khr_int64_base_atomics/
122 include/clc/cl_khr_int64_extended_atomics/
128 include/clc/cl_khr_local_int32_base_atomics/
135 include/clc/cl_khr_local_int32_extended_atomics/
153 include/clc/explicit_fence/explicit_memory_fence.h
154 include/clc/float/definitions.h
155 include/clc/geometric/
322 include/clc/relational/
355 include/clc/synchronization/
358 include/clc/workitem/
372 bonaire-amdgcn--amdhsa.bc
373 bonaire-amdgcn-mesa-mesa3d.bc
376 carrizo-amdgcn--amdhsa.bc
377 carrizo-amdgcn-mesa-mesa3d.bc
382 fiji-amdgcn--amdhsa.bc
383 fiji-amdgcn-mesa-mesa3d.bc
385 gfx900-amdgcn--amdhsa.bc
386 gfx900-amdgcn-mesa-mesa3d.bc
388 gfx902-amdgcn--amdhsa.bc
389 gfx902-amdgcn-mesa-mesa3d.bc
391 gfx904-amdgcn--amdhsa.bc
392 gfx904-amdgcn-mesa-mesa3d.bc
394 gfx906-amdgcn--amdhsa.bc
395 gfx906-amdgcn-mesa-mesa3d.bc
397 hainan-amdgcn-mesa-mesa3d.bc
399 hawaii-amdgcn--amdhsa.bc
400 hawaii-amdgcn-mesa-mesa3d.bc
403 iceland-amdgcn--amdhsa.bc
404 iceland-amdgcn-mesa-mesa3d.bc
407 kabini-amdgcn--amdhsa.bc
408 kabini-amdgcn-mesa-mesa3d.bc
410 kaveri-amdgcn--amdhsa.bc
411 kaveri-amdgcn-mesa-mesa3d.bc
413 mullins-amdgcn--amdhsa.bc
414 mullins-amdgcn-mesa-mesa3d.bc
418 oland-amdgcn-mesa-mesa3d.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
430 stoney-amdgcn--amdhsa.bc
431 stoney-amdgcn-mesa-mesa3d.bc
433 subnormal_use_default.bc
437 tahiti-amdgcn-mesa-mesa3d.bc
439 tonga-amdgcn--amdhsa.bc
440 tonga-amdgcn-mesa-mesa3d.bc
443 verde-amdgcn-mesa-mesa3d.bc
444 lib/pkgconfig/libclc.pc
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)
454 --- configure.py.orig 2019-01-29 16:37:27 UTC
456 @@ -141,7 +141,8 @@ b.rule("OPT", command = llvm_opt + " -O3
457 description = 'OPT $out')
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')
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
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' %