# Copyright 2013-2016 Niels Ole Salscheider # Distributed under the terms of the GNU General Public License v2 export_exlib_phases src_configure SCM_REPOSITORY="https://git.llvm.org/git/libclc.git" ever is_scm || SCM_REVISION="0c31bd5e8d277bee26f34162c246a321f086ad55" require scm-git SUMMARY="libclc is an implementation of the library requirements of the OpenCL C programming language" HOMEPAGE="https://libclc.llvm.org/" LICENCES="|| ( UoI-NCSA MIT )" SLOT="0" MYOPTIONS="" DEPENDENCIES=" build: dev-lang/python:* build+run: dev-lang/clang[>=3.9] dev-lang/llvm[>=3.9] " DEFAULT_SRC_COMPILE_PARAMS=( VERBOSE=1 ) libclc_src_configure() { edo ./configure.py \ --prefix=/usr \ --includedir=/usr/$(exhost --target)/include \ --libexecdir=/usr/$(exhost --target)/lib/clc \ --pkgconfigdir=/usr/$(exhost --target)/lib/pkgconfig edo sed 's/-mabm//g' -i Makefile edo sed 's/-mlwp//g' -i Makefile edo sed 's/-msahf//g' -i Makefile edo sed 's/-mprefer-avx128//g' -i Makefile edo sed 's/-mvzeroupper//g' -i Makefile edo sed 's/-mtls-dialect=gnu2//g' -i Makefile edo sed 's/-fabi-version=8//g' -i Makefile edo sed 's/-mfpmath=both//g' -i Makefile }