Commit 0ae4489d authored by Tristan Cavelier's avatar Tristan Cavelier

xxx component/onlyoffice-core: try to build boost

parent 2e674cd3
......@@ -9,11 +9,12 @@ extends =
../icu/buildout.cfg
## for 3dparty dependencies
# ../git/buildout.cfg
# ../bash/buildout.cfg
../bash/buildout.cfg
# for qmake
../qt/buildout.cfg
# for wrapper
../dash/buildout.cfg
# XXX qmake ! use pre-configure !!
parts +=
onlyoffice-core
......@@ -66,30 +67,31 @@ pre-configure =
# patch Makefile
sed 's@qmake -r@qmake -r -spec ${qt5-qmake:location}/qtbase/mkspecs/linux-g++ '"'QMAKE_CXXFLAGS +=$qmake_cxxflags' 'QMAKE_LFLAGS +=$qmake_lflags'@g" -i Makefile
# bash="${bash:location}/bin/bash"
# ( cd Common/3dParty/boost && "$bash" fetch.sh )
# ( cd Common/3dParty/boost && "$bash" build.sh )
bash="${bash:location}/bin/bash"
( cd Common/3dParty/boost && "$bash" fetch.sh )
( cd Common/3dParty/boost && "$bash" build.sh )
# ( cd Common/3dParty/v8 && "$bash" fetch.sh )
# ( cd Common/3dParty/v8 && "$bash" build.sh )
tar xf ../../tristan__compile__/3dpartycompiled-noicu-nocef.tar.gz
tar xf ../../tristan__compile__/3dpartycompiled-noicu-nocef-noboost.tar.gz
# link boost on 3dParty folders
#echo XXX && rm -rf Common/3dParty/boost/boost_1_58_0
#mkdir -p Common/3dParty/boost/boost_1_58_0/build/slapos
#true mkdir -p Common/3dParty/boost/boost_1_58_0
true mkdir -p Common/3dParty/boost/boost_1_58_0/build/slapos
mkdir -p Common/3dParty/boost/boost_1_58_0
# XXX use shared libraries as most as possible !
#true ln -sfT ${onlyoffice-boost-lib-1.58.0-static:location}/lib Common/3dParty/boost/boost_1_58_0/build/slapos/static
# true ln -sfT ${onlyoffice-boost-lib-1.58.0-static-fpic:location}/lib Common/3dParty/boost/boost_1_58_0/build/slapos/static_fpic
#true ln -sfT ${boost-lib-1.58.0:location}/lib Common/3dParty/boost/boost_1_58_0/build/slapos/shared
#true ln -sfT ${boost-lib-1.58.0:location}/include/boost Common/3dParty/boost/boost_1_58_0/boost
# for os in linux mac win ; do for arch in 64 32 ; do ln -sf slapos Common/3dParty/boost/boost_1_58_0/build/$${os}_$${arch} ; done ; done
# XXX use cp instead of ln - no reason - just to be sure this is not a symlink issue
#cp -aT ${onlyoffice-boost-lib-1.58.0-static:location}/lib Common/3dParty/boost/boost_1_58_0/build/slapos/static
# cp -aT ${onlyoffice-boost-lib-1.58.0-static:location}/lib Common/3dParty/boost/boost_1_58_0/build/slapos/static
# cp -aT ${onlyoffice-boost-lib-1.58.0-static-fpic:location}/lib Common/3dParty/boost/boost_1_58_0/build/slapos/static_fpic
#cp -aT ${boost-lib-1.58.0:location}/lib Common/3dParty/boost/boost_1_58_0/build/slapos/shared
#cp -aT ${boost-lib-1.58.0:location}/include/boost Common/3dParty/boost/boost_1_58_0/boost
#cp -aT ${onlyoffice-boost-lib-1.58.0-shared:location}/lib Common/3dParty/boost/boost_1_58_0/build/slapos/shared
#cp -aT ${onlyoffice-boost-lib-1.58.0-shared:location}/lib Common/3dParty/boost/boost_1_58_0/build/slapos/static
#cp -aT ${onlyoffice-boost-lib-1.58.0-shared:location}/lib Common/3dParty/boost/boost_1_58_0/build/slapos/static_fpic
#cp -aT ${onlyoffice-boost-lib-1.58.0-shared:location}/include/boost Common/3dParty/boost/boost_1_58_0/boost
#mv Common/3dParty/boost/boost_1_58_0/build/slapos Common/3dParty/boost/boost_1_58_0/build/linux_64
true cp -at Common/3dParty/boost/boost_1_58_0 ${onlyoffice-boost-lib-1.58.0-shared:location}/*
# XXX use precompiled from old onlyoffice (that was not failing to link boost_regex)
#true cp -aT ${boost-lib-1.58.0:location}/../tristan__compile__/Common/3dParty/boost/boost_1_58_0/build Common/3dParty/boost/boost_1_58_0/build
#true cp -aT ${boost-lib-1.58.0:location}/../tristan__compile__/Common/3dParty/boost/boost_1_58_0/boost Common/3dParty/boost/boost_1_58_0/boost
......@@ -116,14 +118,16 @@ post-install =
# the binary linux_64 in build/bin/AllFontsGen is renamed AllFontsGen here.
mv build/bin/AllFontsGen/* ${:location}/bin/AllFontsGen
mv -t ${:location}/bin build/bin/*/*
# create wrapper for x2t binary
mv ${:location}/bin/x2t ${:location}/bin/x2t.bin
echo '#!/bin/sh
exec ${dash:location}/bin/dash -c '\''
export LD_LIBRARY_PATH="${onlyoffice-core:location}/lib:${icu4c-55.1:location}/lib:${curl:location}/lib$${LD_LIBRARY_PATH:-:$LD_LIBRARY_PATH}"
export LD_LIBRARY_PATH="${onlyoffice-core:location}/lib:${icu4c-55.1:location}/lib:${curl:location}/lib:${onlyoffice-boost-lib-1.58.0-shared:location}/lib$${LD_LIBRARY_PATH:-:$LD_LIBRARY_PATH}"
# (XXX add boost/lib if we use it as shared library)
exec ${:location}/bin/x2t.bin "$@"'\'' "$0" "$@"' > ${:location}/bin/x2t
chmod +x ${:location}/bin/x2t
# create wrapper for AllFontsGen binary
mv ${:location}/bin/AllFontsGen ${:location}/bin/AllFontsGen.bin
echo '#!/bin/sh
......@@ -132,9 +136,36 @@ post-install =
exec ${:location}/bin/AllFontsGen.bin "$@"'\'' "$0" "$@"' > ${:location}/bin/AllFontsGen
chmod +x ${:location}/bin/AllFontsGen
[onlyoffice-boost-lib-1.58.0-shared]
<= boost-lib-1.58.0
url = http://freefr.dl.sourceforge.net/project/boost/boost/1.58.0/boost_1_58_0.tar.gz
md5sum = 5a5d5614d9a07672e1ab2a250b5defc5
#configure-command = ./bootstrap.sh --prefix=${:location} --with-python=${python2.7:location}/bin/python2.7 --with-libraries=filesystem,system,date_time,regex
configure-command = ./bootstrap.sh --with-libraries=filesystem,system,date_time,regex
make-targets = true
post-install =
set -e -x
mkdir -p build/linux_64/static && ./b2 --clean && ./bjam link=static && cp stage/lib/* build/linux_64/static
mkdir -p build/linux_64/static_fpic && ./b2 --clean && ./bjam link=static cxxflags=-fPIC && cp stage/lib/* build/linux_64/static_fpic
mkdir -p build/linux_64/shared && ./b2 --clean && ./bjam link=shared && cp stage/lib/* build/linux_64/shared
mv -t ${:location} *
# dll-path=${:location}/lib:${bzip2:location}/lib:${zlib:location}/lib
#post-install =
# set -e -x
# mkdir -p build/linux_64/shared
# mkdir -p build/linux_64/static
# mkdir -p build/linux_64/static_fpic
# cp stage/lib/* build/linux_64/shared/
# cp stage/lib/* build/linux_64/static/
# cp stage/lib/* build/linux_64/static_fpic/
# mv -t ${:location} *
environment +=
PATH=${gcc:location}/bin:${binutils:location}/bin:%(PATH)s
LD_LIBRARY_PATH=${gcc:location}/lib64:${gcc:location}/lib:${binutils:location}/lib
[onlyoffice-boost-lib-1.58.0-static]
<= boost-lib-1.58.0
make-targets = ./b2 --clean && ./bjam link=static dll-path=${:location}/lib:${bzip2:location}/lib:${zlib:location}/lib install
make-targets = ./b2 link=static dll-path=${:location}/lib:${bzip2:location}/lib:${zlib:location}/lib install
[onlyoffice-boost-lib-1.58.0-static-fpic]
<= onlyoffice-boost-lib-1.58.0-static
make-targets = ./b2 link=static cxxflags=-fPIC dll-path=${:location}/lib:${bzip2:location}/lib:${zlib:location}/lib install
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment