Commit 4cab1efd authored by Tristan Cavelier's avatar Tristan Cavelier

wip

parent 03ff85ad
--- Common/3dParty/boost/fetch.sh.orig 2016-09-27 15:18:11.971002591 +0000
+++ Common/3dParty/boost/fetch.sh 2016-09-27 15:20:05.235530485 +0000
@@ -22,11 +22,11 @@
fi
fi
-if [[ -f "$SCRIPTPATH/boost_1_58_0.7z" ]]
+if [[ -f "$SCRIPTPATH/boost_1_58_0.tar.gz" ]]
then
echo "boost already downloaded"
else
-wget http://freefr.dl.sourceforge.net/project/boost/boost/1.58.0/boost_1_58_0.7z
+wget http://freefr.dl.sourceforge.net/project/boost/boost/1.58.0/boost_1_58_0.tar.gz
fi
if [ -d "$SCRIPTPATH/boost" ]; then
@@ -34,7 +34,7 @@
else
if [[ "$platform" == *"linux"* ]]
then
-7z x "$SCRIPTPATH/boost_1_58_0.7z" -o"$SCRIPTPATH/"
+( cd "$SCRIPTPATH" && tar xf boost_1_58_0.tar.gz )
else
hdiutil mount "$SCRIPTPATH/7zX_1.7.1.dmg"
/Volumes/7zX/7zX.app/Contents/Resources/7za x "$SCRIPTPATH/boost_1_58_0.7z" -o"$SCRIPTPATH/"
--- Common/3dParty/icu/fetch.sh.orig 2016-09-27 15:32:59.954553160 +0000
+++ Common/3dParty/icu/fetch.sh 2016-09-27 15:28:49.180495224 +0000
@@ -53,7 +53,7 @@
then
echo "icu already extracted"
else
-7z x -so "./icu.zip" | tar xf -
+tar xzf icu.zip
fi
cp "./usr/local/lib/libicudata.so.55.1" "build/libicudata.so.55"
cp "./usr/local/lib/libicuuc.so.55.1" "build/libicuuc.so.55"
......@@ -5,12 +5,18 @@ parts +=
onlyoffice-core
[onlyoffice-core]
# XXX please, put the third party component in slapos !
# boost, icu, v8 and pole (is there others ??? XXX TRISTAN XXX)
recipe = slapos.recipe.cmmi
url = https://github.com/ONLYOFFICE/core/archive/06a7ed6d6816d98c816b7f208427c19e57fe03e5.tar.gz
md5sum = f2f5ef3d53c4cf858eefba1b97abc1f1
#url = https://github.com/ONLYOFFICE/core/archive/06a7ed6d6816d98c816b7f208427c19e57fe03e5.tar.gz
#md5sum = f2f5ef3d53c4cf858eefba1b97abc1f1
url = https://github.com/ONLYOFFICE/core/archive/f84ee9a5a30b79a2995a96f8019978d0d9d130af.tar.gz
md5sum = 2ead88646094941dc8de12cdc72ba3b2
patch-options = -p0
patches =
${:_profile_base_location_}/avoid-7z.patch#0dd7356c1a766ec14e0e8bcafcffe1a7
${:_profile_base_location_}/cryptopp.patch#9c72c4ee8432e858a6eadec8c7d70817
# error: 'to_wstring' is not a member of 'std' -> http://www.cplusplus.com/forum/general/109469/
#patches =
# ${:_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
......@@ -26,15 +32,19 @@ patch-options = -p0
# }
configure-command =
# echo 'QMAKESPEC = ${qmake:location}/mkspecs/linux-g++' >> Comment/3dParty/cryptopp/project/cryptopp.pro
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,-spec \([^ ]\+\),-spec ${qmake:location}/mkspecs/\1 "QMAKE_CXXFLAGS += -std=c++11 -I${zlib:location}/include -Wl,-rpath=${zlib:location}/lib",g' -i Makefile
( cd Common/3dParty && ./make.sh )
sed 's,-spec \([^ ]\+\),-spec ${qmake:location}/mkspecs/\1 "QMAKE_CXXFLAGS += -std=c++11",g' -i Makefile
# cp -rnt DesktopEditor/doctrenderer ${nodejs-4:location}/include/node/*
# echo 'QMAKE_CXXFLAGS += -std=c++11' >> PdfWriter/PdfWriter.pro
make-targets =
build/bin/linux/x2t
environment =
PATH=${qmake:location}/bin:%(PATH)s
CPPFLAGS=-I${qmake:location}/include
LD_LIBRARY_PATH=${qmake:location}/lib:${qmake:location}/lib64
CPPFLAGS=-I${qmake:location}/include -I${zlib:location}/include
LD_LIBRARY_PATH=${qmake:location}/lib:${qmake:location}/lib64:${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
......
--- Common/3dParty/cryptopp/build.sh.orig 2016-09-28 10:06:28.142816800 +0000
+++ Common/3dParty/cryptopp/build.sh 2016-09-28 10:07:04.916305522 +0000
@@ -3,5 +3,5 @@
BUILD_DIR=project/cryptopp.build
mkdir -p $BUILD_DIR
cd $BUILD_DIR
-qmake ../cryptopp.pro
+qmake -spec ../../../../../../../qmake/mkspecs/linux-g++ ../criptopp.pro
make && echo "build: OK!"
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