[Lunar-commits] <moonbase> boost: Probably my best commit ever since the docbook horror.

Moritz Heiber moe at lunar-linux.org
Sat Feb 9 01:08:54 CET 2008


commit d65a4d2659898885c8decfc9571587fcefee580b
Author: Moritz Heiber <moe at lunar-linux.org>
Date:   Sat Feb 9 01:08:54 2008 +0100

    boost: Probably my best commit ever since the docbook horror.
    
    a) Unicode support for boost.
    b) Compile time reduced to 1m52s on my Core 2 Duo (about 20m before).
    c) Size reduced from 1.4GIGABYTES (!) to 30MB.
    
    All programs tested so far (deluge, kdelibs4, miro) have been working
    marvelously.
    
    YAY!
---
 libs/boost/BUILD   |   36 ++++++++++++++++++++++++------------
 libs/boost/DEPENDS |    9 +++++++--
 2 files changed, 31 insertions(+), 14 deletions(-)

diff --git a/libs/boost/BUILD b/libs/boost/BUILD
index 82f90c6..62585c0 100644
--- a/libs/boost/BUILD
+++ b/libs/boost/BUILD
@@ -2,19 +2,31 @@
 
   patch_it $SOURCE_CACHE/$SOURCE2 0  &&
 
-  ./configure --prefix=/usr  \
-              $OPTS         &&
+  bjam -j${MAKES} -q \
+       threading=single,multi \
+       runtime-link=shared \
+       link=shared \
+       release \
+       debug-symbols=off \
+       --prefix=/usr \
+       --layout=system \
+       --toolset=gcc \
+       $OPTS &&
 
-  default_make &&
+  prepare_install &&
 
-  # Some apps expect to find /usr/include/boost
-  BINC=`expr /usr/include/boost-*`  &&
-
-  ln -sf ${BINC}/boost /usr/include/boost  &&
-
-  ln -sf /usr/lib/libboost_date_time-gcc42-mt.so   /usr/lib/libboost_date_time-mt.so   &&
-  ln -sf /usr/lib/libboost_filesystem-gcc42-mt.so  /usr/lib/libboost_filesystem-mt.so  &&
-  ln -sf /usr/lib/libboost_thread-gcc42-mt.so      /usr/lib/libboost_thread-mt.so      &&
-  ln -sf /usr/lib/libboost_regex-gcc42.so          /usr/lib/libboost_regex-gcc.so
+  bjam -j${MAKES} -q \
+       threading=single,multi \
+       runtime-link=shared \
+       link=shared \
+       release \
+       debug-symbols=off \
+       --toolset=gcc \
+       --prefix=/usr \
+       --includedir="/usr/include" \
+       --libdir="/usr/lib" \
+       --layout=system \
+       $OPTS \
+       install
 
 ) > $C_FIFO 2>&1
diff --git a/libs/boost/DEPENDS b/libs/boost/DEPENDS
index c82bdb7..dd5210d 100644
--- a/libs/boost/DEPENDS
+++ b/libs/boost/DEPENDS
@@ -1,4 +1,9 @@
 depends  boost-jam
 
-optional_depends  "Python"  ""  "--without-python"  \
-                  "to build the Boost Python bindings"
+optional_depends "Python"  ""  "--without-python"  \
+                 "to build the Boost Python bindings"
+
+optional_depends "icu" \
+                 "-sHAVE_ICU=1 -sICU_PATH=/usr" \
+                 "" \
+                 "to enable unicode support"


More information about the Lunar-commits mailing list