boost: update to 1.65.1, add chrono, date_time, python and random

This commit is contained in:
thoradia 2017-10-03 01:59:04 +02:00 committed by MilhouseVH
parent 908fe25207
commit 195aef2692

View File

@ -17,18 +17,14 @@
################################################################################ ################################################################################
PKG_NAME="boost" PKG_NAME="boost"
PKG_VERSION="1_61_0" PKG_VERSION="1_65_1"
PKG_SHA256="a547bd06c2fd9a71ba1d169d9cf0339da7ebf4753849a8f7d6fdb8feee99b640" PKG_SHA256="9807a5d16566c57fd74fb522764e0b134a8bbe6b6e8967b83afefd30dcd3be81"
PKG_ARCH="any"
PKG_LICENSE="OSS" PKG_LICENSE="OSS"
PKG_SITE="http://www.boost.org/" PKG_SITE="http://www.boost.org/"
PKG_URL="$SOURCEFORGE_SRC/boost/boost/1.61.0/${PKG_NAME}_${PKG_VERSION}.tar.bz2" PKG_URL="$SOURCEFORGE_SRC/boost/boost/1.65.1/${PKG_NAME}_${PKG_VERSION}.tar.bz2"
PKG_SOURCE_DIR="${PKG_NAME}_${PKG_VERSION}" PKG_SOURCE_DIR="${PKG_NAME}_${PKG_VERSION}"
PKG_DEPENDS_HOST="" PKG_DEPENDS_TARGET="toolchain boost:host Python2 zlib bzip2"
PKG_DEPENDS_TARGET="toolchain boost:host Python2:host zlib bzip2" PKG_LONGDESC="boost: Peer-reviewed STL style libraries for C++"
PKG_SECTION="devel"
PKG_SHORTDESC="boost: Peer-reviewed STL style libraries for C++"
PKG_LONGDESC="Boost provides free peer-reviewed portable C++ source libraries. The emphasis is on libraries which work well with the C++ Standard Library. One goal is to establish existing practice and provide reference implementations so that the Boost libraries are suitable for eventual standardization. Some of the libraries have already been proposed for inclusion in the C++ Standards Committee's upcoming C++ Standard Library Technical Report."
PKG_AUTORECONF="no" PKG_AUTORECONF="no"
make_host() { make_host() {
@ -42,34 +38,38 @@ makeinstall_host() {
} }
pre_configure_target() { pre_configure_target() {
export CFLAGS="$CFLAGS -fPIC" export CFLAGS="$CFLAGS -I$SYSROOT_PREFIX/usr/include/$PKG_PYTHON_VERSION -fPIC"
export CXXFLAGS="$CXXFLAGS -fPIC" export CXXFLAGS="$CXXFLAGS -I$SYSROOT_PREFIX/usr/include/$PKG_PYTHON_VERSION -fPIC"
export LDFLAGS="$LDFLAGS -fPIC"
} }
configure_target() { configure_target() {
sh bootstrap.sh --prefix=/usr \ sh bootstrap.sh --prefix=/usr \
--with-bjam=$TOOLCHAIN/bin/bjam \ --with-bjam=$TOOLCHAIN/bin/bjam \
--with-python=$TOOLCHAIN/bin/python \ --with-python=$TOOLCHAIN/bin/python \
--with-python-root=$SYSROOT_PREFIX/usr
echo "using gcc : `$CC -v 2>&1 | tail -n 1 |awk '{print $3}'` : $CC : <compileflags>\"$CFLAGS\" <linkflags>\"$LDFLAGS\" ;" \ echo "using gcc : `$CC -v 2>&1 | tail -n 1 |awk '{print $3}'` : $CC : <compileflags>\"$CFLAGS\" <linkflags>\"$LDFLAGS\" ;" \
> tools/build/src/user-config.jam > tools/build/src/user-config.jam
} }
make_target() { make_target() {
: # nothing todo, we use makeinstall_target() :
} }
makeinstall_target() { makeinstall_target() {
$TOOLCHAIN/bin/bjam -d2 --toolset=gcc link=static \ $TOOLCHAIN/bin/bjam -d2 --ignore-site-config \
--prefix=$SYSROOT_PREFIX/usr \ --layout=system \
--ignore-site-config \ --prefix=$SYSROOT_PREFIX/usr \
--layout=system \ --toolset=gcc link=static \
--with-thread \ --with-chrono \
--with-iostreams \ --with-date_time \
--with-system \ --with-filesystem \
--with-serialization \ --with-iostreams \
--with-filesystem \ --with-python \
--with-regex -sICU_PATH="$SYSROOT_PREFIX/usr" \ --with-random \
install --with-regex -sICU_PATH="$SYSROOT_PREFIX/usr" \
--with-serialization \
--with-system \
--with-thread \
install
} }