2006-11-21 12:03:23 +01:00
|
|
|
# Description: Free peer-reviewed portable C++ source libraries.
|
2020-07-12 20:48:11 +02:00
|
|
|
# URL: https://www.boost.org/
|
2014-11-10 13:28:07 +01:00
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2020-08-16 12:19:11 +02:00
|
|
|
# Depends on: python python3
|
2018-11-10 12:47:00 +01:00
|
|
|
# Optional: icu
|
2006-11-21 12:03:23 +01:00
|
|
|
|
|
|
|
name=boost
|
2020-12-17 13:14:15 +01:00
|
|
|
version=1.75.0
|
2012-10-20 07:21:33 +02:00
|
|
|
release=1
|
2017-12-24 09:39:56 +01:00
|
|
|
source=(https://dl.bintray.com/boostorg/release/$version/source/${name}_${version//./_}.tar.bz2)
|
2006-11-21 12:03:23 +01:00
|
|
|
|
|
|
|
build() {
|
2010-11-13 05:04:55 +01:00
|
|
|
cd ${name}_${version//./_}
|
2007-07-22 14:46:23 +02:00
|
|
|
|
2020-08-16 12:19:11 +02:00
|
|
|
local config="
|
|
|
|
variant=release \
|
|
|
|
threading=multi \
|
|
|
|
runtime-link=shared \
|
|
|
|
link=shared,static \
|
|
|
|
debug-symbols=off \
|
|
|
|
toolset=gcc \
|
|
|
|
-j ${JOBS-1}"
|
2016-12-29 00:37:57 +01:00
|
|
|
|
2020-08-16 12:19:11 +02:00
|
|
|
local ICU="$([ -e /usr/bin/icu-config ] && echo --with-icu)"
|
|
|
|
./bootstrap.sh --prefix=$PKG/usr --with-toolset=gcc $ICU --with-python=/usr/bin/python2
|
|
|
|
local pyver2="$(/usr/bin/python2 -c 'import sys; print("%s.%s" % sys.version_info[:2])')"
|
2016-12-29 00:37:57 +01:00
|
|
|
|
2020-08-16 12:19:11 +02:00
|
|
|
./b2 stage $config python="$pyver2"
|
2015-01-31 02:58:54 +01:00
|
|
|
./b2 install threading=multi link=shared
|
2020-08-16 12:19:11 +02:00
|
|
|
|
|
|
|
##
|
|
|
|
./bootstrap.sh --prefix=$PKG/usr --with-toolset=gcc $ICU --with-python=/usr/bin/python3 --with-libraries=python
|
|
|
|
local pyver3=$(/usr/bin/python3 -c 'import sys; print("%s.%s" % sys.version_info[:2])')
|
|
|
|
|
|
|
|
./b2 clean
|
|
|
|
./b2 stage $config python="$pyver3"
|
|
|
|
./b2 install threading=multi link=shared
|
|
|
|
|
|
|
|
# https://github.com/boostorg/python/issues/203#issuecomment-391477685
|
|
|
|
local pyver="$(/usr/bin/python3 -c 'import sys; print("%s%s" % sys.version_info[:2])')"
|
|
|
|
ln -s libboost_python$pyver.so $PKG/usr/lib/libboost_python3.so
|
2006-11-21 12:03:23 +01:00
|
|
|
}
|