package/libpjsip: add openh264 support
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sun, 2 Feb 2020 13:53:52 +0000 (14:53 +0100)
committerYann E. MORIN <yann.morin.1998@free.fr>
Sun, 2 Feb 2020 14:00:10 +0000 (15:00 +0100)
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/libpjsip/libpjsip.mk

index 86cd31fc818229131ace31a3f54e8c3ca1f92fad..655ab4498c7a8e8344aeac2e702beb6c26d134ec 100644 (file)
@@ -35,7 +35,6 @@ LIBPJSIP_CONF_OPTS = \
        --disable-g722-codec \
        --disable-sdl \
        --disable-ffmpeg \
-       --disable-openh264 \
        --disable-ipp \
        --disable-silk \
        --with-external-srtp
@@ -69,6 +68,13 @@ LIBPJSIP_CONF_OPTS += \
        --disable-gsm-codec
 endif
 
+ifeq ($(BR2_PACKAGE_LIBOPENH264),y)
+LIBPJSIP_DEPENDENCIES += libopenh264
+LIBPJSIP_CONF_OPTS += --with-openh264=$(STAGING_DIR)/usr
+else
+LIBPJSIP_CONF_OPTS += --disable-openh264
+endif
+
 ifeq ($(BR2_PACKAGE_LIBOPENSSL),y)
 LIBPJSIP_DEPENDENCIES += libopenssl
 LIBPJSIP_CONF_OPTS += --with-ssl=$(STAGING_DIR)/usr