aboutsummaryrefslogtreecommitdiffstats
path: root/main/boost/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2019-03-29 17:38:23 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2019-04-02 10:31:57 +0000
commit82ea2f3c5860d564f494caa7b145e039153689c9 (patch)
tree4750594ecf82d909696c2f60c2398aa8b9bf0542 /main/boost/APKBUILD
parentea0f75ee78e21966e30d819ff88f23c33b3e7e31 (diff)
downloadaports-82ea2f3c5860d564f494caa7b145e039153689c9.tar.gz
aports-82ea2f3c5860d564f494caa7b145e039153689c9.tar.bz2
aports-82ea2f3c5860d564f494caa7b145e039153689c9.tar.xz
main/boost: simplify and cleanup
- simplify subpackage logic - build with --layout=system - build only multithreaded
Diffstat (limited to 'main/boost/APKBUILD')
-rw-r--r--main/boost/APKBUILD19
1 files changed, 8 insertions, 11 deletions
diff --git a/main/boost/APKBUILD b/main/boost/APKBUILD
index 6127857e63..07e8467710 100644
--- a/main/boost/APKBUILD
+++ b/main/boost/APKBUILD
@@ -2,7 +2,7 @@
pkgname=boost
pkgver=1.69.0
_pkgver="${pkgver//./_}"
-pkgrel=0
+pkgrel=1
pkgdesc="Free peer-reviewed portable C++ source libraries"
url="http://www.boost.org/"
arch="all"
@@ -71,14 +71,11 @@ _libs="
wserialization
"
for _lib in $_libs; do
- _skip_lib=0
- for _option in $_options_carch; do
- case "$_option" in --without-${_lib}) _skip_lib=1; break ;; esac
- done; unset -v _option
- if [ ${_skip_lib:-0} -eq 0 ]; then
- subpackages="$subpackages ${pkgname}-${_lib}:_boostlib"
- fi
-done; unset -v _lib _skip_lib
+ case "$_options_carch " in # traing space is there to match last word
+ *"--without-${_lib} ") continue;;
+ esac
+ subpackages="$subpackages ${pkgname}-${_lib}:_boostlib"
+done; unset -v _lib
subpackages="$subpackages $pkgname-libs"
_set_options() {
@@ -95,11 +92,11 @@ _set_options() {
$_options_python
toolset=gcc
debug-symbols=off
- threading=single,multi
+ threading=multi
runtime-link=shared
link=shared,static
cflags=-fno-strict-aliasing
- --layout=tagged
+ --layout=system
-q
-j${JOBS:-2}
$_options_carch