Files
void-packages/srcpkgs/libclc-git/template
Jürgen Buchmüller 8362f150aa libclc-git: update to 20160921
Use host g++ to build prepare-builtins. This fixes i686-musl and
also works for other target architectures because prepare-builtins
is not installed but a build time utility.

Newer versions of libclc require llvm-4.x which we do not yet have.
2017-04-14 08:13:00 +02:00

30 lines
897 B
Bash

# Template file for 'libclc-git'
pkgname=libclc-git
version=20160921
revision=1
_git_hash=520743b0b72862a987ead6213dc1a5321a2010f9
wrksrc="libclc-${_git_hash}"
build_style=configure
configure_script="./configure.py"
configure_args="--prefix=/usr"
hostmakedepends="clang libedit-devel libffi-devel llvm ncurses-devel
python zlib-devel"
short_desc="Open implementation of the OpenCL C programming language"
maintainer="John Galt <johngaltfirstrun@gmail.com>"
license="BSD/MIT"
homepage="http://libclc.llvm.org"
provides="libclc-${version}_${revision}"
replaces="libclc>=0"
noarch=yes
distfiles="https://github.com/llvm-mirror/libclc/archive/${_git_hash}.tar.gz>${pkgname}-${version}.tar.gz"
checksum=82c89bb15f79eaf525d283dda82403b213ef1a11b1ea9d843799fb04e08d190d
pre_build() {
sed -i Makefile \
-e"s;/usr/bin/clang++;g++;g" \
-e"s;-mtune=i686;;g"
}
post_install() {
vlicense LICENSE.TXT
}