### this file is sourced not run
PKGVER=1.60.0
PKGBUILD=1
PKGARCH=x86_64

# source: post BLFS 7.8 2016-01-10
TARBALL=boost_1_60_0.tar.bz2
MD5SUM=65a840e1a0b13a558ff19eeb2c4f0cbe
SRC_URL=http://downloads.sourceforge.net/boost/$TARBALL
BUNDLE=

SLACKREQ=''
SLACKDESC="libboost: libboost $PKGVER (C++ source library)  
libboost:  
libboost: Boost provides a set of free peer-reviewed portable C++ source 
libboost: libraries. It includes libraries for linear algebra, pseudorandom 
libboost: number generation, multithreading, image processing, regular 
libboost: expressions and unit testing.  
libboost: 
libboost: 
libboost: 
libboost: 
libboost: 
"

### default pkg_download
### prepare
pkg_prepare() {
	# IDIOTIC boost won't install properly when it is already installed
	# so make sure it is not installed
	ROOT=$CHROOT_DIR removepkg libboost libboost-common 2>/dev/null 1>&2
	pkg_prepare_default
}

### default pkg_package
### build
pkg_build() {
	cd /tmp/boost*
	# BLFS 7.8 patch for KDE build
	sed -e '1 i#ifndef Q_MOC_RUN' \
		-e '$ a#endif'            \
		-i boost/type_traits/detail/has_binary_operator.hpp &&

	# Note: parallel build doesn't work
	./bootstrap.sh --prefix=/usr --libdir=/usr/$LIBDIR &&
	./b2 $MAKEFLAGS stage threading=multi link=shared &&
	./b2 $MAKEFLAGS install threading=multi link=shared &&
	pkg_build_slackdesc
}


