Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tristan Cavelier
slapos
Commits
3e1e8ff7
Commit
3e1e8ff7
authored
Feb 21, 2017
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xxx remove useless + add curl libxml2 zlib + use pre-configure
parent
019ec8dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
42 deletions
+15
-42
component/onlyoffice-core/buildout.cfg
component/onlyoffice-core/buildout.cfg
+15
-42
No files found.
component/onlyoffice-core/buildout.cfg
View file @
3e1e8ff7
[buildout]
extends =
../icu/buildout.cfg
../pole/buildout.cfg
../cryptopp/buildout.cfg
../v8/buildout.cfg
../gcc/buildout.cfg
../binutils/buildout.cfg
../curl/buildout.cfg
../libxml2/buildout.cfg
../zlib/buildout.cfg
# for 3dparty dependencies
../p7zip/buildout.cfg
# for qmake
...
...
@@ -14,7 +13,6 @@ parts +=
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 !
# boost, cef, icu, v8 and pole (is there others ??? XXX TRISTAN XXX)
recipe = slapos.recipe.cmmi
...
...
@@ -22,51 +20,26 @@ recipe = slapos.recipe.cmmi
# https://github.com/ONLYOFFICE/DocumentServer/tree/ONLYOFFICE-DocumentServer-4.2.9
url = https://github.com/ONLYOFFICE/core/archive/0bd10c28acd79a1e25a8b3fb94689819642e5eb5.tar.gz
md5sum = f7e77ff35f12e9ab485b60b7889e5d53
#url = https://github.com/ONLYOFFICE/core/archive/win-v4.3.0.61.tar.gz
#md5sum = 7e735af4f964f6adf82ec9265e84ac8c
patch-options = -p0
patches =
${:_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
# template <typename T>
# std::wstring to_string(T value)
# {
# std::wostringstream os ;
# os << value ;
# return os.str() ;
# }
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
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
sed 's,\(include($$PWD/OfficeUtils.pri)\)),\1,g' -i OfficeUtils/OfficeUtils.pro
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
sed 's@qmake -r@qmake -r -spec ${qt5-qmake:location}/qtbase/mkspecs/linux-g++ "QMAKE_CXXFLAGS += -std=c++11"@g' -i Makefile
( cd Common/3dParty && ./make.sh )
configure-command = true
make-targets =
lib bin
#make-options = -j1
environment =
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
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:${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
CPPFLAGS="-I${qt5-qmake:location}/qtbase/include -I${curl:location}/include -I${libxml2:location}/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
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"
#[onlyoffice-fileconverter]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment