mirror of
https://github.com/kenzok8/small-package
synced 2025-01-09 04:37:59 +08:00
51 lines
1.2 KiB
Makefile
51 lines
1.2 KiB
Makefile
#
|
|
# Copyright (C) 2019 Openwrt.org
|
|
#
|
|
# This is free software, licensed under the Apache License, Version 2.0 .
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=qttools
|
|
PKG_BASE:=5.15
|
|
PKG_BUGFIX:=6
|
|
PKG_VERSION:=$(PKG_BASE).$(PKG_BUGFIX)
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-everywhere-opensource-src-$(PKG_VERSION).tar.xz
|
|
PKG_SOURCE_URL:= \
|
|
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:=2c1486ab7e6dad76fb34642cd4f91d533e5dfeec0ee527129c2c2ed4ab283c3b
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-everywhere-src-$(PKG_VERSION)
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
PKG_BUILD_DEPENDS:=qtbase
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/qttools
|
|
SECTION:=libs
|
|
CATEGORY:=Libraries
|
|
SUBMENU:=Qt5
|
|
TITLE:=qttools
|
|
URL:=http://qt-project.org
|
|
BUILDONLY:=1
|
|
endef
|
|
|
|
define Build/Configure
|
|
cd $(PKG_BUILD_DIR) && qmake -o Makefile qttools.pro
|
|
endef
|
|
|
|
define Build/Compile
|
|
+$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR)
|
|
endef
|
|
|
|
define Build/InstallDev
|
|
$(MAKE) -C $(PKG_BUILD_DIR) install
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,qttools))
|