bump to release (5.8.0) and adjust/change to sha256 hashes
[feed/video.git] / frameworks / qt5base / Makefile
index c500f2899b4c91d8093a1c3335d023aecbcf2048..77104be9729923af498e307a2bb4e45f0f7af9ee 100644 (file)
@@ -1,21 +1,20 @@
 #
-# Copyright (C) 2015 OpenWrt.org
-# Author: Mirko Vogt <mirko@openwrt.org>
+# Copyright (C) 2016 OpenWrt.org
+# Author: Mirko Vogt <mirko-openwrt@nanl.de>
 # This is free software, licensed under the GNU General Public License v2.
 # See /LICENSE for more information.
 #
 
 # TODO / known bugs:
 # - plugins don't work when sstrip is used for stripping
-# - only framebuffer (linuxfb) support for now, XBC/DirectFB to come - thus no GL thus no qtquick2 / QML2, as it has a hard dependency on GL
-# - host_build functionality seems to be broken - qmake doesn't switch to the host toolchain (linux-g++) when host_build gets invoked
+# - no X11/wayland/xcb/kms support so far - primary target is linuxfb
 
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=qt5base
-PKG_VERSION:=5.4.2
+PKG_VERSION:=5.8.0
 PKG_RELEASE:=1
-PKG_MD5SUM:=67a95eec79ffc4a14f516ad6f3d24c96
+PKG_HASH:=c17111ae02a44dc7be1ec2cf979a47ee9e58edf4904041a525c21f4fa53fc005
 
 PKG_SYS_NAME:=qtbase-opensource-src-$(PKG_VERSION)
 PKG_SOURCE:=$(PKG_SYS_NAME).tar.xz
@@ -31,21 +30,49 @@ include $(INCLUDE_DIR)/package.mk
 include $(INCLUDE_DIR)/nls.mk
 include ./files/qmake.mk
 
+PKG_CONFIG_DEPENDS:= \
+       CONFIG_PACKAGE_qt5base-plugin-imageformats-jpeg \
+       CONFIG_PACKAGE_qt5base-plugin-imageformats-png \
+       CONFIG_PACKAGE_qt5base-network \
+       CONFIG_PACKAGE_qt5base-gui \
+       CONFIG_PACKAGE_qt5base-gl \
+       CONFIG_PACKAGE_qt5base-widgets \
+       CONFIG_PACKAGE_qt5base-examples \
+       CONFIG_PACKAGE_qt5base-plugin-platforms-minimal \
+       CONFIG_PACKAGE_qt5base-plugin-platforms-linuxfb \
+#      CONFIG_PACKAGE_qt5base-plugin-platforms-eglfs \
+#      CONFIG_PACKAGE_qt5base-plugin-platforms-minimalegl \
+
+# Do not use sstrip for QT5. When sstrip is used the QT5 plugin loading does
+# not work, because of QT''s internal elf parser, see
+# https://bugreports.qt.io/browse/QTBUG-52567
+# Use the code from the gcc package to use strip instaed.
+ifneq ($(CONFIG_USE_SSTRIP),)
+  STRIP:=$(TARGET_CROSS)strip $(call qstrip,$(CONFIG_STRIP_ARGS))
+  RSTRIP:= \
+    export CROSS="$(TARGET_CROSS)" \
+               $(if $(CONFIG_KERNEL_KALLSYMS),NO_RENAME=1) \
+               $(if $(CONFIG_KERNEL_PROFILING),KEEP_SYMBOLS=1); \
+    NM="$(TARGET_CROSS)nm" \
+    STRIP="$(STRIP)" \
+    STRIP_KMOD="$(SCRIPT_DIR)/strip-kmod.sh" \
+    $(SCRIPT_DIR)/rstrip.sh
+endif
+
 define Package/qt5base/Default
   SECTION:=video-frameworks
   CATEGORY:=Video
   SUBMENU:=Frameworks and Toolkits
   TITLE:=Qt5base
-  DEPENDS:=qt5base
   URL:=http://qt.io
   MAINTAINER:=Mirko Vogt <mirko@openwrt.org>
 endef
 
-define Package/qt5base
-  $(call Package/qt5base/Default)
-  DEPENDS:=
-  MENU:=1
-endef
+define Package/qt5base
+  $(call Package/qt5base/Default)
+  DEPENDS:=
+  MENU:=1
+endef
 
 define Package/qt5base-concurrent
   $(call Package/qt5base/Default)
@@ -53,16 +80,22 @@ define Package/qt5base-concurrent
   DEPENDS+=+qt5base-core
 endef
 
+define Package/qt5base-gl
+  $(call Package/qt5base/Default)
+  TITLE+=gl
+  DEPENDS+=+qt5base-core +qt5base-gui +qt5base-widgets
+endef
+
 define Package/qt5base-core
   $(call Package/qt5base/Default)
   TITLE+=core
-  DEPENDS+=+libpthread +zlib +libpcre16 +libstdcpp +librt
+  DEPENDS+=+libpthread +zlib +libpcre16 +libstdcpp +librt +libdouble-conversion $(ICONV_DEPENDS) #+icu
 endef
 
 define Package/qt5base-gui
   $(call Package/qt5base/Default)
   TITLE+=gui
-  DEPENDS+=+qt5base-core +libpng
+  DEPENDS+=+qt5base-core +qt5quick2-2d-sw-renderer-GLstubs +libpng +fontconfig +libfreetype +libudev
 endef
 
 define Package/qt5base-network
@@ -145,11 +178,11 @@ endef
 
 ####### imageformats
 
-define Package/qt5base-plugin-imageformats-gif
-  $(call Package/qt5base/Default)
-TITLE+=imageformat gif (plugin)
-  DEPENDS+=+qt5base-core +qt5base-gui
-endef
+#define Package/qt5base-plugin-imageformats-gif
+#  $(call Package/qt5base/Default)
+#TITLE+=imageformat gif (plugin)
+#  DEPENDS+=+qt5base-core +qt5base-gui
+#endef
 
 define Package/qt5base-plugin-imageformats-ico
   $(call Package/qt5base/Default)
@@ -165,6 +198,18 @@ endef
 
 ####### platforms
 
+#define Package/qt5base-plugin-platforms-eglfs
+#  $(call Package/qt5base/Default)
+#  TITLE+=platform eglfs (plugin)
+#  DEPENDS+=+qt5base-core +qt5base-gui +libfreetype +fontconfig
+#endef
+
+#define Package/qt5base-plugin-platforms-minimalegl
+#  $(call Package/qt5base/Default)
+#  TITLE+=platform minimalegl (plugin)
+#  DEPENDS+=+qt5base-core +qt5base-gui +libfreetype +fontconfig
+#endef
+
 define Package/qt5base-plugin-platforms-linuxfb
   $(call Package/qt5base/Default)
   TITLE+=platform linuxfb (plugin)
@@ -183,14 +228,22 @@ define Package/qt5base-plugin-platforms-offscreen
   DEPENDS+=+qt5base-core +qt5base-gui +libfreetype +fontconfig
 endef
 
-###### sql
-
-define Package/qt5base-plugin-sqldrivers-sqlite
+define Package/qt5base-plugin-platforms-vnc
   $(call Package/qt5base/Default)
-  TITLE+=sqldriver sqlite (plugin)
-  DEPENDS+=+qt5base-core +qt5base-sql +libsqlite3
+  TITLE+=platform vnc (plugin)
+  DEPENDS+=+qt5base-core +qt5base-gui +qt5base-network +libfreetype +fontconfig
 endef
 
+
+
+###### sql
+
+#define Package/qt5base-plugin-sqldrivers-sqlite
+#  $(call Package/qt5base/Default)
+#  TITLE+=sqldriver sqlite (plugin)
+#  DEPENDS+=+qt5base-core +qt5base-sql +libsqlite3
+#endef
+
 define Package/qt5base-examples
   $(call Package/qt5base/Default)
   TITLE+=examples
@@ -202,7 +255,8 @@ define Package/qt5base-examples
                +qt5base-sql \
                +qt5base-xml \
                +qt5base-printSupport \
-               +qt5base-concurrent 
+               +qt5base-concurrent \
+               +qt5base-gl
 endef
 
 define Build/Prepare
@@ -212,6 +266,10 @@ define Build/Prepare
                $(PKG_BUILD_DIR)/mkspecs/
 endef
 
+# TARGET_CFLAGS += \
+#        -I$(STAGING_DIR)/usr/include/freetype2 \
+#        -I$(STAGING_DIR)/usr/include/libdrm
+
 define Build/Configure
        # CROSS/TARGET_* need to be passed to configure, in order to use cross-compiling tools to check for requirements.
        # Usually used variables such as CC/CXX/CFLAGS/CXXFLAGS/LDFLAGS would be used for compilation of host tools (qmake, moc, etc.),
@@ -225,6 +283,7 @@ define Build/Configure
                        -prefix $(QT_INSTALL_PREFIX) \
                        -extprefix $(QT_EXTPREFIX) \
                        -hostprefix $(QT_HOST_PREFIX) \
+                       -no-gcc-sysroot \
                        -bindir $(QT_INSTALL_BINS) \
                        -headerdir $(QT_INSTALL_HEADERS) \
                        -libdir $(QT_INSTALL_LIBS) \
@@ -242,68 +301,92 @@ define Build/Configure
                        -hostbindir $(QT_HOST_BINS) \
                        -hostlibdir $(QT_HOST_LIBS) \
                        -hostdatadir $(QT_HOST_DATA) \
-                       -v \
-                       -release \
+                       -verbose \
                        -opensource \
                        -confirm-license \
-                       -c++11 \
+                       -release \
+                       -no-optimized-tools \
+                       -no-strip \
                        -shared \
-                       -largefile \
-                       -accessibility \
-                       -system-sqlite \
-                       -no-qml-debug \
-                       -no-sse2 \
+                       -no-framework \
+                       -xplatform linux-openwrt-g++ \
                        -no-sse3 \
                        -no-ssse3 \
                        -no-sse4.1 \
                        -no-sse4.2 \
                        -no-avx \
                        -no-avx2 \
-                       $(if $(findstring -mdsp,$(TARGET_CFLAGS)),,-no-mips_dsp)\
-                       $(if $(findstring -mdspr2,$(TARGET_CFLAGS)),,-no-mips_dspr2)\
-                       -force-pkg-config \
+                       -no-avx512 \
+                       $(if $(findstring -mdsp,$(TARGET_CFLAGS)),,-no-mips_dsp) \
+                       $(if $(findstring -mdspr2,$(TARGET_CFLAGS)),,-no-mips_dspr2) \
+                       -no-reduce-exports \
+                       -no-reduce-relocations \
+                       -no-pch \
+                       -no-use-gold-linker \
+                       -no-warnings-are-errors \
+                       -pkg-config \
+                       -no-optimized-qmake \
+                       -nomake tools \
+                       -make examples \
+                       $(if $(CONFIG_PACKAGE_qt5base-examples),-compile-examples,-no-compile-examples) \
+                       $(if $(CONFIG_PACKAGE_qt5base-examples),-make examples,-nomake examples) \
+                       $(if $(CONFIG_PACKAGE_qt5base-gui),-gui,-no-gui) \
+                       $(if $(CONFIG_PACKAGE_qt5base-widgets),-widgets,-no-widgets) \
+                       -no-dbus \
+                       -accessibility \
+                       -no-qml-debug \
+                       -system-doubleconversion \
+                       -no-glib \
+                       -eventfd \
+                       -no-inotify \
+                       $(if $(CONFIG_BUILD_NLS),-no-iconv,-no-iconv) \
+                       -no-icu \
+                       -system-pcre \
                        -system-zlib \
-                       -mtdev \
                        -no-journald \
-                       -system-libpng \
-                       -system-libjpeg \
+                       -no-syslog \
+                       -ssl \
+                       $(if $(CONFIG_PACKAGE_qt5base-network),-openssl-linked,-no-openssl) \
+                       -system-proxies \
+                       -no-cups \
+                       -fontconfig \
                        -system-freetype \
                        -no-harfbuzz \
-                       -openssl-linked \
-                       -system-pcre \
-                       -system-xcb \
-                       -system-xkbcommon \
-                       -no-xinput2 \
+                       -no-gtk \
+                       -opengl \
                        -no-xcb-xlib \
-                       -no-glib \
-                       -no-pulseaudio \
-                       -alsa \
-                       -no-gtkstyle \
-                       -nomake tools \
-                       -make examples \
-                       -gui \
-                       -widgets \
-                       -no-optimized-qmake \
-                       -no-cups \
-                       -iconv \
-                       -evdev \
-                       -no-icu \
-                       -fontconfig \
-                       -no-strip \
-                       -no-pch \
-                       -no-dbus \
-                       -no-reduce-relocations \
-                       -no-use-gold-linker \
-                       -no-xcb \
-                       -no-eglfs \
+                       $(if $(CONFIG_PACKAGE_qt5base-plugin-platforms-minimal),,-qpa minimal) \
+                       $(if $(CONFIG_PACKAGE_qt5base-plugin-platforms-linuxfb),,-qpa linuxfb) \
+                       -system-xcb \
                        -no-directfb \
-                       -linuxfb \
+                       -no-eglfs \
+                       -no-gbm \
                        -no-kms \
-                       -qpa minimal \
-                       -xplatform linux-openwrt-g++ \
-                       -no-opengl \
-                       -no-system-proxies \
-                       -no-warnings-are-errors \
+                       $(if $(CONFIG_PACKAGE_qt5base-plugin-platforms-linuxfb),-linuxfb,-no-linuxfb) \
+                       -no-mirclient \
+                       -no-xcb \
+                       -evdev \
+                       -no-libinput \
+                       -no-mtdev \
+                       -no-tslib \
+                       -no-xinput2 \
+                       -no-xkbcommon-x11 \
+                       -no-xkbcommon-evdev \
+                       -no-gif \
+                       $(if $(CONFIG_PACKAGE_qt5base-plugin-imageformats-ico),-ico,-no-ico) \
+                       $(if $(CONFIG_PACKAGE_qt5base-gui),-system-libpng,-no-libpng) \
+                       $(if $(CONFIG_PACKAGE_qt5base-plugin-imageformats-jpeg),-system-libjpeg,-no-libjpeg) \
+                       -no-sql-db2 \
+                       -no-sql-ibase \
+                       -no-sql-mysql \
+                       -no-sql-oci \
+                       -no-sql-odbc \
+                       -no-sql-psql \
+                       -no-sql-sqlite \
+                       -no-sql-sqlite2 \
+                       -no-sql-tds \
+                       -no-libproxy \
+                       -system-xkbcommon \
        )
 endef
 
@@ -328,6 +411,10 @@ define Package/qt5base-core/install
        $(call Build/Install/Libs,$(1),libQt5Core)
 endef
 
+define Package/qt5base-gl/install
+       $(call Build/Install/Libs,$(1),libQt5OpenGL)
+endef
+
 define Package/qt5base-gui/install
        $(call Build/Install/Libs,$(1),libQt5Gui)
 endef
@@ -376,9 +463,9 @@ define Package/qt5base-plugin-input-evdevtouch/install
        $(call Build/Install/Plugins,$(1),generic,libqevdevtouchplugin)
 endef
 
-define Package/qt5base-plugin-imageformats-gif/install
-       $(call Build/Install/Plugins,$(1),imageformats,libqgif)
-endef
+#define Package/qt5base-plugin-imageformats-gif/install
+#      $(call Build/Install/Plugins,$(1),imageformats,libqgif)
+#endef
 
 define Package/qt5base-plugin-imageformats-ico/install
        $(call Build/Install/Plugins,$(1),imageformats,libqico)
@@ -392,6 +479,18 @@ define Package/qt5base-plugin-platforms-linuxfb/install
        $(call Build/Install/Plugins,$(1),platforms,libqlinuxfb)
 endef
 
+define Package/qt5base-plugin-platforms-vnc/install
+       $(call Build/Install/Plugins,$(1),platforms,libqvnc)
+endef
+
+#define Package/qt5base-plugin-platforms-eglfs/install
+#      $(call Build/Install/Plugins,$(1),platforms,libqeglfs)
+#endef
+
+#define Package/qt5base-plugin-platforms-minimalegl/install
+#      $(call Build/Install/Plugins,$(1),platforms,libqminimalegl)
+#endef
+
 define Package/qt5base-plugin-platforms-minimal/install
        $(call Build/Install/Plugins,$(1),platforms,libqminimal)
 endef
@@ -400,18 +499,19 @@ define Package/qt5base-plugin-platforms-offscreen/install
        $(call Build/Install/Plugins,$(1),platforms,libqoffscreen)
 endef
 
-define Package/qt5base-plugin-sqldrivers/install
-       $(call Build/Install/Plugins,$(1),sqldrivers,libqsqlite)
-endef
+#define Package/qt5base-plugin-sqldrivers-sqlite/install
+#      $(call Build/Install/Plugins,$(1),sqldrivers,libqsqlite)
+#endef
 
 define Package/qt5base-examples/install
        $(call Build/Install/Examples,$(1))
 endef
 
-$(eval $(call BuildPackage,qt5base))
+$(eval $(call BuildPackage,qt5base))
 $(eval $(call BuildPackage,qt5base-concurrent))
 $(eval $(call BuildPackage,qt5base-core))
 $(eval $(call BuildPackage,qt5base-gui))
+$(eval $(call BuildPackage,qt5base-gl))
 $(eval $(call BuildPackage,qt5base-network))
 $(eval $(call BuildPackage,qt5base-printSupport))
 $(eval $(call BuildPackage,qt5base-sql))
@@ -423,11 +523,14 @@ $(eval $(call BuildPackage,qt5base-plugin-input-evdevkeyboard))
 $(eval $(call BuildPackage,qt5base-plugin-input-evdevmouse))
 $(eval $(call BuildPackage,qt5base-plugin-input-evdevtablet))
 $(eval $(call BuildPackage,qt5base-plugin-input-evdevtouch))
-$(eval $(call BuildPackage,qt5base-plugin-imageformats-gif))
+#$(eval $(call BuildPackage,qt5base-plugin-imageformats-gif))
 $(eval $(call BuildPackage,qt5base-plugin-imageformats-ico))
 $(eval $(call BuildPackage,qt5base-plugin-imageformats-jpeg))
 $(eval $(call BuildPackage,qt5base-plugin-platforms-linuxfb))
+#$(eval $(call BuildPackage,qt5base-plugin-platforms-eglfs))
+#$(eval $(call BuildPackage,qt5base-plugin-platforms-minimalegl))
 $(eval $(call BuildPackage,qt5base-plugin-platforms-minimal))
 $(eval $(call BuildPackage,qt5base-plugin-platforms-offscreen))
-$(eval $(call BuildPackage,qt5base-plugin-sqldrivers-sqlite))
+$(eval $(call BuildPackage,qt5base-plugin-platforms-vnc))
+#$(eval $(call BuildPackage,qt5base-plugin-sqldrivers-sqlite))
 $(eval $(call BuildPackage,qt5base-examples))