tbb: Enabled cmake Config file installation for devel

This commit is contained in:
Aloz1 2019-04-25 00:13:02 +10:00 committed by maxice8
parent a355b0ddb3
commit d20c16fb7d

View file

@ -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 <abc@pompel.me>"
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
}
}