diff --git a/srcpkgs/tbb/template b/srcpkgs/tbb/template index 9862706db1..ed07b4f357 100644 --- a/srcpkgs/tbb/template +++ b/srcpkgs/tbb/template @@ -1,12 +1,13 @@ # Template file for 'tbb' pkgname=tbb version=2019.U5 -revision=1 +revision=2 archs="i686* x86_64* armv7l* aarch64* ppc64le* ppc64" # version rewrite: 2017_U7 (upstream) => 2017.7 (xbps) _ver=${version/./_} wrksrc="${pkgname}-${_ver}" build_style=gnu-makefile +hostmakedepends="cmake" short_desc="Intel Threading Building Blocks" maintainer="Andrea Brancaleoni " license="Apache-2.0" @@ -42,6 +43,13 @@ do_install() { vcopy build/linux_*/*.so* usr/lib vmkdir usr/include/tbb vcopy include/tbb/* usr/include/tbb + + cmake \ + -DINSTALL_DIR=$DESTDIR/usr/lib/cmake/TBB \ + -DSYSTEM_NAME=Linux \ + -DLIB_REL_PATH=../.. \ + -DINC_REL_PATH=../../../include \ + -P cmake/tbb_config_installer.cmake } tbb-devel_package() { @@ -50,5 +58,6 @@ tbb-devel_package() { pkg_install() { vmove usr/include vmove "usr/lib/*.so" + vmove usr/lib/cmake } }