blob: 9067c8bd04c82951819a0cb47e7a5b2fcd29e1e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# This file is part of MXE. See LICENSE.md for licensing information.
PKG := intel-tbb
$(PKG)_WEBSITE := https://www.threadingbuildingblocks.org
$(PKG)_DESCR := Intel Threading Building Blocks
$(PKG)_IGNORE :=
$(PKG)_VERSION := c28c8be
$(PKG)_CHECKSUM := a9a0f059703f9c018c83ec52bc10eb31d1e32da37f464a7de7fdcec80f23c645
$(PKG)_GH_CONF := wjakob/tbb/master
$(PKG)_DEPS := gcc
define $(PKG)_BUILD
# build and install the library
cd '$(BUILD_DIR)' && $(TARGET)-cmake '$(SOURCE_DIR)' \
-DTBB_BUILD_SHARED=$(CMAKE_SHARED_BOOL) \
-DTBB_BUILD_STATIC=$(CMAKE_STATIC_BOOL) \
-DTBB_BUILD_TESTS=OFF
$(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)'
$(MAKE) -C '$(BUILD_DIR)' -j 1 install
# create pkg-config files
$(INSTALL) -d '$(PREFIX)/$(TARGET)/lib/pkgconfig'
(echo 'Name: $(PKG)'; \
echo 'Version: $($(PKG)_VERSION)'; \
echo 'Description: intel-tbb'; \
echo 'Libs: $(addsuffix $(if $(BUILD_STATIC),_static),-ltbb -ltbbmalloc -ltbbmalloc_proxy)';) \
> '$(PREFIX)/$(TARGET)/lib/pkgconfig/$(PKG).pc'
# compile test
'$(TARGET)-g++' -W -Wall \
'$(SOURCE_DIR)/examples/test_all/fibonacci/Fibonacci.cpp' \
-o '$(PREFIX)/$(TARGET)/bin/test-$(PKG).exe' \
`'$(TARGET)-pkg-config' $(PKG) --cflags --libs`
endef
|