| 1 | package=boost |
| 2 | $(package)_version=1.69.0 |
| 3 | $(package)_download_path=https://archives.boost.io/release/$($(package)_version)/source/ |
| 4 | $(package)_file_name=$(package)_$(subst .,_,$($(package)_version)).tar.gz |
| 5 | $(package)_sha256_hash=9a2c2819310839ea373f42d69e733c339b4e9a19deab6bfec448281554aa4dbb |
| 6 | $(package)_dependencies=libiconv |
| 7 | $(package)_patches=fix_aroptions.patch fix_arm_arch.patch |
| 8 | |
| 9 | define $(package)_set_vars |
| 10 | $(package)_config_opts_release=variant=release |
| 11 | $(package)_config_opts_debug=variant=debug |
| 12 | $(package)_config_opts+=--layout=system --user-config=user-config.jam |
| 13 | $(package)_config_opts+=threading=multi link=static -sNO_BZIP2=1 -sNO_ZLIB=1 |
| 14 | $(package)_config_opts_linux=threadapi=pthread runtime-link=shared |
| 15 | $(package)_config_opts_android=threadapi=pthread runtime-link=static target-os=android |
| 16 | $(package)_config_opts_darwin=--toolset=darwin runtime-link=shared |
| 17 | $(package)_config_opts_mingw32=binary-format=pe target-os=windows threadapi=win32 runtime-link=static |
| 18 | $(package)_config_opts_x86_64_mingw32=address-model=64 |
| 19 | $(package)_config_opts_i686_mingw32=address-model=32 |
| 20 | $(package)_config_opts_i686_linux=address-model=32 architecture=x86 |
| 21 | $(package)_toolset_$(host_os)=gcc |
| 22 | $(package)_archiver_$(host_os)=$($(package)_ar) |
| 23 | $(package)_toolset_darwin=darwin |
| 24 | $(package)_archiver_darwin=$($(package)_libtool) |
| 25 | $(package)_config_libraries=chrono,filesystem,program_options,system,thread,test,date_time,regex,serialization,locale |
| 26 | $(package)_cxxflags=-std=c++11 |
| 27 | $(package)_cxxflags_linux=-fPIC |
| 28 | $(package)_cxxflags_freebsd=-fPIC |
| 29 | endef |
| 30 | |
| 31 | define $(package)_preprocess_cmds |
| 32 | patch -p1 < $($(package)_patch_dir)/fix_aroptions.patch &&\ |
| 33 | patch -p1 < $($(package)_patch_dir)/fix_arm_arch.patch &&\ |
| 34 | echo "using $(boost_toolset_$(host_os)) : : $($(package)_cxx) : <cxxflags>\"$($(package)_cxxflags) $($(package)_cppflags)\" <linkflags>\"$($(package)_ldflags)\" <archiver>\"$(boost_archiver_$(host_os))\" <arflags>\"$($(package)_arflags)\" <striper>\"$(host_STRIP)\" <ranlib>\"$(host_RANLIB)\" <rc>\"$(host_WINDRES)\" : ;" > user-config.jam |
| 35 | endef |
| 36 | |
| 37 | define $(package)_config_cmds |
| 38 | ./bootstrap.sh --without-icu --with-libraries=$(boost_config_libraries) |
| 39 | endef |
| 40 | |
| 41 | define $(package)_build_cmds |
| 42 | ./b2 -d2 -j2 -d1 --prefix=$($(package)_staging_prefix_dir) $($(package)_config_opts) stage |
| 43 | endef |
| 44 | |
| 45 | define $(package)_stage_cmds |
| 46 | ./b2 -d0 -j4 --prefix=$($(package)_staging_prefix_dir) $($(package)_config_opts) install |
| 47 | endef |