2013-04-17 23:26:01 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
2022-10-27 10:11:47 +08:00
|
|
|
echo "This Shell Script will install dependencies for axmol"
|
2017-12-04 11:35:31 +08:00
|
|
|
echo -n "Are you continue? (y/n) "
|
|
|
|
read answer
|
|
|
|
if echo "$answer" | grep -iq "^y" ;then
|
|
|
|
echo "It will take few minutes"
|
|
|
|
else
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
2015-01-14 14:22:08 +08:00
|
|
|
sudo apt-get update
|
|
|
|
|
2021-04-29 10:24:32 +08:00
|
|
|
# for vm, libxxf86vm-dev also required
|
2019-11-05 10:19:27 +08:00
|
|
|
# run 32bit applicatio: needed for lua relase mode as luajit has 32bit version
|
|
|
|
# https://askubuntu.com/questions/454253/how-to-run-32-bit-app-in-ubuntu-64-bit
|
|
|
|
sudo dpkg --add-architecture i386
|
2020-10-24 10:37:38 +08:00
|
|
|
# DEPENDS='libc6:i386 libncurses5:i386 libstdc++6:i386'
|
2019-11-05 10:19:27 +08:00
|
|
|
|
|
|
|
|
2020-10-24 10:37:38 +08:00
|
|
|
DEPENDS=' libx11-dev'
|
2022-07-24 21:55:41 +08:00
|
|
|
DEPENDS=' automake'
|
|
|
|
DEPENDS=' libtool'
|
2013-04-17 23:26:01 +08:00
|
|
|
DEPENDS+=' libxmu-dev'
|
|
|
|
DEPENDS+=' libglu1-mesa-dev'
|
|
|
|
DEPENDS+=' libgl2ps-dev'
|
|
|
|
DEPENDS+=' libxi-dev'
|
|
|
|
DEPENDS+=' libzip-dev'
|
2019-11-05 10:19:27 +08:00
|
|
|
DEPENDS+=' libpng-dev'
|
2022-05-14 17:47:47 +08:00
|
|
|
#DEPENDS+=' libcurl4-gnutls-dev'
|
2013-04-17 23:26:01 +08:00
|
|
|
DEPENDS+=' libfontconfig1-dev'
|
2022-05-14 17:47:47 +08:00
|
|
|
#DEPENDS+=' libsqlite3-dev'
|
|
|
|
#DEPENDS+=' libglew-dev'
|
|
|
|
#DEPENDS+=' libssl-dev'
|
2015-06-06 14:20:16 +08:00
|
|
|
DEPENDS+=' libgtk-3-dev'
|
2017-01-19 13:55:14 +08:00
|
|
|
DEPENDS+=' binutils'
|
2020-09-25 11:07:56 +08:00
|
|
|
DEPENDS+=' libbsd-dev'
|
2021-04-28 19:14:44 +08:00
|
|
|
DEPENDS+=' libasound2-dev'
|
2021-05-11 12:23:35 +08:00
|
|
|
DEPENDS+=' libxxf86vm-dev'
|
2013-04-17 23:26:01 +08:00
|
|
|
|
2021-05-11 09:45:42 +08:00
|
|
|
sudo apt-get install --allow-unauthenticated --yes $DEPENDS > /dev/null
|
2021-09-20 17:13:40 +08:00
|
|
|
|
|
|
|
echo "Installing latest freetype for linux ..."
|
|
|
|
mkdir buildsrc
|
|
|
|
cd buildsrc
|
2022-06-13 01:13:08 +08:00
|
|
|
git clone https://github.com/freetype/freetype.git
|
2021-09-20 17:13:40 +08:00
|
|
|
cd freetype
|
2023-04-02 17:16:10 +08:00
|
|
|
git checkout VER-2-13-0
|
2021-09-20 17:13:40 +08:00
|
|
|
sh autogen.sh
|
|
|
|
./configure --prefix=/usr --enable-freetype-config --disable-static
|
|
|
|
sudo make install
|
|
|
|
cd ..
|
|
|
|
cd ..
|