mirror of
https://github.com/ivabus/pantry
synced 2024-12-01 20:45:10 +03:00
cfc772130b
the change to fix-machos broke other things, and introduced too much complexity.
45 lines
1 KiB
YAML
45 lines
1 KiB
YAML
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:
|
|
dependencies:
|
|
tea.xyz/gx/cc: c99
|
|
tea.xyz/gx/make: '*'
|
|
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
|
|
env:
|
|
ARGS:
|
|
- install
|
|
- --prefix={{ prefix }}
|
|
darwin:
|
|
ARGS:
|
|
- linkflags=-Wl,-headerpad_max_install_names
|
|
linux:
|
|
ARGS:
|
|
- cxxflags=-fPIC
|
|
- linkflags=-fPIC
|
|
|
|
test:
|
|
dependencies:
|
|
tea.xyz/gx/cc: c99
|
|
script: |
|
|
c++ test.cpp -std=c++14 -lboost_iostreams -lzstd
|
|
./a.out
|