onlyoffice-core, icu, qt: use custom gcc
[buildout] | ||
extends = | ||
../gcc/buildout.cfg | ||
parts = icu4c | ||
[icu4c] | ||
# need for couchdb | ||
recipe = slapos.recipe.cmmi | ||
location = ${buildout:parts-directory}/${:_buildout_section_name_} | ||
url = http://download.icu-project.org/files/icu4c/58.2/icu4c-58_2-src.tgz | ||
... | ... | @@ -13,6 +15,14 @@ configure-options = |
--disable-static | ||
--enable-rpath | ||
[icu4c-slaposgcc] | ||
# need for onlyoffice-core | ||
<= icu4c | ||
environment = | ||
PATH=${gcc:location}/bin:%(PATH)s | ||
LD_LIBRARY_PATH=${gcc:location}/lib | ||
LDFLAGS=-Wl,-rpath=${gcc:location}/lib | ||
|
||
[icu] | ||
<= icu4c | ||
... | ... |
[buildout] | ||
extends = | ||
../gcc/buildout.cfg | ||
../libxml2/buildout.cfg | ||
../zlib/buildout.cfg | ||
../icu/buildout.cfg | ||
... | ... | @@ -19,9 +20,9 @@ md5sum = b2713373d687dd1c7121c286fa156626 |
configure-command = true | ||
make-targets = lib bin | ||
environment = | ||
PATH=${qt5-qmake:location}/bin:%(PATH)s | ||
CXXFLAGS=-I${libxml2:location}/include -I${zlib:location}/include -I${icu4c:location}/include -I${onlyoffice-boost:location}/include -Wno-comment -Wno-deprecated-declarations -Wno-endif-labels -Wno-parentheses -Wno-reorder -Wno-sign-compare -Wno-switch -Wno-unknown-pragmas -Wno-unused | ||
LDFLAGS=-L${libxml2:location}/lib -Wl,-rpath=${libxml2:location}/lib -L${zlib:location}/lib -Wl,-rpath=${zlib:location}/lib -L${icu4c:location}/lib -Wl,-rpath=${icu4c:location}/lib -L${onlyoffice-boost:location}/lib -Wl,-rpath=${onlyoffice-boost:location}/lib -Wl,-rpath=${:location}/lib | ||
PATH=${gcc:location}/bin:${qt5-qmake:location}/bin:%(PATH)s | ||
CXXFLAGS=-I${libxml2:location}/include -I${zlib:location}/include -I${icu4c-slaposgcc:location}/include -I${boost-lib:location}/include -Wno-comment -Wno-deprecated-declarations -Wno-endif-labels -Wno-parentheses -Wno-reorder -Wno-sign-compare -Wno-switch -Wno-unknown-pragmas -Wno-unused | ||
LDFLAGS=-L${gcc:location}/lib -Wl,-rpath=${gcc:location}/lib -L${libxml2:location}/lib -Wl,-rpath=${libxml2:location}/lib -L${zlib:location}/lib -Wl,-rpath=${zlib:location}/lib -L${icu4c-slaposgcc:location}/lib -Wl,-rpath=${icu4c-slaposgcc:location}/lib -L${boost-lib:location}/lib -Wl,-rpath=${boost-lib:location}/lib -Wl,-rpath=${:location}/lib | ||
|
||
post-install = | ||
set -e -x | ||
mkdir -p ${:location}/bin ${:location}/lib | ||
... | ... | @@ -29,18 +30,3 @@ post-install = |
mv -t ${:location}/bin build/bin/*/* | ||
# the binary linux_64 in build/bin/AllFontsGen is renamed AllFontsGen here. | ||
# mv build/bin/AllFontsGen/* ${:location}/bin/AllFontsGen | ||
[onlyoffice-boost] | ||
recipe = slapos.recipe.cmmi | ||
url = http://downloads.sourceforge.net/sourceforge/boost/boost_1_58_0.tar.bz2 | ||
md5sum = b8839650e61e9c1c0a89f371dd475546 | ||
location = ${buildout:parts-directory}/${:_buildout_section_name_} | ||
configure-command = ./bootstrap.sh --prefix=${:location} --with-python=${python2.7:location}/bin/python2.7 --with-libraries=regex --with-icu=${icu4c:location} | ||
make-binary = | ||
make-options = | ||
make-targets = ./b2 link=shared dll-path=${:location}/lib:${bzip2:location}/lib:${zlib:location}/lib:${icu4c:location}/lib install | ||
environment = | ||
BZIP2_INCLUDE=${bzip2:location}/include | ||
BZIP2_LIBPATH=${bzip2:location}/lib | ||
ZLIB_INCLUDE=${zlib:location}/include | ||
ZLIB_LIBPATH=${zlib:location}/lib |
-
GCC library path is
${gcc:location}/lib
in 32-bit architecture environment and${gcc:location}/lib64
in 64-bit architecture environment. So please always set BOTH${gcc:location}/lib
and${gcc:location}/lib64
. You can find such usage in other existing components, likecomponent/gtkmm/buildout.cfg
.