File tree Expand file tree Collapse file tree 3 files changed +26
-3
lines changed Expand file tree Collapse file tree 3 files changed +26
-3
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ $(package)_version=1_71_0
3
3
$(package)_download_path =https://dl.bintray.com/boostorg/release/$(subst _,.,$($(package ) _version) ) /source/
4
4
$(package)_file_name =boost_$($(package ) _version) .tar.bz2
5
5
$(package)_sha256_hash =d73a8da01e8bf8c7eda40b4c84915071a8c8a0df4a6734537ddde4a8580524ee
6
+ $(package)_dependencies =native_b2
6
7
7
8
define $(package)_set_vars
8
9
$(package ) _config_opts_release=variant=release
@@ -36,13 +37,13 @@ define $(package)_preprocess_cmds
36
37
endef
37
38
38
39
define $(package)_config_cmds
39
- ./bootstrap.sh --without-icu --with-libraries=$($(package ) _config_libraries) --with-toolset=$($(package ) _toolset_$(host_os ) )
40
+ ./bootstrap.sh --without-icu --with-libraries=$($(package ) _config_libraries) --with-toolset=$($(package ) _toolset_$(host_os ) ) --with-bjam=b2
40
41
endef
41
42
42
43
define $(package)_build_cmds
43
- ./ b2 -d2 -j2 -d1 --prefix=$($(package ) _staging_prefix_dir) $($(package ) _config_opts) toolset=$($(package ) _toolset_$(host_os ) ) stage
44
+ b2 -d2 -j2 -d1 --prefix=$($(package ) _staging_prefix_dir) $($(package ) _config_opts) toolset=$($(package ) _toolset_$(host_os ) ) stage
44
45
endef
45
46
46
47
define $(package)_stage_cmds
47
- ./ b2 -d0 -j4 --prefix=$($(package ) _staging_prefix_dir) $($(package ) _config_opts) toolset=$($(package ) _toolset_$(host_os ) ) install
48
+ b2 -d0 -j4 --prefix=$($(package ) _staging_prefix_dir) $($(package ) _config_opts) toolset=$($(package ) _toolset_$(host_os ) ) install
48
49
endef
Original file line number Diff line number Diff line change
1
+ package =native_b2
2
+ $(package)_version =$(boost_version )
3
+ $(package)_download_path =$(boost_download_path )
4
+ $(package)_file_name =$(boost_file_name )
5
+ $(package)_sha256_hash =$(boost_sha256_hash )
6
+ $(package)_build_subdir =tools/build/src/engine
7
+ ifneq (,$(findstring clang,$($(package ) _cxx) ) )
8
+ $(package)_toolset_$(host_os) =clang
9
+ else
10
+ $(package)_toolset_$(host_os) =gcc
11
+ endif
12
+
13
+ define $(package)_build_cmds
14
+ CXX="$($(package ) _cxx) " CXXFLAGS="$($(package ) _cxxflags) " ./build.sh "$($(package ) _toolset_$(host_os ) ) "
15
+ endef
16
+
17
+ define $(package)_stage_cmds
18
+ mkdir -p "$($(package ) _staging_prefix_dir) "/bin/ && \
19
+ cp b2 "$($(package ) _staging_prefix_dir) "/bin/
20
+ endef
Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ multiprocess_native_packages = native_libmultiprocess native_capnp
22
22
23
23
darwin_native_packages = native_ds_store native_mac_alias
24
24
25
+ $(host_arch)_$(host_os)_native_packages += native_b2
26
+
25
27
ifneq ($(build_os ) ,darwin)
26
28
darwin_native_packages += native_cctools native_cdrkit native_libdmg-hfsplus
27
29
endif
You can’t perform that action at this time.
0 commit comments