# Description: Free peer-reviewed portable C++ source libraries. # URL: http://www.boost.org/ # Maintainer: Danny Rawlins, crux at romster dot me # Packager: sten, nick dot steeves at shaw dot ca # Depends on: icu python name=boost version=1.60.0 release=1 source=(http://downloads.sourceforge.net/project/$name/$name/$version/${name}_${version//./_}.tar.bz2) build() { cd ${name}_${version//./_} local JOBS=$(awk 'BEGIN{RS="-j|--jobs="} NR==2 {print $1}' <<< $MAKEFLAGS) test -n "$JOBS" && export JOBS="-j $JOBS" # This command fixes a header to overcome a problem with Qt's moc command. # It is necessary for building some KDE packages sed \ -e '1 i#ifndef Q_MOC_RUN' \ -e '$ a#endif' \ -i boost/type_traits/detail/has_binary_operator.hpp ./bootstrap.sh --prefix=$PKG/usr --with-toolset=gcc --with-icu ./b2 stage threading=multi link=shared debug-symbols=off $JOBS ./b2 install threading=multi link=shared }