package/ffmpeg: add optional support for openjpeg
authorBernd Kuhls <bernd.kuhls@t-online.de>
Mon, 18 Dec 2017 06:29:11 +0000 (07:29 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 18 Dec 2017 09:43:19 +0000 (10:43 +0100)
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/ffmpeg/ffmpeg.mk

index 5bb5d1e30e8d54328a5317e250aad235d8f11847..daa6daba1bae31f14728ebd06511439fba209bde 100644 (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