This commit is contained in:
Dmitry Maksyoma
2023-01-24 22:15:03 +13:00
parent 956f83dda2
commit 503784a4aa
2 changed files with 15 additions and 31 deletions

View File

@@ -11,41 +11,12 @@ build_and_install() {
}
install_build_dependencies() {
install_packages cmake gcc
ensure_libjpeg_is_fast
if [ "$DISTRO" = centos ]; then
yum install -y cmake gcc
return
fi
if [ "$DISTRO" = oracle ]; then
dnf install -y cmake gcc
return
fi
if [ "$DISTRO" = opensuse ]; then
zypper install -y cmake gcc
return
fi
apt-get update
apt-get install -y cmake gcc
}
ensure_libjpeg_is_fast() {
if [ "$DISTRO" = centos ]; then
yum install -y nasm
return
fi
if [ "$DISTRO" = oracle ]; then
dnf install -y nasm
return
fi
if [ "$DISTRO" = opensuse ]; then
zypper install -y nasm
return
fi
apt-get update
apt-get install -y nasm
install_packages nasm
}
prepare_libjpeg_source() {