libclc: rename from libclc-git + update to 11.0.0
Use the libclc src provided by llvm-project. Adopt.
This commit is contained in:
parent
7739f17bb4
commit
180e4482a2
|
@ -1,29 +0,0 @@
|
|||
# Template file for 'libclc-git'
|
||||
pkgname=libclc-git
|
||||
version=20181127
|
||||
revision=4
|
||||
_git_hash=1ecb16dd7d8b8e9151027faab996f27b2ac508e3
|
||||
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"
|
||||
archs=noarch
|
||||
distfiles="https://github.com/llvm-mirror/libclc/archive/${_git_hash}.tar.gz>${pkgname}-${version}.tar.gz"
|
||||
checksum=d9cf73a5d1ab05995086e7a3a0fd6c06172ee59cdd2512c395caae99b9fce453
|
||||
|
||||
pre_build() {
|
||||
sed -i Makefile \
|
||||
-e"s;/usr/bin/clang++;g++;g" \
|
||||
-e"s;-mtune=i686;;g"
|
||||
}
|
||||
post_install() {
|
||||
vlicense LICENSE.TXT
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
# Template file for 'libclc'
|
||||
pkgname=libclc
|
||||
version=11.0.0
|
||||
revision=1
|
||||
wrksrc="${pkgname}-${version}.src"
|
||||
build_style=cmake
|
||||
configure_args="-DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release"
|
||||
hostmakedepends="cmake clang llvm python3 libedit-devel libffi-devel
|
||||
ncurses-devel zlib-devel"
|
||||
short_desc="Open implementation of the OpenCL C programming language"
|
||||
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
|
||||
license="BSD-3-Clause, MIT"
|
||||
homepage="https://libclc.llvm.org"
|
||||
distfiles="https://github.com/llvm/llvm-project/releases/download/llvmorg-${version}/libclc-${version}.src.tar.xz"
|
||||
checksum=5a0a2f67b85ede09b2f08c071c5b0b6b5ad56bfb00b39a22c369afcc613c42ee
|
||||
replaces="libclc-git>=0"
|
||||
|
||||
do_configure() {
|
||||
# We really do a native build.
|
||||
# The outcome is just header files.
|
||||
unset CC CXX LD CFLAGS CXXFLAGS LDFLAGS
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake ${configure_args} ..
|
||||
}
|
||||
|
||||
post_install() {
|
||||
vlicense LICENSE.TXT
|
||||
}
|
Loading…
Reference in New Issue