Skip to content

Commit 9fbae04

Browse files
committed
Script: modify script to support deepin
1 parent 0ccb71a commit 9fbae04

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

Script/build_depend.sh

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -558,11 +558,8 @@ if [ $BASE_LIBS -eq 1 ]; then
558558
libxcb-cursor-dev libxcb-xkb-dev libxcb-keysyms1-dev \
559559
libxcb-* libxcb-cursor0 \
560560
libxkbcommon-dev
561-
if ! [[ $DISTRO_VERSION =~ 26\.[0-9]+ ]]; then
562-
package_install xserver-xorg-input-kbd xserver-xorg-input-mouse
563-
fi
564561
# Base dependency
565-
package_install liblzo2-dev libssl-dev libcrypt-dev libicu-dev zlib1g-dev libtelnet-dev
562+
package_install liblzo2-dev libssl-dev libcrypt-dev libicu-dev zlib1g-dev
566563
# RabbitCommon dependency
567564
package_install libcmark-dev cmark
568565
# VNC dependency
@@ -573,7 +570,15 @@ if [ $BASE_LIBS -eq 1 ]; then
573570
# PcapPlusPlus dependency
574571
package_install libpcap-dev
575572
# FFmpeg needed by QtMultimedia and freerdp
576-
package_install libavcodec-dev libavformat-dev libresample1-dev libswscale-dev
573+
package_install libavcodec-dev libavformat-dev libswscale-dev
574+
case "$DISTRO" in
575+
ubuntu|debian)
576+
package_install libresample1-dev
577+
;;
578+
deepin)
579+
package_install libswresample-dev
580+
;;
581+
esac
577582
package_install libx264-dev libx265-dev
578583
# Needed by QtMultimedia
579584
package_install pipewire

0 commit comments

Comments
 (0)