libclc-git: update to a newer snapshot; merge useless subpkgs.
This commit is contained in:
parent
6e1111b036
commit
f000c9e786
|
@ -1,41 +1,27 @@
|
||||||
# Template file for 'libclc-git'
|
# Template file for 'libclc-git'
|
||||||
pkgname=libclc-git
|
pkgname=libclc-git
|
||||||
version=20140918
|
version=20141115
|
||||||
revision=2
|
revision=1
|
||||||
|
build_style=configure
|
||||||
hostmakedepends="git"
|
hostmakedepends="git"
|
||||||
makedepends="python libffi-devel zlib-devel llvm clang ncurses-devel"
|
makedepends="python libffi-devel zlib-devel llvm clang ncurses-devel"
|
||||||
depends="libclc-ptx-git libclc-r600-git"
|
|
||||||
short_desc="Open implementation of the OpenCL C programming language"
|
short_desc="Open implementation of the OpenCL C programming language"
|
||||||
maintainer="John Galt <johngaltfirstrun@gmail.com>"
|
maintainer="John Galt <johngaltfirstrun@gmail.com>"
|
||||||
license="BSD/MIT"
|
license="BSD/MIT"
|
||||||
homepage="http://libclc.llvm.org"
|
homepage="http://libclc.llvm.org"
|
||||||
provides="libclc-${version}_${revision}"
|
provides="libclc-${version}_${revision}"
|
||||||
replaces="libclc>=0"
|
replaces="libclc>=0 libclc-ptx-git>=0 libclc-r600-git>=0"
|
||||||
only_for_archs="i686 x86_64"
|
only_for_archs="i686 x86_64"
|
||||||
|
|
||||||
do_fetch() {
|
do_fetch() {
|
||||||
# Upstream libclc git is http://llvm.org/git/libclc.git, however
|
local url="http://llvm.org/git/libclc.git"
|
||||||
# we use a minimal git-core for git:// protocol.
|
|
||||||
local url="git://github.com/llvm-mirror/libclc"
|
|
||||||
local sha=8d5e696d1db64625bbb6efe2c7784bc994876a15
|
|
||||||
msg_normal "Fetching source from $url ...\n"
|
msg_normal "Fetching source from $url ...\n"
|
||||||
git clone ${url} ${wrksrc}
|
git clone ${url} ${wrksrc}
|
||||||
cd ${wrksrc}
|
|
||||||
git reset --hard ${sha}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
do_configure() {
|
do_configure() {
|
||||||
./configure.py --prefix=/usr
|
./configure.py --prefix=/usr
|
||||||
}
|
}
|
||||||
|
|
||||||
do_build() {
|
|
||||||
make ${makejobs}
|
|
||||||
}
|
|
||||||
|
|
||||||
do_install() {
|
|
||||||
make DESTDIR=$DESTDIR install
|
|
||||||
}
|
|
||||||
|
|
||||||
libclc-devel-git_package() {
|
libclc-devel-git_package() {
|
||||||
short_desc+=" (development files)"
|
short_desc+=" (development files)"
|
||||||
provides="libclc-devel-${version}_${revision}"
|
provides="libclc-devel-${version}_${revision}"
|
||||||
|
@ -45,23 +31,3 @@ libclc-devel-git_package() {
|
||||||
vmove usr/include
|
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"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
libclc-git
|
|
|
@ -1 +0,0 @@
|
||||||
libclc-git
|
|
Loading…
Reference in New Issue