diff mbox series

[meta-multimedia,3/3] libheif: Make openh264 as packageconfig

Message ID 20250107213002.1443331-3-raj.khem@gmail.com
State New
Headers show
Series [meta-multimedia,1/3] x265: Re-add -DENABLE_PIC=ON | expand

Commit Message

Khem Raj Jan. 7, 2025, 9:30 p.m. UTC
openh264 is an optional dependency so its good to make it a configurable
option since the build says that its an optional dependency, this helps
in building libheif for architectures like riscv32

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta-multimedia/recipes-multimedia/libheif/libheif_1.19.5.bb | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/meta-multimedia/recipes-multimedia/libheif/libheif_1.19.5.bb b/meta-multimedia/recipes-multimedia/libheif/libheif_1.19.5.bb
index 4610a60392..b0f09d113c 100644
--- a/meta-multimedia/recipes-multimedia/libheif/libheif_1.19.5.bb
+++ b/meta-multimedia/recipes-multimedia/libheif/libheif_1.19.5.bb
@@ -14,13 +14,14 @@  SRCREV = "cd95b113d78d0696105a9e678cbd19487ee13d6c"
 inherit cmake pkgconfig
 
 DEPENDS += "gdk-pixbuf openh264 x265 libde265 tiff zlib libpng libwebp"
-
-PACKAGECONFIG += "dav1d jpeg jpeg2000 ffmpeg aom"
+PACKAGECONFIG += "dav1d jpeg jpeg2000 ffmpeg aom openh264"
+PACKAGECONFIG:remove:riscv32 = "openh264"
 PACKAGECONFIG[aom] = "-DWITH_AOM_ENCODER=ON -DWITH_AOM_DECODER=ON,-DWITH_AOM_ENCODER=OFF -DWITH_AOM_DECODER=OFF,aom"
 PACKAGECONFIG[dav1d] = "-DWITH_DAV1D=ON, -DWITH_DAV1D=OFF,dav1d"
 PACKAGECONFIG[svt-av1] = "-DWITH_SvtEnc=ON,-DWITH_SvtEnc=OFF,svt-av1"
 PACKAGECONFIG[jpeg] = "-DWITH_JPEG_DECODER=ON -DWITH_JPEG_ENCODER=ON,-DWITH_JPEG_ENCODER=OFF -DWITH_JPEG_DECODER=OFF,jpeg"
 PACKAGECONFIG[ffmpeg] = "-DWITH_FFMPEG_DECODER=ON,-DWITH_FFMPEG_DECODER=OFF,ffmpeg"
 PACKAGECONFIG[jpeg2000] = "-DWITH_OpenJPEG_ENCODER=ON -DWITH_OpenJPEG_DECODER=ON,-DWITH_OpenJPEG_ENCODER=OFF -DWITH_OpenJPEG_DECODER=OFF,openjpeg"
+PACKAGECONFIG[openh264] = ",,openh264"
 
 FILES:${PN} += "${libdir}/libheif ${datadir}/thumbnailers ${libdir}/gdk-pixbuf*"