# # Copyright (C) 2020 Openwrt.org # # This is free software, licensed under the Apache License, Version 2.0 . # include $(TOPDIR)/rules.mk PKG_NAME:=qtbase PKG_BASE:=6.3 PKG_BUGFIX:=1 PKG_VERSION:=$(PKG_BASE).$(PKG_BUGFIX) PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-everywhere-src-$(PKG_VERSION).tar.xz PKG_SOURCE_URL:= \ http://download.qt.io/official_releases/qt/$(PKG_BASE)/$(PKG_VERSION)/submodules \ http://master.qt.io/archive/qt/$(PKG_BASE)/$(PKG_VERSION)/submodules \ http://mirrors.tuna.tsinghua.edu.cn/qt/archive/qt/$(PKG_BASE)/$(PKG_VERSION)/submodules \ http://qt.mirror.constant.com/archive/qt/$(PKG_BASE)/$(PKG_VERSION)/submodules PKG_HASH:=0a64421d9c2469c2c48490a032ab91d547017c9cc171f3f8070bc31888f24e03 HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/$(PKG_NAME)-everywhere-src-$(PKG_VERSION) PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-everywhere-src-$(PKG_VERSION) PKG_BUILD_DEPENDS:=qtbase/host PKG_BUILD_PARALLEL:=1 PKG_USE_MIPS16:=0 PKG_CPE_ID:=cpe:/a:qt:qt CMAKE_INSTALL:=1 # Force to use strip instead of sstrip STRIP:=$(TARGET_CROSS)strip $(call qstrip,$(CONFIG_STRIP_ARGS)) include $(INCLUDE_DIR)/host-build.mk include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/cmake.mk define Package/qtbase/Default SECTION:=libs CATEGORY:=Libraries SUBMENU:=Qt6 TITLE:=qtbase URL:=http://qt-project.org DEPENDS:=+icu +libc +libgcc +libstdcpp +USE_GLIBC:librt +USE_GLIBC:libpthread @!LINUX_2_6_36 @!(ARM&&CPU_32v4) endef define Package/qtbase/description This package provides the Qt6 libraries. Qt is a cross-platform application development framework for desktop, embedded and mobile. Supported Platforms include Linux, OS X, Windows, VxWorks, QNX, Android, iOS, BlackBerry, Sailfish OS and others. Qt is not a programming language on its own. It is a framework written in C++. This package provides the following run-time libraries: - core - network - xml - sql endef define Package/qtbase $(call Package/qtbase/Default) HIDDEN:=1 endef define Package/qtbase/config menu "qtbase" comment "Qtbase Libraries" $(foreach lib,$(QTBASE_LIBS), config PACKAGE_libqt6$(lib) tristate "libqt6$(lib)" default m if ALL help $(Package/libqt6$(lib)/description) ) endmenu endef #LBITS = $(shell $(TARGET_CC) -dM -E -