summaryrefslogtreecommitdiff
path: root/boost/Pkgfile
diff options
context:
space:
mode:
authorShokara Kou <shokara@kalli.st>2021-12-12 18:11:20 -0500
committerShokara Kou <shokara@kalli.st>2021-12-12 18:11:20 -0500
commitac0a30b7d44952b8faf4ac3c4e521ee2dff04135 (patch)
treeb501a0a8b6f2ea2532bae287c9545cf5400d9aac /boost/Pkgfile
add ports
Ahhh! I forgot to put these under a git repo. :(
Diffstat (limited to 'boost/Pkgfile')
-rw-r--r--boost/Pkgfile42
1 files changed, 42 insertions, 0 deletions
diff --git a/boost/Pkgfile b/boost/Pkgfile
new file mode 100644
index 0000000..91b294d
--- /dev/null
+++ b/boost/Pkgfile
@@ -0,0 +1,42 @@
1# Description: Free peer-reviewed portable C++ source libraries.
2# URL: https://www.boost.org/
3# Maintainer: Shokara Kou, shokara at kalli dot st
4# Packager: Danny Rawlins, crux at romster dot me
5
6name=boost
7version=1.76.0
8release=2
9source=(https://boostorg.jfrog.io/artifactory/main/release/$version/source/${name}_${version//./_}.tar.bz2
10 boost-1.74-CVE-2012-2677.patch
11 boost-1.71.0-disable_icu_rpath.patch
12 boost-ublas-c++20-iterator.patch)
13
14build() {
15 cd ${name}_${version//./_}
16
17 patch -p1 -i $SRC/boost-1.74-CVE-2012-2677.patch
18 patch -p1 -i $SRC/boost-1.71.0-disable_icu_rpath.patch
19
20 # https://github.com/boostorg/ublas/commit/a31e5cffa85f.patch
21 patch -p2 -i $SRC/boost-ublas-c++20-iterator.patch
22
23 local config="
24variant=release \
25threading=multi \
26runtime-link=static \
27link=shared,static \
28debug-symbols=off \
29-j ${JOBS-1}"
30
31 ./bootstrap.sh \
32 --prefix=$PKG/usr \
33 --without-libraries=python \
34 --without-icu
35
36 ./b2 stage $config
37 ./b2 install threading=multi link=shared
38 ./b2 install threading=multi link=static
39
40 install -m 0755 -D b2 $PKG/usr/bin/b2
41 ln -s b2 $PKG/usr/bin/bjam
42}