diff options
| author | Shokara Kou <shokara@kalli.st> | 2021-12-12 18:11:20 -0500 |
|---|---|---|
| committer | Shokara Kou <shokara@kalli.st> | 2021-12-12 18:11:20 -0500 |
| commit | ac0a30b7d44952b8faf4ac3c4e521ee2dff04135 (patch) | |
| tree | b501a0a8b6f2ea2532bae287c9545cf5400d9aac /boost/Pkgfile | |
add ports
Ahhh! I forgot to put these under a git repo. :(
Diffstat (limited to 'boost/Pkgfile')
| -rw-r--r-- | boost/Pkgfile | 42 |
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 | |||
| 6 | name=boost | ||
| 7 | version=1.76.0 | ||
| 8 | release=2 | ||
| 9 | source=(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 | |||
| 14 | build() { | ||
| 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=" | ||
| 24 | variant=release \ | ||
| 25 | threading=multi \ | ||
| 26 | runtime-link=static \ | ||
| 27 | link=shared,static \ | ||
| 28 | debug-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 | } | ||
