void-packages/srcpkgs/tbb/template

49 lines
1.3 KiB
Bash
Raw Normal View History

2015-07-21 21:25:27 +00:00
# Template file for 'tbb'
pkgname=tbb
2016-03-19 13:33:25 +00:00
version=4.4.20160316
2015-11-26 21:14:54 +00:00
revision=1
2015-08-17 09:40:29 +00:00
_lv="${version%.*}"
_lv="${_lv//.}"
_rv="${version##*.}"
wrksrc="$pkgname${_lv}_${_rv}oss"
2015-07-21 21:25:27 +00:00
build_style=gnu-makefile
short_desc="Intel Threading Building Blocks"
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
license="GPL-2"
homepage="http://www.threadingbuildingblocks.org"
2015-08-17 09:40:29 +00:00
distfiles="https://www.threadingbuildingblocks.org/sites/default/files/software_releases/source/tbb${_lv}_${_rv}oss_src.tgz"
2016-03-19 13:33:25 +00:00
checksum=b7612dfd1f4809b0b2317723ae8d0cacccba71251ebea1c59f2deab8f1baa34f
2015-07-21 21:25:27 +00:00
2015-09-01 08:35:00 +00:00
only_for_archs="i686-musl x86_64-musl armv7l-musl aarch64-musl i686 x86_64 armv7l aarch64"
2015-09-01 08:28:31 +00:00
post_extract() {
sed -i 's|CPLUS = g..|CPLUS = $(CXX)|g' build/linux.gcc.inc
sed -i 's|CONLY = gcc|CONLY = $(CC)|g' build/linux.gcc.inc
if [ "$CROSS_BUILD" ]; then
sed -i '/-m64/d' build/linux.gcc.inc
sed -i '/-mrtm/d' build/linux.gcc.inc
fi
case "$XBPS_TARGET_MACHINE" in
*-musl)
sed -e "s@#define MALLOC_UNIXLIKE_OVERLOAD_ENABLED __linux__@@" \
-i src/tbbmalloc/proxy.h
;;
esac
}
2015-07-21 21:25:27 +00:00
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"
}
}