package/ffmpeg: add optional support for openjpeg

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
Bernd Kuhls 2017-12-18 07:29:11 +01:00 committed by Thomas Petazzoni
parent f6695c41d3
commit ee4d8c6d66

View File

@ -53,7 +53,6 @@ FFMPEG_CONF_OPTS = \
--disable-libdc1394 \
--disable-libgsm \
--disable-libilbc \
--disable-libopenjpeg \
--disable-libvo-amrwbenc \
--disable-symver \
--disable-doc
@ -369,6 +368,13 @@ else
FFMPEG_CONF_OPTS += --disable-fontconfig
endif
ifeq ($(BR2_PACKAGE_OPENJPEG),y)
FFMPEG_CONF_OPTS += --enable-libopenjpeg
FFMPEG_DEPENDENCIES += openjpeg
else
FFMPEG_CONF_OPTS += --disable-libopenjpeg
endif
ifeq ($(BR2_PACKAGE_X264)$(BR2_PACKAGE_FFMPEG_GPL),yy)
FFMPEG_CONF_OPTS += --enable-libx264
FFMPEG_DEPENDENCIES += x264