Переглянути джерело

update dep scripts to build mbedtls

master
Odilitime 5 роки тому
джерело
коміт
0ea45d8da8
  1. 21
      deps/getdeps_lnx.sh
  2. 22
      deps/getdeps_osx.sh

21
deps/getdeps_lnx.sh сторонній

@ -26,9 +26,12 @@ fi @@ -26,9 +26,12 @@ fi
if [ ! -f "harfbuzz-1.4.7.tar.bz2" ]; then
curl -L https://github.com/behdad/harfbuzz/releases/download/1.4.7/harfbuzz-1.4.7.tar.bz2 > harfbuzz-1.4.7.tar.bz2
fi
if [ ! -f "md5sum.c" ]; then
curl https://spit.mixtape.moe/view/raw/765a1dc1 > md5sum.c
if [ ! -f "mbedtls-2.5.1.tar.gz" ]; then
curl -L https://github.com/ARMmbed/mbedtls/archive/mbedtls-2.5.1.tar.gz > mbedtls-2.5.1.tar.gz
fi
#if [ ! -f "md5sum.c" ]; then
# curl https://spit.mixtape.moe/view/raw/765a1dc1 > md5sum.c
#fi
echo "Extracing files"
tar zxf glew-2.0.0.tgz
@ -88,11 +91,17 @@ cd harfbuzz-1.4.7 @@ -88,11 +91,17 @@ cd harfbuzz-1.4.7
make -j$physicalCpuCount
sudo make install
cd ..
echo "Installing mbedTLS"
cd mbedtls-mbedtls-2.5.1
cmake .
make -j$physicalCpuCount
sudo make install
cd ..
echo "Installing md5sum"
gcc md5sum.c -o md5sum
chmod u+x md5sum
sudo cp md5sum /usr/local/bin
#echo "Installing md5sum"
#gcc md5sum.c -o md5sum
#chmod u+x md5sum
#sudo cp md5sum /usr/local/bin
echo "Restoring pwd"
cd ..

22
deps/getdeps_osx.sh сторонній

@ -26,9 +26,12 @@ fi @@ -26,9 +26,12 @@ fi
if [ ! -f "harfbuzz-1.4.7.tar.bz2" ]; then
curl -L https://github.com/behdad/harfbuzz/releases/download/1.4.7/harfbuzz-1.4.7.tar.bz2 > harfbuzz-1.4.7.tar.bz2
fi
if [ ! -f "md5sum.c" ]; then
curl https://spit.mixtape.moe/view/raw/765a1dc1 > md5sum.c
if [ ! -f "mbedtls-2.5.1.tar.gz" ]; then
curl -L https://github.com/ARMmbed/mbedtls/archive/mbedtls-2.5.1.tar.gz > mbedtls-2.5.1.tar.gz
fi
#if [ ! -f "md5sum.c" ]; then
# curl https://spit.mixtape.moe/view/raw/765a1dc1 > md5sum.c
#fi
echo "Extracing files"
tar zxf glew-2.0.0.tgz
@ -41,6 +44,7 @@ if ! type "pkg-config" > /dev/null; then @@ -41,6 +44,7 @@ if ! type "pkg-config" > /dev/null; then
fi
tar zxf freetype-2.8.tar.gz
tar zxf harfbuzz-1.4.7.tar.bz2
tar zxf mbedtls-2.5.1.tar.gz
physicalCpuCount=$([[ $(uname) = 'Darwin' ]] &&
sysctl -n hw.physicalcpu_max ||
@ -88,11 +92,17 @@ cd harfbuzz-1.4.7 @@ -88,11 +92,17 @@ cd harfbuzz-1.4.7
make -j$physicalCpuCount
sudo make install
cd ..
echo "Installing mbedTLS"
cd mbedtls-mbedtls-2.5.1
cmake .
make -j$physicalCpuCount
sudo make install
cd ..
echo "Installing md5sum"
gcc md5sum.c -o md5sum
chmod u+x md5sum
sudo cp md5sum /usr/local/bin
#echo "Installing md5sum"
#gcc md5sum.c -o md5sum
#chmod u+x md5sum
#sudo cp md5sum /usr/local/bin
echo "Restoring pwd"
cd ..

Завантаження…
Відмінити
Зберегти