2022-12-20 17:31:41 +03:00
|
|
|
distributable:
|
|
|
|
url: https://boostorg.jfrog.io/artifactory/main/release/{{ version }}/source/boost_{{version.major}}_{{version.minor}}_{{version.patch}}.tar.gz
|
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
versions:
|
|
|
|
github: boostorg/boost
|
|
|
|
strip: /^boost-/
|
|
|
|
|
|
|
|
dependencies:
|
|
|
|
facebook.com/zstd: ^1
|
|
|
|
|
|
|
|
build:
|
2023-08-23 23:58:34 +03:00
|
|
|
script:
|
|
|
|
- ./bootstrap.sh --prefix={{ prefix }}
|
|
|
|
- ./b2 $ARGS
|
|
|
|
|
|
|
|
# boost.org has libs that end up with name @rpath/libboost_atomic.dylib (offset 24)
|
|
|
|
# so we need to add @loader_path to the rpath
|
|
|
|
- run: |
|
|
|
|
for LIB in *.dylib; do
|
|
|
|
install_name_tool -add_rpath @loader_path $LIB
|
|
|
|
done
|
|
|
|
working-directory: ${{prefix}}/lib
|
|
|
|
if: darwin
|
2023-04-28 03:44:39 +03:00
|
|
|
env:
|
|
|
|
ARGS:
|
|
|
|
- install
|
|
|
|
- --prefix={{ prefix }}
|
2023-08-21 01:11:02 +03:00
|
|
|
darwin:
|
|
|
|
ARGS:
|
|
|
|
- linkflags=-Wl,-headerpad_max_install_names
|
2023-08-17 04:00:33 +03:00
|
|
|
linux:
|
2023-04-28 03:44:39 +03:00
|
|
|
ARGS:
|
|
|
|
- cxxflags=-fPIC
|
|
|
|
- linkflags=-fPIC
|
2022-12-20 17:31:41 +03:00
|
|
|
|
|
|
|
test:
|
|
|
|
script: |
|
|
|
|
c++ test.cpp -std=c++14 -lboost_iostreams -lzstd
|
|
|
|
./a.out
|