# Template file for 'tbb'
pkgname=tbb
version=4.3
revision=1
_subversion=20150209
only_for_archs="i686 x86_64"
wrksrc="$pkgname${version//.}_${_subversion}oss"
build_style=gnu-makefile
short_desc="Intel Threading Building Blocks"
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
license="GPL-2"
homepage="http://www.threadingbuildingblocks.org"
distfiles="https://www.threadingbuildingblocks.org/sites/default/files/software_releases/source/tbb43_${_subversion}oss_src.tgz"
checksum=ac5d6fbb3fc3010f0ecb82609d9789c72f6a167c11341d8f8b2e30f8e02feb2f

do_install() {
	vmkdir usr/lib
	vcopy build/linux_*/*.so* usr/lib
	vmkdir usr/include/tbb
	vcopy include/tbb/* usr/include/tbb
}

tbb-devel_package() {
	depends="${sourcepkg}>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove "usr/lib/*.so"
	}
}
