diff options
author | Jan Vesely <jano.vesely@gmail.com> | 2018-06-10 14:19:40 -0400 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2018-06-14 16:32:11 +0200 |
commit | 53142540fae7f05ef82cc6c4e31c5f530c9d8952 (patch) | |
tree | 68db83daf85da1a515837185365f9b435429322a /dev-libs/libclc | |
parent | dev-embedded/platformio: New package (diff) | |
download | gentoo-53142540fae7f05ef82cc6c4e31c5f530c9d8952.tar.gz gentoo-53142540fae7f05ef82cc6c4e31c5f530c9d8952.tar.bz2 gentoo-53142540fae7f05ef82cc6c4e31c5f530c9d8952.zip |
dev-libs/libclc: Add 0.2.0_pre20180610 snapshot
Notable upstream changes:
* all fp32 and fp64 builtins implemented
* early support for cl_khr_fp16 builtins
* math builtins pass CTS (AMDGCN)^
* CTS complaint sw fma implementation for ASICs that lack ISA support for fma operation
^other than asin
Diffstat (limited to 'dev-libs/libclc')
-rw-r--r-- | dev-libs/libclc/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/libclc/libclc-0.2.0_pre20180610.ebuild | 74 |
2 files changed, 75 insertions, 0 deletions
diff --git a/dev-libs/libclc/Manifest b/dev-libs/libclc/Manifest index cb73cd5ce1d1..6b8bc1b2d54e 100644 --- a/dev-libs/libclc/Manifest +++ b/dev-libs/libclc/Manifest @@ -2,3 +2,4 @@ DIST libclc-0.2.0_pre20160921.tar.gz 127817 BLAKE2B 831bdc4a82d50ec33eb3199ef707 DIST libclc-0.2.0_pre20170118.tar.gz 130793 BLAKE2B 5083e821c5a0e481d3b6b638ac93c8c936972dcdb78e20a86de5f6873f300d7065e8aba242b332d4a91d494bb3a9e67f1f60a566bfbef78891d7c438bebbf41c SHA512 d94a58ebcafb7bbdbcded84574676537ae7b4ba86c7c2270cc1cd7aa3113104e018e53396b570e821c2fd473b6dd63677f59d990e36e15a7cdb43cdb96cd058c DIST libclc-0.2.0_pre20170929.tar.gz 138719 BLAKE2B 05a3d47626a5e1918f32510b1254f846c88c642f60920377dda73568d34656fecd53872ebc01114b2cc8b2161b196c89efe119bfd785875f723fcee4c1ce3662 SHA512 08f3a21fb1dc103a3b33980c420506fd142294b2d8b4a3eeb100ea55036fb87b9740a2489a0a9a5793d71ebb157e6f3ad7854d1916fc1fa472de72374cdeaea3 DIST libclc-0.2.0_pre20180319.tar.gz 161608 BLAKE2B b8e4f2d475c0425cbe5b41a5ba3b7b40d14c045f5c23d007e87cdfedc7a01a8317218e5f3b881e944256f04b9fb68a130bff2a137e51cb961b3d5bb7f2e2261d SHA512 5a4130eeb416f90901b66708adc17c825baa757d00d983a12e217f36503e4ed5d208f3a49cc26d7f9b71134ee3d258748153bf52cf7769bcbc06ec0510087a36 +DIST libclc-0.2.0_pre20180610.tar.gz 170102 BLAKE2B 3f8c33a9961db34e68cebc328a88a71173000972b5540d099fa79fe89fd186b7f2f8791a86b45b1be135383d26a92fd4ccdc2827b5620b5f86f0b48467fc092f SHA512 0c75c3e7b81754c175c5c43614ad313cda2fa09a1865794c904675b8d2527f78ffa357178f7d4a471b52ac3d7d96b0184303439b69060df4bf482a01871fcb95 diff --git a/dev-libs/libclc/libclc-0.2.0_pre20180610.ebuild b/dev-libs/libclc/libclc-0.2.0_pre20180610.ebuild new file mode 100644 index 000000000000..ee4e3e25904f --- /dev/null +++ b/dev-libs/libclc/libclc-0.2.0_pre20180610.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python2_7 python3_4 python3_5 python3_6 ) + +EGIT_REPO_URI="https://llvm.org/git/${PN}.git + https://github.com/llvm-mirror/${PN}.git" +EGIT_COMMIT="96627043299f52bf08f6a68aa6d00b8037a0a2b0" + +if [[ ${PV} = 9999* ]]; then + GIT_ECLASS="git-r3" + EXPERIMENTAL="true" +else + GIT_ECLASS="" + S="${WORKDIR}/libclc-${EGIT_COMMIT}" +fi + +inherit llvm prefix python-any-r1 toolchain-funcs ${GIT_ECLASS} + +DESCRIPTION="OpenCL C library" +HOMEPAGE="http://libclc.llvm.org/" + +if [[ ${PV} = 9999* ]]; then + SRC_URI="${SRC_PATCHES}" +else + SRC_URI="https://github.com/llvm-mirror/libclc/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz + ${SRC_PATCHES}" +fi + +LICENSE="|| ( MIT BSD )" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="" + +RDEPEND=" + || ( + sys-devel/clang:7 + sys-devel/clang:6 + sys-devel/clang:5 + sys-devel/clang:4 + >=sys-devel/clang-3.9:0 + )" +DEPEND="${RDEPEND} + ${PYTHON_DEPS}" + +LLVM_MAX_SLOT=7 + +llvm_check_deps() { + has_version "sys-devel/clang:${LLVM_SLOT}" +} + +src_prepare() { + default + if use prefix; then + hprefixify configure.py + fi +} + +pkg_setup() { + # we do not need llvm_pkg_setup + python-any-r1_pkg_setup +} + +src_configure() { + ./configure.py \ + --with-cxx-compiler="$(tc-getCXX)" \ + --with-llvm-config="$(get_llvm_prefix "${LLVM_MAX_SLOT}")/bin/llvm-config" \ + --prefix="${EPREFIX}/usr" || die +} + +src_compile() { + emake VERBOSE=1 +} |