2006-11-21 22:03:23 +11:00
|
|
|
# Description: Free peer-reviewed portable C++ source libraries.
|
2007-12-16 17:56:50 +11:00
|
|
|
# URL: http://www.boost.org/
|
2014-11-10 23:28:07 +11:00
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2006-11-21 22:03:23 +11:00
|
|
|
# Packager: sten, nick dot steeves at shaw dot ca
|
2015-01-31 12:58:54 +11:00
|
|
|
# Depends on: icu python
|
2006-11-21 22:03:23 +11:00
|
|
|
|
|
|
|
name=boost
|
2015-12-22 22:58:51 +11:00
|
|
|
version=1.60.0
|
2012-10-20 16:21:33 +11:00
|
|
|
release=1
|
2010-12-24 22:49:57 +11:00
|
|
|
source=(http://downloads.sourceforge.net/project/$name/$name/$version/${name}_${version//./_}.tar.bz2)
|
2006-11-21 22:03:23 +11:00
|
|
|
|
|
|
|
build() {
|
2010-11-13 15:04:55 +11:00
|
|
|
cd ${name}_${version//./_}
|
2007-07-22 22:46:23 +10:00
|
|
|
|
2015-01-31 12:58:54 +11:00
|
|
|
local JOBS=$(awk 'BEGIN{RS="-j|--jobs="} NR==2 {print $1}' <<< $MAKEFLAGS)
|
|
|
|
test -n "$JOBS" && export JOBS="-j $JOBS"
|
2012-07-07 11:52:18 +10:00
|
|
|
|
2015-01-31 12:58:54 +11:00
|
|
|
# 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
|
2011-04-05 01:50:51 +10:00
|
|
|
|
2015-01-31 12:58:54 +11:00
|
|
|
./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
|
2006-11-21 22:03:23 +11:00
|
|
|
}
|