qt5base: activate iconv support when libiconv-full is avaliable
[feed/video.git] / frameworks / qt5base / Makefile
index 810ae54800a9410cf87ed08ae060d0c0150dc8fa..f77cca2c059a0cb80654bdd715abc32665a5a0cf 100644 (file)
@@ -38,7 +38,8 @@ PKG_CONFIG_DEPENDS:= \
        CONFIG_PACKAGE_qt5base-gui \
        CONFIG_PACKAGE_qt5base-plugin-imageformats-gif \
        CONFIG_PACKAGE_qt5base-plugin-platforms-linuxfb \
-       CONFIG_PACKAGE_qt5base-plugin-platforms-minimal
+       CONFIG_PACKAGE_qt5base-plugin-platforms-minimal \
+       CONFIG_PACKAGE_libiconv-full
 
 define Package/qt5base/Default
   SECTION:=video-frameworks
@@ -65,7 +66,7 @@ endef
 define Package/qt5base-core
   $(call Package/qt5base/Default)
   TITLE+=core
-  DEPENDS+=+libpthread +zlib +libpcre16 +libstdcpp +librt
+  DEPENDS+=+libpthread +zlib +libpcre16 +libstdcpp +librt +PACKAGE_libiconv-full:libiconv-full
 endef
 
 define Package/qt5base-gui
@@ -304,7 +305,7 @@ define Build/Configure
                        -widgets \
                        -no-optimized-qmake \
                        -no-cups \
-                       -no-iconv \
+                       $(if $(CONFIG_PACKAGE_libiconv-full),-iconv,-no-iconv) \
                        -evdev \
                        -no-icu \
                        -fontconfig \