|
@ -20,30 +20,16 @@ |
|
|
# |
|
|
# |
|
|
# --- ROCK-COPYRIGHT-NOTE-END --- |
|
|
# --- ROCK-COPYRIGHT-NOTE-END --- |
|
|
|
|
|
|
|
|
yam_cm () |
|
|
|
|
|
{ |
|
|
|
|
|
( cd boost/regex/v4; |
|
|
|
|
|
unzip -o $archdir/boost-1.31.0-regex-patch-20040503.zip; ) |
|
|
|
|
|
|
|
|
runconf=0 |
|
|
|
|
|
makeopt= |
|
|
|
|
|
makeinstopt= |
|
|
|
|
|
|
|
|
PYVER="`python -V 2>&1 | sed 's/Python \([0-9]\.[0-9]\).*/\1/'`" |
|
|
|
|
|
PYTHON_ROOT="$root/$prefix" PYTHON_VERSION="$PYVER" bjam "-sTOOLS=gcc" |
|
|
|
|
|
|
|
|
# otherwise rebuilding boost does not reinstall static files |
|
|
|
|
|
#var_insert taropt ' ' -m |
|
|
|
|
|
|
|
|
find bin/boost/libs/ -type f -a \( -name '*.so.*' -o -name '*.a' \) \ |
|
|
|
|
|
-exec cp -v \{\} $libdir \; |
|
|
|
|
|
|
|
|
|
|
|
for i in $libdir/libboost_*-gcc-1_31.{so,a}*; do |
|
|
|
|
|
file=$(basename $i) |
|
|
|
|
|
ln -svf $file ${i/-gcc-1_31/} |
|
|
|
|
|
if [[ "$file" == *.so.* ]]; then |
|
|
|
|
|
ln -svf $file ${i/-gcc-1_31.so.*/.so} |
|
|
|
|
|
fi |
|
|
|
|
|
done |
|
|
|
|
|
|
|
|
|
|
|
find boost/ -type f | while read file ; do |
|
|
|
|
|
mkdir -v -p $includedir/`dirname $file` |
|
|
|
|
|
cp -v $file $includedir/$file |
|
|
|
|
|
done |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
custmain="yam_cm" |
|
|
|
|
|
|
|
|
hook_add preconf 3 "rm configure" |
|
|
|
|
|
hook_add inmake 5 "bjam -sTOOLS=gcc" |
|
|
|
|
|
hook_add postmake 5 "bjam --prefix=$prefix --libdir=$libdir \ |
|
|
|
|
|
--includedir=$includedir -sTOOLS=gcc -sHAVE_ICU=0 --layout=system \ |
|
|
|
|
|
install" |
|
|
|
|
|
|