Add packages for Raspberry Pi OS Bookworm

This commit is contained in:
Cameron Gutman
2023-10-13 00:27:07 +00:00
parent 64bca7df16
commit 9436ba0df8
7 changed files with 41 additions and 31 deletions

View File

@@ -4,8 +4,8 @@ BASE_FFMPEG_ARGS="--enable-pic --enable-static --disable-shared --disable-all --
echo "Building dependencies for $TARGET"
if [ "$TARGET" == "rpi" ] || [ "$TARGET" == "rpi64" ]; then
# We have to build MMAL libraries for aarch64
if [ "$TARGET" == "rpi64" ]; then
# We have to build MMAL libraries for aarch64 on Buster
if [ "$TARGET" == "rpi64" ] && [ "$DISTRO" == "buster" ]; then
cd /opt/rpi-userland
mkdir build
cd build
@@ -18,11 +18,17 @@ if [ "$TARGET" == "rpi" ] || [ "$TARGET" == "rpi64" ]; then
sed -i 's|-lmmal_vc_client|-lmmal_vc_client -lbcm_host -lvcos -lvcsm -lvchostif -lvchiq_arm|g' /opt/FFmpeg/configure
fi
# Copy libraspberrypi-dev pkgconfig files into the default location
mkdir -p /usr/local/lib/pkgconfig
cp /opt/vc/lib/pkgconfig/* /usr/local/lib/pkgconfig/
# Enable MMAL and VL42 stateless decoders
EXTRA_FFMPEG_ARGS="--enable-mmal --enable-decoder=h264_mmal --enable-sand --enable-libudev --enable-v4l2-request --enable-hwaccel=h264_v4l2request --enable-hwaccel=hevc_v4l2request"
# Enable VL42 stateless decoders
EXTRA_FFMPEG_ARGS="--enable-sand --enable-libudev --enable-v4l2-request --enable-hwaccel=h264_v4l2request --enable-hwaccel=hevc_v4l2request"
if [ "$DISTRO" == "buster" ]; then
# Copy libraspberrypi-dev pkgconfig files into the default location
mkdir -p /usr/local/lib/pkgconfig
cp /opt/vc/lib/pkgconfig/* /usr/local/lib/pkgconfig/
# Enable MMAL on Buster
EXTRA_FFMPEG_ARGS="$EXTRA_FFMPEG_ARGS --enable-mmal --enable-decoder=h264_mmal"
fi
elif [ "$TARGET" == "l4t" ]; then
# Enable NVV4L2 decoders
EXTRA_FFMPEG_ARGS="--enable-nvv4l2 --enable-decoder=h264_nvv4l2 --enable-decoder=hevc_nvv4l2"

View File

@@ -14,11 +14,20 @@ VERSION=`cat app/version.txt`
# Determine extra target-specific dependencies
if [ "$TARGET" == "rpi" ]; then
EXTRA_BUILD_DEPS="libraspberrypi-dev | rbp-userland-dev-osmc"
EXTRA_DEPS="libraspberrypi0 | rbp-userland-osmc"
EXTRA_CONFIG="CONFIG+=glslow"
if [ "$DISTRO" = "buster" ]; then
EXTRA_BUILD_DEPS="libraspberrypi-dev | rbp-userland-dev-osmc"
EXTRA_DEPS="libraspberrypi0 | rbp-userland-osmc"
else
EXTRA_DEPS="$EXTRA_DEPS, libdecor-0-0"
EXTRA_CONFIG="$EXTRA_CONFIG CONFIG+=disable-mmal"
fi
elif [ "$TARGET" == "rpi64" ]; then
EXTRA_CONFIG="CONFIG+=glslow"
if [ "$DISTRO" != "buster" ]; then
EXTRA_DEPS="$EXTRA_DEPS, libdecor-0-0"
EXTRA_CONFIG="$EXTRA_CONFIG CONFIG+=disable-mmal"
fi
elif [ "$TARGET" == "l4t" ]; then
EXTRA_DEPS=""
elif [ "$TARGET" == "desktop" ]; then

View File

@@ -6,7 +6,7 @@ apt-get install -y curl g++ make ninja-build meson devscripts fakeroot debhelper
apt-get install -y --no-install-recommends libssl-dev qtbase5-dev qtquickcontrols2-5-dev qtdeclarative5-dev libqt5svg5-dev libopus-dev
if [ "$DISTRO" != "buster" ] && [ "$DISTRO" != "bionic" ]; then
apt-get install -y libfreetype-dev
apt-get install -y libfreetype-dev libpipewire-0.3-dev
else
apt-get install -y libfreetype6-dev
fi
@@ -16,3 +16,9 @@ if [ "$DISTRO" != "bionic" ]; then
else
apt-get install -y libgl1-mesa-dev
fi
if [ "$DISTRO" != "buster" ]; then
if [ "$TARGET" = "rpi" ] || [ "$TARGET" = "rpi64" ]; then
apt-get install -y wayland-protocols libwayland-dev libdecor-0-dev
fi
fi