From a7f70306b419b41594a302d5dacaafab76dc202e Mon Sep 17 00:00:00 2001 From: Mirko Vogt Date: Wed, 23 Nov 2016 15:31:26 +0100 Subject: [PATCH] package qt5quick2-controls2 --- frameworks/qt5quick2-controls2/Makefile | 62 +++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 frameworks/qt5quick2-controls2/Makefile diff --git a/frameworks/qt5quick2-controls2/Makefile b/frameworks/qt5quick2-controls2/Makefile new file mode 100644 index 0000000..1c32318 --- /dev/null +++ b/frameworks/qt5quick2-controls2/Makefile @@ -0,0 +1,62 @@ +# +# Copyright (C) 2015 OpenWrt +# Author: Mirko Vogt +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=qt5quick2-controls2 +PKG_VERSION:=5.8.0-beta +PKG_RELEASE:=1 +PKG_MD5SUM:=391d8bfb6de2e0a270bfc98e1801d46e + +PKG_SYS_NAME:=qtquickcontrols2-opensource-src-$(PKG_VERSION) +PKG_SOURCE:=$(PKG_SYS_NAME).tar.xz +PKG_SOURCE_URL:=http://download.qt-project.org/development_releases/qt/$(basename $(PKG_VERSION))/$(PKG_VERSION)/submodules + +PKG_BUILD_DIR=$(BUILD_DIR)/$(PKG_SYS_NAME) +PKG_BUILD_PARALLEL:=1 +PKG_BUILD_DEPENDS:=qt5base +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/nls.mk +-include $(STAGING_DIR)/host/mk/qmake.mk + +define Package/qt5quick2-controls2 + SECTION:=video-frameworks + CATEGORY:=Video + SUBMENU:=Frameworks and Toolkits + TITLE:=qt5quick2-controls2 + URL:=http://qt.io + MAINTAINER:=Mirko Vogt +endef + +define Build/Configure + $(call Build/Configure/Default,qtquickcontrols2) +endef + +define Build/InstallDev + $(call Build/Install/HostFiles,$(1)) + $(call Build/Install/Headers,$(1)) + $(call Build/Install/Libs,$(1),*) +endef + +define Package/qt5quick2-controls2/install + $(call Build/Install/Libs,$(1),libQt5QuickControls2) + + $(INSTALL_DIR) \ + $(1)/usr/lib/qt5/qml/QtQuick + + $(CP) \ + $(PKG_INSTALL_DIR)/usr/lib/qt5/qml/QtQuick/* \ + $(1)/usr/lib/qt5/qml/QtQuick/ +endef + +define Package/qt5quick2-templates2/install + $(call Build/Install/Libs,$(1),libQt5QuickTemplates2) +endef + +$(eval $(call BuildPackage,qt5quick2-controls2)) -- 2.30.2