new package:

- add boost
- add boost-jam
This commit is contained in:
Stephan Raue 2009-10-19 06:30:49 +02:00
parent df761a4075
commit c6e6cfb592
5 changed files with 73 additions and 0 deletions

12
packages/devel/boost-jam/build Executable file
View File

@ -0,0 +1,12 @@
#!/bin/sh
. config/options
$SCRIPTS/build toolchain
$SCRIPTS/unpack boost
setup_toolchain host
cd $BUILD/boost*/tools/jam/src
sh build.sh
cp bin.*/bjam $ROOT/$TOOLCHAIN/bin

39
packages/devel/boost/build Executable file
View File

@ -0,0 +1,39 @@
#!/bin/sh
. config/options
$SCRIPTS/build toolchain
$SCRIPTS/build boost-jam
$SCRIPTS/build Python
cd $PKG_BUILD
sh bootstrap.sh \
--prefix=/usr \
--with-bjam=$ROOT/$TOOLCHAIN/bin/bjam \
--with-python=$ROOT/$TOOLCHAIN/bin/python \
echo "using gcc : `$TARGET_CC -v 2>&1 | tail -n 1 |awk '{print $3}'` : $TARGET_CC ; " \
> tools/build/v2/user-config.jam
$ROOT/$TOOLCHAIN/bin/bjam -d2 --toolset=gcc \
link=static \
--prefix=$SYSROOT_PREFIX/usr \
--layout=system \
--with-thread \
install
# this are code for an alternative build with cmake (not done)
# remove this after testing
# $SCRIPTS/build cmake
# mkdir -p .build
# cd .build
# cmake -D CMAKE_INSTALL_PREFIX:PATH=/usr \
# -D CMAKE_FIND_ROOT_PATH:PATH=$SYSROOT_PREFIX \
# -D CMAKE_IS_EXPERIMENTAL=YES_I_KNOW \
# ..
# make

View File

@ -0,0 +1 @@
https://svn.boost.org/trac/boost/ticket/2053

View File

@ -0,0 +1,20 @@
--- a/libs/thread/src/pthread/thread.cpp
+++ b/libs/thread/src/pthread/thread.cpp
@@ -388,8 +388,6 @@ namespace boost
{
#if defined(PTW32_VERSION) || defined(__hpux)
return pthread_num_processors_np();
-#elif defined(__linux__)
- return get_nprocs();
#elif defined(__APPLE__) || defined(__FreeBSD__)
int count;
size_t size=sizeof(count);
@@ -397,6 +395,8 @@ namespace boost
#elif defined(BOOST_HAS_UNISTD_H) && defined(_SC_NPROCESSORS_ONLN)
int const count=sysconf(_SC_NPROCESSORS_ONLN);
return (count>0)?count:0;
+#elif defined(__linux__)
+ return get_nprocs();
#else
return 0;
#endif

1
packages/devel/boost/url Normal file
View File

@ -0,0 +1 @@
http://switch.dl.sourceforge.net/sourceforge/boost/boost_1_40_0.tar.bz2