Mercurial > vanilla
comparison lib/boost/boost.sh @ 1216:6710613b88b9
misc: remove build function
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 29 Sep 2021 13:49:32 +0200 |
parents | 02911b528211 |
children | 57dc83a39b13 |
comparison
equal
deleted
inserted
replaced
1215:3214f7fed454 | 1216:6710613b88b9 |
---|---|
61 "g++") | 61 "g++") |
62 with_toolset="g++" | 62 with_toolset="g++" |
63 ;; | 63 ;; |
64 esac | 64 esac |
65 | 65 |
66 build() | 66 rm -rf ${PKGNAME}_$_VERSION |
67 { | 67 tar xvf ${PKGNAME}_$_VERSION.tar.gz |
68 rm -rf ${PKGNAME}_$_VERSION | 68 cd ${PKGNAME}_$_VERSION |
69 tar xvf ${PKGNAME}_$_VERSION.tar.gz | |
70 cd ${PKGNAME}_$_VERSION | |
71 | 69 |
72 touch user-config.jam | 70 touch user-config.jam |
73 | 71 |
74 if [ "$PYTHON" = "yes" ]; then | 72 if [ "$PYTHON" = "yes" ]; then |
75 echo "using python : 3.7 : /bin/python : /include/python3.7m : : : : ;" >> user-config.jam | 73 echo "using python : 3.7 : /bin/python : /include/python3.7m : : : : ;" >> user-config.jam |
76 fi | 74 fi |
77 | 75 |
78 ./bootstrap.sh \ | 76 ./bootstrap.sh \ |
79 --with-toolset=$with_toolset \ | 77 --with-toolset=$with_toolset \ |
80 $with_bootstrap_icu \ | 78 $with_bootstrap_icu \ |
81 $with_bootstrap_python | 79 $with_bootstrap_python |
82 | 80 |
83 # --layout=system: generate simple libraries names (no suffixes). | 81 # --layout=system: generate simple libraries names (no suffixes). |
84 ./b2 \ | 82 ./b2 \ |
85 --user-config=user-config.jam \ | 83 --user-config=user-config.jam \ |
86 --layout=system \ | 84 --layout=system \ |
87 --prefix=$DESTDIR \ | 85 --prefix=$DESTDIR \ |
88 link=static,shared \ | 86 link=static,shared \ |
89 debug-symbols=off \ | 87 debug-symbols=off \ |
90 runtime-link=shared \ | 88 runtime-link=shared \ |
91 threading=multi \ | 89 threading=multi \ |
92 variant=release \ | 90 variant=release \ |
93 toolset=$with_toolset \ | 91 toolset=$with_toolset \ |
94 $with_cxxflags \ | 92 $with_cxxflags \ |
95 $with_linkflags \ | 93 $with_linkflags \ |
96 $with_python \ | 94 $with_python \ |
97 $with_icu \ | 95 $with_icu \ |
98 install | 96 install |
99 | 97 |
100 cd .. | 98 cd .. |
101 rm -rf ${PKGNAME}_$_VERSION | 99 rm -rf ${PKGNAME}_$_VERSION |
102 } |