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

# source: BLFS 11.3
TARBALL=boost_1_81_0.tar.bz2
MD5SUM=3276c0637d1be8687740c550237ef999
SRC_URL=https://boostorg.jfrog.io/artifactory/main/release/$PKGVER/source/$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 11.3 patch for gcc 12.2.x & libreoffice
	sed -i '/#include.*phoenix.*tuple.hpp.*/d' \
		boost/phoenix/stl.hpp	&&

	./bootstrap.sh --prefix=/usr --with-python=python3 --libdir=/usr/$LIBDIR &&
	./b2 $MAKEFLAGS stage threading=multi link=shared &&
	./b2 $MAKEFLAGS install threading=multi link=shared &&

	pkg_build_slackdesc
}


