Skip to content

Commit 4adbd9a

Browse files
committed
ffmpeg: Add PACKAGECONFIG knobs for libplacebo and shaderc
Also, enable them automatically when vulkan is in DISTRO_FEATURES. Signed-off-by: Zoltán Böszörményi <[email protected]>
1 parent b012d24 commit 4adbd9a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

recipes-support/ffmpeg/ffmpeg_7.1.1.bb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ inherit autotools pkgconfig
4949

5050
PACKAGECONFIG ??= "avdevice avfilter avcodec avformat swresample swscale postproc \
5151
alsa bzlib lzma theora zlib \
52-
${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'xv xcb', '', d)}"
52+
${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'xv xcb', '', d)} \
53+
${@bb.utils.contains('DISTRO_FEATURES', 'vulkan', 'libplacebo shaderc', '', d)} \
54+
"
5355

5456
# libraries to build in addition to avutil
5557
PACKAGECONFIG[avdevice] = "--enable-avdevice,--disable-avdevice"
@@ -69,12 +71,14 @@ PACKAGECONFIG[gpl] = "--enable-gpl,--disable-gpl"
6971
PACKAGECONFIG[gsm] = "--enable-libgsm,--disable-libgsm,libgsm"
7072
PACKAGECONFIG[jack] = "--enable-indev=jack,--disable-indev=jack,jack"
7173
PACKAGECONFIG[libopus] = "--enable-libopus,--disable-libopus,libopus"
74+
PACKAGECONFIG[libplacebo] = "--enable-libplacebo,--disable-libplacebo,libplacebo vulkan-headers"
7275
PACKAGECONFIG[libvorbis] = "--enable-libvorbis,--disable-libvorbis,libvorbis"
7376
PACKAGECONFIG[lzma] = "--enable-lzma,--disable-lzma,xz"
7477
PACKAGECONFIG[mfx] = "--enable-libmfx,--disable-libmfx,intel-mediasdk"
7578
PACKAGECONFIG[mp3lame] = "--enable-libmp3lame,--disable-libmp3lame,lame"
7679
PACKAGECONFIG[openssl] = "--enable-openssl,--disable-openssl,openssl"
7780
PACKAGECONFIG[sdl2] = "--enable-sdl2,--disable-sdl2,virtual/libsdl2"
81+
PACKAGECONFIG[shaderc] = "--enable-libshaderc,--disable-libshaderc,shaderc"
7882
PACKAGECONFIG[speex] = "--enable-libspeex,--disable-libspeex,speex"
7983
PACKAGECONFIG[srt] = "--enable-libsrt,--disable-libsrt,srt"
8084
PACKAGECONFIG[theora] = "--enable-libtheora,--disable-libtheora,libtheora libogg"

0 commit comments

Comments
 (0)