From 347d6219f7388148a25e46a788730848a846f0a3 Mon Sep 17 00:00:00 2001 From: M1A6I3L <58336295+M1A6I3L@users.noreply.github.com> Date: Wed, 9 Dec 2020 14:40:13 +0800 Subject: [PATCH] qt5: add qt5-sql module --- package/lean/qt5/Makefile | 29 ++++++++++++++++++++++------- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/package/lean/qt5/Makefile b/package/lean/qt5/Makefile index ef60381537..4f4237a66e 100644 --- a/package/lean/qt5/Makefile +++ b/package/lean/qt5/Makefile @@ -10,21 +10,24 @@ include $(TOPDIR)/rules.mk +QT5_VERSION_MAJOR_MINOR:=5.13 +QT5_VERSION_PATCH:=2 + PKG_NAME:=qt5 -PKG_VERSION:=5.13 +PKG_VERSION:=$(QT5_VERSION_MAJOR_MINOR)$(if $(QT5_VERSION_PATCH),.$(QT5_VERSION_PATCH)) PKG_RELEASE:=2 PKG_SOURCE:=qt-everywhere-src-$(PKG_VERSION).$(PKG_RELEASE).tar.xz -PKG_SOURCE_URL:=https://mirrors.cloud.tencent.com/qt/archive/qt/$(PKG_VERSION)/$(PKG_VERSION).$(PKG_RELEASE)/single/ \ - https://mirrors.tuna.tsinghua.edu.cn/qt/archive/qt/$(PKG_VERSION)/$(PKG_VERSION).$(PKG_RELEASE)/single/ \ - https://mirrors.ustc.edu.cn/qtproject/archive/qt/$(PKG_VERSION)/$(PKG_VERSION).$(PKG_RELEASE)/single/ \ - http://download.qt-project.org/archive/qt/$(PKG_VERSION)/$(PKG_VERSION).$(PKG_RELEASE)/single/ +PKG_SOURCE_URL:=https://mirrors.cloud.tencent.com/qt/archive/qt/$(QT5_VERSION_MAJOR_MINOR)/$(PKG_VERSION)/single/ \ + https://mirrors.tuna.tsinghua.edu.cn/qt/archive/qt/$(QT5_VERSION_MAJOR_MINOR)/$(PKG_VERSION)/single/ \ + https://mirrors.ustc.edu.cn/qtproject/archive/qt/$(QT5_VERSION_MAJOR_MINOR)/$(PKG_VERSION)/single/ \ + http://download.qt-project.org/archive/qt/$(QT5_VERSION_MAJOR_MINOR)/$(PKG_VERSION)/single/ PKG_HASH:=55e8273536be41f4f63064a79e552a22133848bb419400b6fa8e9fc0dc05de08 PKG_BUILD_PARALLEL:=1 PKG_USE_MIPS16:=0 -PKG_BUILD_DIR=$(BUILD_DIR)/qt-everywhere-src-$(PKG_VERSION).$(PKG_RELEASE) +PKG_BUILD_DIR=$(BUILD_DIR)/qt-everywhere-src-$(PKG_VERSION) include $(INCLUDE_DIR)/package.mk @@ -44,7 +47,7 @@ define Package/qt5/Default SUBMENU:=Qt5 TITLE:=qt5 URL:=http://qt-project.org - DEPENDS:=+librt +libstdcpp +libpthread @!LINUX_2_6_36 + DEPENDS:=+librt +libstdcpp +libpthread endef define Package/qt5-core @@ -59,6 +62,12 @@ define Package/qt5-network DEPENDS+=+qt5-core +libopenssl endef +define Package/qt5-sql + $(call Package/qt5/Default) + TITLE+=sql + DEPENDS+=+qt5-core +endef + define Package/qt5-xml $(call Package/qt5/Default) TITLE+=xml @@ -175,6 +184,11 @@ define Package/qt5-network/install $(CP) $(PKG_BUILD_DIR)/qtbase/lib/libQt5Network.so* $(1)/usr/lib endef +define Package/qt5-sql/install + $(INSTALL_DIR) $(1)/usr/lib/ + $(CP) $(PKG_BUILD_DIR)/qtbase/lib/libQt5Sql.so* $(1)/usr/lib/ +endef + define Package/qt5-xml/install $(INSTALL_DIR) $(1)/usr/lib $(CP) $(PKG_BUILD_DIR)/qtbase/lib/libQt5Xml.so* $(1)/usr/lib @@ -182,4 +196,5 @@ endef $(eval $(call BuildPackage,qt5-core,+zlib,+libpcre2-16,+libdouble-conversion)) $(eval $(call BuildPackage,qt5-network)) +$(eval $(call BuildPackage,qt5-sql)) $(eval $(call BuildPackage,qt5-xml))