void-packages/srcpkgs/libclc-git/template

67 lines
1.5 KiB
Plaintext

# Template file for 'libclc-git'
pkgname=libclc-git
version=20140723
revision=1
hostmakedepends="git"
makedepends="python libffi-devel zlib-devel llvm-git clang-git"
depends="libclc-ptx-git libclc-r600-git"
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"
do_fetch() {
# Upstream libclc git is http://llvm.org/git/libclc.git, however
# we use a minimal git-core for git:// protocol.
local url="git://github.com/llvm-mirror/libclc"
local sha=a63df067faf8a0ce2267c746aa9af928ae8c927b
msg_normal "Fetching source from $url ...\n"
git clone ${url} ${wrksrc}
cd ${wrksrc}
git reset --hard ${sha}
}
do_configure() {
./configure.py --prefix=/usr
}
do_build() {
make ${makejobs}
}
do_install() {
make DESTDIR=$DESTDIR install
}
libclc-devel-git_package() {
short_desc+=" (development files)"
provides="libclc-devel-${version}_${revision}"
replaces="libclc-devel>=0"
pkg_install() {
vmove usr/share
vmove usr/include
}
}
libclc-ptx-git_package() {
short_desc+=" - ptx support only"
provides="libclc-ptx-${version}_${revision}"
replaces="libclc-ptx>=0"
depends="libclc-devel"
pkg_install() {
vmove "usr/lib/clc/*ptx*.bc"
}
}
libclc-r600-git_package() {
short_desc+=" - r600 support only"
provides="libclc-r600-${version}_${revision}"
replaces="libclc-r600>=0"
depends="libclc-devel"
pkg_install() {
vmove "usr/lib/clc/*r600*.bc"
}
}