summaryrefslogtreecommitdiff
path: root/boost/Pkgfile
blob: 91b294d53fc3a52d7e71fbe928dba9a632f61508 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Description:	Free peer-reviewed portable C++ source libraries.
# URL:		https://www.boost.org/
# Maintainer:	Shokara Kou, shokara at kalli dot st
# Packager:	Danny Rawlins, crux at romster dot me

name=boost
version=1.76.0
release=2
source=(https://boostorg.jfrog.io/artifactory/main/release/$version/source/${name}_${version//./_}.tar.bz2
	boost-1.74-CVE-2012-2677.patch
	boost-1.71.0-disable_icu_rpath.patch
	boost-ublas-c++20-iterator.patch)

build() {
	cd ${name}_${version//./_}

	patch -p1 -i $SRC/boost-1.74-CVE-2012-2677.patch
	patch -p1 -i $SRC/boost-1.71.0-disable_icu_rpath.patch

	# https://github.com/boostorg/ublas/commit/a31e5cffa85f.patch
	patch -p2 -i $SRC/boost-ublas-c++20-iterator.patch

       local config="
variant=release \
threading=multi \
runtime-link=static \
link=shared,static \
debug-symbols=off \
-j ${JOBS-1}"

	./bootstrap.sh \
		--prefix=$PKG/usr \
		--without-libraries=python \
		--without-icu

	./b2 stage $config
	./b2 install threading=multi link=shared
	./b2 install threading=multi link=static

	install -m 0755 -D b2 $PKG/usr/bin/b2
	ln -s b2 $PKG/usr/bin/bjam
}