depends: boost: Split into non-/native packages
This commit is contained in:
3 files changed
+26
-3
No files matched your search
@@ -3,6 +3,7 @@ $(package)_version=1_71_0
|
|||||||
$(package)_download_path=https://dl.bintray.com/boostorg/release/$(subst _,.,$($(package)_version))/source/
|
$(package)_download_path=https://dl.bintray.com/boostorg/release/$(subst _,.,$($(package)_version))/source/
|
||||||
$(package)_file_name=boost_$($(package)_version).tar.bz2
|
$(package)_file_name=boost_$($(package)_version).tar.bz2
|
||||||
$(package)_sha256_hash=d73a8da01e8bf8c7eda40b4c84915071a8c8a0df4a6734537ddde4a8580524ee
|
$(package)_sha256_hash=d73a8da01e8bf8c7eda40b4c84915071a8c8a0df4a6734537ddde4a8580524ee
|
||||||
|
$(package)_dependencies=native_b2
|
||||||
|
|
||||||
define $(package)_set_vars
|
define $(package)_set_vars
|
||||||
$(package)_config_opts_release=variant=release
|
$(package)_config_opts_release=variant=release
|
||||||
@@ -36,13 +37,13 @@ define $(package)_preprocess_cmds
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
define $(package)_config_cmds
|
define $(package)_config_cmds
|
||||||
./bootstrap.sh --without-icu --with-libraries=$($(package)_config_libraries) --with-toolset=$($(package)_toolset_$(host_os))
|
./bootstrap.sh --without-icu --with-libraries=$($(package)_config_libraries) --with-toolset=$($(package)_toolset_$(host_os)) --with-bjam=b2
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define $(package)_build_cmds
|
define $(package)_build_cmds
|
||||||
./b2 -d2 -j2 -d1 --prefix=$($(package)_staging_prefix_dir) $($(package)_config_opts) toolset=$($(package)_toolset_$(host_os)) stage
|
b2 -d2 -j2 -d1 --prefix=$($(package)_staging_prefix_dir) $($(package)_config_opts) toolset=$($(package)_toolset_$(host_os)) stage
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define $(package)_stage_cmds
|
define $(package)_stage_cmds
|
||||||
./b2 -d0 -j4 --prefix=$($(package)_staging_prefix_dir) $($(package)_config_opts) toolset=$($(package)_toolset_$(host_os)) install
|
b2 -d0 -j4 --prefix=$($(package)_staging_prefix_dir) $($(package)_config_opts) toolset=$($(package)_toolset_$(host_os)) install
|
||||||
endef
|
endef
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
package=native_b2
|
||||||
|
$(package)_version=$(boost_version)
|
||||||
|
$(package)_download_path=$(boost_download_path)
|
||||||
|
$(package)_file_name=$(boost_file_name)
|
||||||
|
$(package)_sha256_hash=$(boost_sha256_hash)
|
||||||
|
$(package)_build_subdir=tools/build/src/engine
|
||||||
|
ifneq (,$(findstring clang,$($(package)_cxx)))
|
||||||
|
$(package)_toolset_$(host_os)=clang
|
||||||
|
else
|
||||||
|
$(package)_toolset_$(host_os)=gcc
|
||||||
|
endif
|
||||||
|
|
||||||
|
define $(package)_build_cmds
|
||||||
|
CXX="$($(package)_cxx)" CXXFLAGS="$($(package)_cxxflags)" ./build.sh "$($(package)_toolset_$(host_os))"
|
||||||
|
endef
|
||||||
|
|
||||||
|
define $(package)_stage_cmds
|
||||||
|
mkdir -p "$($(package)_staging_prefix_dir)"/bin/ && \
|
||||||
|
cp b2 "$($(package)_staging_prefix_dir)"/bin/
|
||||||
|
endef
|
||||||
@@ -22,6 +22,8 @@ multiprocess_native_packages = native_libmultiprocess native_capnp
|
|||||||
|
|
||||||
darwin_native_packages = native_ds_store native_mac_alias
|
darwin_native_packages = native_ds_store native_mac_alias
|
||||||
|
|
||||||
|
$(host_arch)_$(host_os)_native_packages += native_b2
|
||||||
|
|
||||||
ifneq ($(build_os),darwin)
|
ifneq ($(build_os),darwin)
|
||||||
darwin_native_packages += native_cctools native_cdrkit native_libdmg-hfsplus
|
darwin_native_packages += native_cctools native_cdrkit native_libdmg-hfsplus
|
||||||
endif
|
endif
|
||||||
Reference in new issue
Block a user