qt5base: build widgets and examples only when activated
[feed/video.git] / frameworks / qt5base / Makefile
index 0539480f045017cbe75067b072c2df751eaf46d1..e4f03ebfafbf8699146ac6421bdaf323485a42fd 100644 (file)
@@ -38,8 +38,7 @@ 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_libiconv-full
+       CONFIG_PACKAGE_qt5base-plugin-platforms-minimal
 
 define Package/qt5base/Default
   SECTION:=video-frameworks
@@ -66,7 +65,7 @@ endef
 define Package/qt5base-core
   $(call Package/qt5base/Default)
   TITLE+=core
-  DEPENDS+=+libpthread +zlib +libpcre16 +libstdcpp +librt +PACKAGE_libiconv-full:libiconv-full
+  DEPENDS+=+libpthread +zlib +libpcre16 +libstdcpp +librt $(ICONV_DEPENDS)
 endef
 
 define Package/qt5base-gui
@@ -299,13 +298,13 @@ define Build/Configure
                        -no-alsa \
                        -no-gtkstyle \
                        -nomake tools \
-                       -make examples \
+                       $(if $(CONFIG_PACKAGE_qt5base-examples),-make examples,-nomake examples) \
                        $(if $(CONFIG_PACKAGE_qt5base-gui),-gui,-no-gui) \
                        $(if $(CONFIG_PACKAGE_qt5base-plugin-imageformats-gif),,-no-gif) \
-                       -widgets \
+                       $(if $(CONFIG_PACKAGE_qt5base-widgets),-widgets,-no-widgets) \
                        -no-optimized-qmake \
                        -no-cups \
-                       $(if $(CONFIG_PACKAGE_libiconv-full),-iconv,-no-iconv) \
+                       $(if $(CONFIG_BUILD_NLS),-iconv,-no-iconv) \
                        -evdev \
                        -no-icu \
                        -fontconfig \