Commit 3e1e8ff7 authored by Tristan Cavelier's avatar Tristan Cavelier

xxx remove useless + add curl libxml2 zlib + use pre-configure

parent 019ec8dd
[buildout] [buildout]
extends = extends =
../icu/buildout.cfg
../pole/buildout.cfg
../cryptopp/buildout.cfg
../v8/buildout.cfg
../gcc/buildout.cfg ../gcc/buildout.cfg
../binutils/buildout.cfg ../binutils/buildout.cfg
../curl/buildout.cfg
../libxml2/buildout.cfg
../zlib/buildout.cfg
# for 3dparty dependencies # for 3dparty dependencies
../p7zip/buildout.cfg ../p7zip/buildout.cfg
# for qmake # for qmake
...@@ -14,7 +13,6 @@ parts += ...@@ -14,7 +13,6 @@ parts +=
onlyoffice-core onlyoffice-core
[onlyoffice-core] [onlyoffice-core]
dummy = ${pole:location}:${icu4c-55.1:location}:${cryptopp-5.6:location}:${v8-4.10:location}:${gcc:location}
# XXX please, put the third party component in slapos ! # XXX please, put the third party component in slapos !
# boost, cef, icu, v8 and pole (is there others ??? XXX TRISTAN XXX) # boost, cef, icu, v8 and pole (is there others ??? XXX TRISTAN XXX)
recipe = slapos.recipe.cmmi recipe = slapos.recipe.cmmi
...@@ -22,51 +20,26 @@ recipe = slapos.recipe.cmmi ...@@ -22,51 +20,26 @@ recipe = slapos.recipe.cmmi
# https://github.com/ONLYOFFICE/DocumentServer/tree/ONLYOFFICE-DocumentServer-4.2.9 # https://github.com/ONLYOFFICE/DocumentServer/tree/ONLYOFFICE-DocumentServer-4.2.9
url = https://github.com/ONLYOFFICE/core/archive/0bd10c28acd79a1e25a8b3fb94689819642e5eb5.tar.gz url = https://github.com/ONLYOFFICE/core/archive/0bd10c28acd79a1e25a8b3fb94689819642e5eb5.tar.gz
md5sum = f7e77ff35f12e9ab485b60b7889e5d53 md5sum = f7e77ff35f12e9ab485b60b7889e5d53
#url = https://github.com/ONLYOFFICE/core/archive/win-v4.3.0.61.tar.gz
#md5sum = 7e735af4f964f6adf82ec9265e84ac8c
patch-options = -p0 patch-options = -p0
patches = patches =
${:_profile_base_location_}/rewrite-scripts.patch#3c82738b72fe2765d7da8c98a872f15d ${:_profile_base_location_}/rewrite-scripts.patch#3c82738b72fe2765d7da8c98a872f15d
# ${:_profile_base_location_}/cryptopp.patch#a2f892e23e13952539d1acfd013be7de
# ${:_profile_base_location_}/avoid-7z.patch#0dd7356c1a766ec14e0e8bcafcffe1a7
# error: 'to_wstring' is not a member of 'std' -> http://www.cplusplus.com/forum/general/109469/
# ${:_profile_base_location_}/to_wstring-is-not-a-member-of-std3.patch#bcc755d9629613ff702b1ad0129b1587
# ${:_profile_base_location_}/to_wstring-is-not-a-member-of-std2.patch#cba83f96cf260f604e2bf96c4d7db380
# ${:_profile_base_location_}/to_wstring-is-not-a-member-of-std.patch#c02a96b863e89ef045c45fb6e9cfe9bd
# http://source.winehq.org/source/dlls/ntdll/wcstring.c pre-configure =
sed 's:^CRYPTOPP_QMAKE_SPEC=SED_IT$:CRYPTOPP_QMAKE_SPEC="${qt5-qmake:location}/qtbase/mkspecs/linux-g++":' -i Common/3dParty/cryptopp/build.sh
# template <typename T> sed 's,\(include($$PWD/OfficeUtils.pri)\)),\1,g' -i OfficeUtils/OfficeUtils.pro
# std::wstring to_string(T value) sed 's,\$\$SOURCES_UTILS,'"$PWD/OfficeUtils/src,g" -i OfficeUtils/OfficeUtils.pri
# { # sed 's@qmake -r@qmake -r -spec ${qt5-qmake:location}/qtbase/mkspecs/linux-g++ "QMAKE_CXXFLAGS += -std=c++11 -fPIC -I${zlib:location}/include -Wl,-rpath=${zlib:location}/lib"@g' -i Makefile
# std::wostringstream os ; sed 's@qmake -r@qmake -r -spec ${qt5-qmake:location}/qtbase/mkspecs/linux-g++ "QMAKE_CXXFLAGS += -std=c++11"@g' -i Makefile
# os << value ; ( cd Common/3dParty && ./make.sh )
# return os.str() ; configure-command = true
# }
configure-command =
sed 's:^CRYPTOPP_QMAKE_SPEC=SED_IT$:CRYPTOPP_QMAKE_SPEC="${qt5-qmake:location}/qtbase/mkspecs/linux-g++":' -i Common/3dParty/cryptopp/build.sh || exit 1
# sed 's:^V8_ABSOLUTE_PATH=SED_IT$:V8_ABSOLUTE_PATH=${v8-4.10:location}:' -i Common/3dParty/v8/fetch.sh || exit 1
sed 's,\(include($$PWD/OfficeUtils.pri)\)),\1,g' -i OfficeUtils/OfficeUtils.pro || exit 1
sed 's,\$\$SOURCES_UTILS,'"$PWD/OfficeUtils/src,g" -i OfficeUtils/OfficeUtils.pri || exit 1
# sed 's@qmake -r@qmake -r -spec ${qt5-qmake:location}/qtbase/mkspecs/linux-g++ "QMAKE_CXXFLAGS += -std=c++11 -fPIC -I${zlib:location}/include -Wl,-rpath=${zlib:location}/lib"@g' -i Makefile || exit 1
sed 's@qmake -r@qmake -r -spec ${qt5-qmake:location}/qtbase/mkspecs/linux-g++ "QMAKE_CXXFLAGS += -std=c++11"@g' -i Makefile || exit 1
( cd Common/3dParty && ./make.sh ) || exit 1
# cp -rnt DesktopEditor/doctrenderer ${nodejs-4:location}/include/node/*
# echo 'QMAKE_CXXFLAGS += -std=c++11' >> PdfWriter/PdfWriter.pro
make-targets = make-targets =
lib bin lib bin
#make-options = -j1
environment = environment =
PATH=${gcc:location}/bin:${binutils:location}/bin:${p7zip:location}/bin:${qt5-qmake:location}/qtbase/bin:%(PATH)s PATH=${gcc:location}/bin:${binutils:location}/bin:${p7zip:location}/bin:${qt5-qmake:location}/qtbase/bin:%(PATH)s
CPPFLAGS=-I${qt5-qmake:location}/qtbase/include -I${zlib:location}/include CPPFLAGS="-I${qt5-qmake:location}/qtbase/include -I${curl:location}/include -I${libxml2:location}/include -I${zlib:location}/include"
CXXFLAGS=-I${qt5-qmake:location}/qtbase/include -I${zlib:location}/include LD_LIBRARY_PATH=${gcc:location}/lib64:${gcc:location}/lib:${binutils:location}/lib:${qt5-qmake:location}/qtbase/lib:${curl:location}/lib:${libxml2:location}/lib:${zlib:location}/lib
LD_LIBRARY_PATH=${gcc:location}/lib64:${gcc:location}/lib:${binutils:location}/lib:${qt5-qmake:location}/qtbase/lib:${zlib:location}/lib LDFLAGS="-Wl,-rpath=${gcc:location}/lib64 -Wl,-rpath=${gcc:location}/lib -Wl,-rpath=${curl:location}/lib -Wl,-rpath=${libxml2:location}/lib -Wl,-rpath=${zlib:location}/lib"
# PATH=${gcc:location}/bin:${nodejs:location}/bin:%(PATH)s
# CPPFLAGS=-I${gcc:location}/include
# LD_LIBRARY_PATH=${gcc:location}/lib:${gcc:location}/lib64
LDFLAGS=-Wl,-rpath=${gcc:location}/lib64 -Wl,-rpath=${gcc:location}/lib
#-Wl,-rpath=${openssl:location}/lib -L${zlib:location}/lib -Wl,-rpath=${zlib:location}/lib
# LDFLAGS=-Wl,-rpath=${openssl:location}/lib -L${zlib:location}/lib -Wl,-rpath=${zlib:location}/lib
#[onlyoffice-fileconverter] #[onlyoffice-fileconverter]
......
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