Lines 13-19
Link Here
|
13 |
SRC_URI="mirror://sourceforge/boost/${MY_P}.tar.bz2" |
13 |
SRC_URI="mirror://sourceforge/boost/${MY_P}.tar.bz2" |
14 |
LICENSE="Boost-1.0" |
14 |
LICENSE="Boost-1.0" |
15 |
SLOT="$(get_version_component_range 1-2)" |
15 |
SLOT="$(get_version_component_range 1-2)" |
16 |
IUSE="debug doc +eselect expat icu mpi python test tools" |
16 |
IUSE="debug doc +eselect expat icu mpi python static-libs test tools" |
17 |
|
17 |
|
18 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" |
18 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" |
19 |
|
19 |
|
Lines 188-211
Link Here
|
188 |
|
188 |
|
189 |
export BOOST_ROOT="${S}" |
189 |
export BOOST_ROOT="${S}" |
190 |
|
190 |
|
|
|
191 |
LINK_TARGETS=shared |
192 |
use static-libs && LINK_TARGETS+=,static |
193 |
|
191 |
einfo "Using the following command to build: " |
194 |
einfo "Using the following command to build: " |
192 |
einfo "${BJAM} ${NUMJOBS} -q -d+2 gentoorelease ${OPTIONS} threading=single,multi link=shared,static runtime-link=shared" |
195 |
einfo "${BJAM} ${NUMJOBS} -q -d+2 gentoorelease ${OPTIONS} threading=single,multi link=${LINK_TARGETS} runtime-link=shared" |
193 |
|
196 |
|
194 |
${BJAM} ${NUMJOBS} -q -d+2 \ |
197 |
${BJAM} ${NUMJOBS} -q -d+2 \ |
195 |
gentoorelease \ |
198 |
gentoorelease \ |
196 |
${OPTIONS} \ |
199 |
${OPTIONS} \ |
197 |
threading=single,multi link=shared,static runtime-link=shared \ |
200 |
threading=single,multi link=${LINK_TARGETS} runtime-link=shared \ |
198 |
|| die "building boost failed" |
201 |
|| die "building boost failed" |
199 |
|
202 |
|
200 |
# ... and do the whole thing one more time to get the debug libs |
203 |
# ... and do the whole thing one more time to get the debug libs |
201 |
if use debug ; then |
204 |
if use debug ; then |
202 |
einfo "Using the following command to build: " |
205 |
einfo "Using the following command to build: " |
203 |
einfo "${BJAM} ${NUMJOBS} -q -d+2 gentoodebug ${OPTIONS} threading=single,multi link=shared,static runtime-link=shared --buildid=debug" |
206 |
einfo "${BJAM} ${NUMJOBS} -q -d+2 gentoodebug ${OPTIONS} threading=single,multi link=${LINK_TARGETS} runtime-link=shared --buildid=debug" |
204 |
|
207 |
|
205 |
${BJAM} ${NUMJOBS} -q -d+2 \ |
208 |
${BJAM} ${NUMJOBS} -q -d+2 \ |
206 |
gentoodebug \ |
209 |
gentoodebug \ |
207 |
${OPTIONS} \ |
210 |
${OPTIONS} \ |
208 |
threading=single,multi link=shared,static runtime-link=shared \ |
211 |
threading=single,multi link=${LINK_TARGETS} runtime-link=shared \ |
209 |
--buildid=debug \ |
212 |
--buildid=debug \ |
210 |
|| die "building boost failed" |
213 |
|| die "building boost failed" |
211 |
fi |
214 |
fi |
Lines 227-250
Link Here
|
227 |
export BOOST_ROOT="${S}" |
230 |
export BOOST_ROOT="${S}" |
228 |
|
231 |
|
229 |
einfo "Using the following command to install: " |
232 |
einfo "Using the following command to install: " |
230 |
einfo "${BJAM} -q -d+2 gentoorelease ${OPTIONS} threading=single,multi link=shared,static runtime-link=shared --includedir=\"${D}/usr/include\" --libdir=\"${D}/usr/$(get_libdir)\" install" |
233 |
einfo "${BJAM} -q -d+2 gentoorelease ${OPTIONS} threading=single,multi link=${LINK_TARGETS} runtime-link=shared --includedir=\"${D}/usr/include\" --libdir=\"${D}/usr/$(get_libdir)\" install" |
231 |
|
234 |
|
232 |
${BJAM} -q -d+2 \ |
235 |
${BJAM} -q -d+2 \ |
233 |
gentoorelease \ |
236 |
gentoorelease \ |
234 |
${OPTIONS} \ |
237 |
${OPTIONS} \ |
235 |
threading=single,multi link=shared,static runtime-link=shared \ |
238 |
threading=single,multi link=${LINK_TARGETS} runtime-link=shared \ |
236 |
--includedir="${D}/usr/include" \ |
239 |
--includedir="${D}/usr/include" \ |
237 |
--libdir="${D}/usr/$(get_libdir)" \ |
240 |
--libdir="${D}/usr/$(get_libdir)" \ |
238 |
install || die "install failed for options '${OPTIONS}'" |
241 |
install || die "install failed for options '${OPTIONS}'" |
239 |
|
242 |
|
240 |
if use debug ; then |
243 |
if use debug ; then |
241 |
einfo "Using the following command to install: " |
244 |
einfo "Using the following command to install: " |
242 |
einfo "${BJAM} -q -d+2 gentoodebug ${OPTIONS} threading=single,multi link=shared,static runtime-link=shared --includedir=\"${D}/usr/include\" --libdir=\"${D}/usr/$(get_libdir)\" --buildid=debug" |
245 |
einfo "${BJAM} -q -d+2 gentoodebug ${OPTIONS} threading=single,multi link=${LINK_TARGETS} runtime-link=shared --includedir=\"${D}/usr/include\" --libdir=\"${D}/usr/$(get_libdir)\" --buildid=debug" |
243 |
|
246 |
|
244 |
${BJAM} -q -d+2 \ |
247 |
${BJAM} -q -d+2 \ |
245 |
gentoodebug \ |
248 |
gentoodebug \ |
246 |
${OPTIONS} \ |
249 |
${OPTIONS} \ |
247 |
threading=single,multi link=shared,static runtime-link=shared \ |
250 |
threading=single,multi link=${LINK_TARGETS} runtime-link=shared \ |
248 |
--includedir="${D}/usr/include" \ |
251 |
--includedir="${D}/usr/include" \ |
249 |
--libdir="${D}/usr/$(get_libdir)" \ |
252 |
--libdir="${D}/usr/$(get_libdir)" \ |
250 |
--buildid=debug \ |
253 |
--buildid=debug \ |