2014-07-21 22:37:13 +00:00
|
|
|
# Template file for 'libclc-git'
|
|
|
|
pkgname=libclc-git
|
2014-09-20 10:20:34 +00:00
|
|
|
version=20140918
|
2014-10-04 22:04:38 +00:00
|
|
|
revision=2
|
2014-07-27 14:05:16 +00:00
|
|
|
hostmakedepends="git"
|
2014-10-04 22:10:14 +00:00
|
|
|
makedepends="python libffi-devel zlib-devel llvm clang ncurses-devel"
|
2014-07-21 22:37:13 +00:00
|
|
|
depends="libclc-ptx-git libclc-r600-git"
|
|
|
|
short_desc="Open implementation of the OpenCL C programming language"
|
2014-10-04 22:04:38 +00:00
|
|
|
maintainer="John Galt <johngaltfirstrun@gmail.com>"
|
2014-07-21 22:37:13 +00:00
|
|
|
license="BSD/MIT"
|
|
|
|
homepage="http://libclc.llvm.org"
|
|
|
|
provides="libclc-${version}_${revision}"
|
|
|
|
replaces="libclc>=0"
|
2014-08-22 09:14:39 +00:00
|
|
|
only_for_archs="i686 x86_64"
|
2014-07-21 22:37:13 +00:00
|
|
|
|
|
|
|
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"
|
2014-09-20 10:20:34 +00:00
|
|
|
local sha=8d5e696d1db64625bbb6efe2c7784bc994876a15
|
2014-07-21 22:37:13 +00:00
|
|
|
msg_normal "Fetching source from $url ...\n"
|
|
|
|
git clone ${url} ${wrksrc}
|
|
|
|
cd ${wrksrc}
|
2014-07-25 11:41:56 +00:00
|
|
|
git reset --hard ${sha}
|
2014-07-21 22:37:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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"
|
|
|
|
}
|
|
|
|
}
|