summaryrefslogtreecommitdiff
path: root/packages/dev-libs/libclc/libclc.exlib
blob: 3d6b76291d15578e20a6e53adce4b54c5cb825df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Copyright 2013-2016 Niels Ole Salscheider <olesalscheider@exherbo.org>
# 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
}